From f5427eeb16cadd3b0534454ab3c92df6f0ec1536 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期日, 02 七月 2023 16:49:13 +0800 Subject: [PATCH] 图片地址替换 --- pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue index 3ef21f0..69817f9 100644 --- a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue +++ b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue @@ -1,7 +1,7 @@ <template> <view class="bill-of-lading-details"> <view class="top-banner" - style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/loadingbanner.png') no-repeat;background-size: cover;"> + :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/loadingbanner.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }"> </view> <view class="top-information"> <view class="cutomer-name" @@ -21,8 +21,7 @@ <view class="basic"> <view class="coalName">{{ coalDetailsData.coalName||'' }}</view> <view class="status-button" - style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/statusbutton.png') no-repeat; - background-size: cover;"> + :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/statusbutton.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }"> {{ coalStatus[coalDetailsData.statusWeigh] || '' }} </view> </view> @@ -58,19 +57,19 @@ <view class="item-block"> <view class="item"> <view class="concrete" - style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/skin.png') no-repeat;background-size: cover;"> + :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/skin.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }"> 鐨�</view> <view class="num">{{ item.skin }}</view> </view> <view class="item"> <view class="concrete" - style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/hair.png') no-repeat;background-size: cover;"> + :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/hair.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }"> 姣�</view> <view class="num">{{ item.hair }}</view> </view> <view class="item"> <view class="concrete" - style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clean.png') no-repeat;background-size: cover;"> + :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/clean.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }"> 鍑�</view> <view class="num">{{ item.clean }}</view> </view> @@ -153,6 +152,7 @@ </template> <script> + import { onlineurl } from '@/api/request.js' import { webSocketUrl } from '@/api/request.js'; import { mapState, mapMutations } from 'vuex'; export default { @@ -227,7 +227,8 @@ completeOutSaleShow: false, overTmWaixiao: null, // 鍒よ缃戠粶鐘舵�侊紝 - normalCode: true + normalCode: true, + onlineurl, }; }, onShow() { -- Gitblit v1.9.1