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

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

View File

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

View File

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

View File

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

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB