From 8c4dd05b10fcaeb94c09613699aab923318a1c6d Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期日, 02 七月 2023 18:13:27 +0800 Subject: [PATCH] 称重逻辑简化,提高可读性 --- pages/freight-forwarder-page/freightForwarder-index/freightForwarder-index.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pages/freight-forwarder-page/freightForwarder-index/freightForwarder-index.vue b/pages/freight-forwarder-page/freightForwarder-index/freightForwarder-index.vue index 92084f9..07c8cf5 100644 --- a/pages/freight-forwarder-page/freightForwarder-index/freightForwarder-index.vue +++ b/pages/freight-forwarder-page/freightForwarder-index/freightForwarder-index.vue @@ -2,7 +2,7 @@ <view class="freightForwarder-index"> <view class="freightForwarder-index-body"> <view class="wait-collection" - style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/customerbanner.png') no-repeat;background-size:contain"> + :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/customerbanner.png)`, backgroundSize: 'contain', backgroundRepeat: 'no-repeat' }"> </view> <view style="position: relative;top: -120px;"> <u-empty mode="data" @@ -54,7 +54,7 @@ <view class="third-line"> <view class="time-icon"> <view - style="width: 24rpx;height: 24rpx;line-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clock.png') no-repeat;background-size: cover"> + :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/clock.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}"> </view> </view> <view class="send-date">{{ item.sendDate }}</view> @@ -113,7 +113,7 @@ <view class="fourth"> <view class="fourth-icon"> <view - style="width: 24rpx;height: 24rpx;line-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clock.png') no-repeat;background-size: cover"> + :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/clock.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}"> </view> </view> <view class="senddate">{{ item.sendDate }}</view> @@ -121,7 +121,7 @@ <view class="fourth"> <view class="fourth-icon"> <view - style="width: 26rpx;height: 26rpx;line-height: 26rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/carnNUm.png') no-repeat;background-size: cover"> + :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/carnNUm.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'26rpx',height:'26rpx',lineHeight:'26rpx'}"> </view> </view> <view class="senddate">{{ item.orderCode }}</view> @@ -137,6 +137,7 @@ </template> <script> + import { onlineurl } from '@/api/request.js' import combinedTitle from '@/components/combined-title/combined-title.vue'; export default { props: { @@ -182,7 +183,8 @@ // 鏁版嵁鎬婚噺 total: 0, // 鏄惁鏄剧ず鏇村鏁版嵁 - showMoreData: false + showMoreData: false, + onlineurl, }; }, onShow() { -- Gitblit v1.9.1