修改:部分页面的搜索框背景修改为读取远程,本地不在存储该图片

This commit is contained in:
wuhui_zzw 2024-03-06 17:51:42 +08:00
parent 2dcd6012d0
commit e654482b2a
6 changed files with 20 additions and 5 deletions

View File

@ -1,7 +1,7 @@
<template>
<view class="custom-content">
<!--顶部搜索框-->
<view class="search-content">
<view class="search-content" :style="'background-image:url('+ custom_top_bg +')'">
<view class="search-box">
<text class="iconfont icon-sousuo" @click="getStaffList(1)"></text>
<input class="search-input" type='text' placeholder='请输入客户经理名称' v-model="search.keyword" @input="getStaffList(1)" />
@ -47,6 +47,7 @@
<script>
import {mapGetters} from "vuex";
import {getStaffList,delStaff,staffInviteQrCode} from "@/api/service";
import { HTTP_REQUEST_URL } from '@/config/app.js';
export default {
name: 'custom',
components: {},
@ -65,6 +66,7 @@ export default {
},
//
qrCode: '',
custom_top_bg: '',
}
},
onLoad: function(options) {
@ -81,6 +83,9 @@ export default {
//
this.getStaffList(1);
},
onReady() {
this.custom_top_bg = `${HTTP_REQUEST_URL}/static/images/mer/custom_top_bg.jpg`;
},
methods: {
//
getStaffList(page) {
@ -175,7 +180,7 @@ export default {
//
.search-content{
width: 100vw;
background: url("@/static/images/custom/custom_top_bg.jpg") no-repeat;
background-repeat: no-repeat;
padding: 20rpx 30rpx;
.search-box{

View File

@ -1,7 +1,7 @@
<template>
<view class="custom-content">
<!--顶部搜索框-->
<view class="search-content">
<view class="search-content" :style="'background-image:url('+ custom_top_bg +')'">
<view class="search-box">
<text class="iconfont icon-sousuo" @click="searchCustom()"></text>
<input class="search-input" type='text' placeholder='请输入会员昵称' v-model="search.nickname" @input="searchCustom()" />
@ -91,7 +91,8 @@ export default {
number: '',//
voucher_image: '',//
},
imgName: ""
imgName: "",
custom_top_bg: '',
}
},
computed: { },
@ -109,6 +110,9 @@ export default {
//
this.getCustom();
},
onReady() {
this.custom_top_bg = `${HTTP_REQUEST_URL}/static/images/mer/custom_top_bg.jpg`;
},
methods: {
//
getCustom(isRefresh = false) {
@ -259,7 +263,7 @@ export default {
//
.search-content{
width: 100vw;
background: url("@/static/images/custom/custom_top_bg.jpg") no-repeat;
background-repeat: no-repeat;
padding: 20rpx 30rpx;
.search-box{

View File

@ -188,6 +188,8 @@
import Loading from '@/components/Loading/index'
import PriceChange from '@/components/PriceChange/index'
import { isMoney } from '@/utils/validate.js'
import { HTTP_REQUEST_URL } from '@/config/app';
export default {
name: "AdminOrderList",
components: {

View File

@ -91,6 +91,8 @@
import Loading from '@/components/Loading/index.vue';
import { boughtLstApi, collectLstApi, browseLstApi } from "@/api/community";
import { mapGetters } from "vuex";
import { HTTP_REQUEST_URL } from '@/config/app';
export default {
props:{
checkedObj: {

View File

@ -71,6 +71,8 @@
import { refundList,refundDel } from '@/api/order.js'
import { mapGetters } from "vuex";
import { configMap } from '@/utils';
import { HTTP_REQUEST_URL } from '@/config/app';
export default{
computed:{
...mapGetters(['viewColor']),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB