From d7ad4f31d11d07a74814b0e177891c6b71442f20 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期一, 23 九月 2024 10:04:40 +0800 Subject: [PATCH] update --- pages/home/supplier-home.vue | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/pages/home/supplier-home.vue b/pages/home/supplier-home.vue index 3faafc4..581e7a3 100644 --- a/pages/home/supplier-home.vue +++ b/pages/home/supplier-home.vue @@ -53,7 +53,7 @@ <view class="flex tj-container" v-if="selftype==='supplier'"> <view class="tj-each"> <view class="num"> - {{tj.dealCountLastMonth||0}}单 + {{tj.dealCountLastMonth||0}}扎 </view> <view class="name"> 上月成交 @@ -61,7 +61,7 @@ </view> <view class="tj-each"> <view class="num"> - {{tj.dealCountToday||0}}单 + {{tj.dealCountToday||0}}扎 </view> <view class="name"> 今日成交 @@ -69,7 +69,7 @@ </view> <view class="tj-each"> <view class="num"> - {{tj.dealCountDay30||0}}单 + {{tj.dealCountDay30||0}}扎 </view> <view class="name"> 近30天成交 @@ -135,14 +135,14 @@ </view> <view class="order-desc tg">订单管理</view> </view> - <!-- <view class="nav row margin-tb" v-if="selftype==='supplier'" + <view class="nav row margin-tb" v-if="selftype==='supplier'" @click="goto('/sub_pages/supplier/order-manage/order-manage',true)"> <view class="img-c"> <image class="icon margin-bottom order-icon ddgl" src="/static/images/partner/user/user-icon-ddgl.png" mode="scaleToFill" /> </view> <view class="order-desc tg">订单统计</view> - </view> --> + </view> <view class="nav row margin-tb" @click="goto('/sub_pages/supplier/order-settlement/order-settlement',true)"> @@ -167,7 +167,7 @@ </view> <view class="order-desc tg">加价配置</view> </view> - <view class="nav row margin-tb" @click="goto('/sub_pages/supplier/order-sale/order-sale',true)"> + <view class="nav row margin-tb" @click="goto('/pages/order/order-sale/order-sale',true)"> <view class="img-c"> <image class="icon margin-bottom order-icon shlp" src="/static/images/supplier/user/user-icon-shlp.png" mode="scaleToFill" /> @@ -238,6 +238,7 @@ }, async onPullDownRefresh() { await this.$store.dispatch('getCurrentInfo') + await getTj(true) uni.stopPullDownRefresh() }, onLoad(options) { @@ -245,7 +246,7 @@ const urlcode = options.url && decodeURIComponent(options.url) || '' }, onShow() { - this.getTj() + this.getTj(true) }, created() { //公告 @@ -267,7 +268,7 @@ } }).then(res => { if (res.code == 0) { - this.noticeList = (res.data && res.data.records || []) + this.noticeList = (res.data && res.data || []) console.log('this.noticeList', this.noticeList) if (this.noticeList.length > 0) { this.currentNotice = this.noticeList[0] @@ -430,10 +431,10 @@ }, }) }, - getTj() { + getTj(refresh=false) { // /api/supplier/delivery - if (this.currentInfo.id && this.currentInfo.id !== this.cacheUserId) { + if (this.currentInfo.id && (this.currentInfo.id !== this.cacheUserId || refresh)) { this.cacheUserId = this.currentInfo.id let that = this setTimeout(() => { -- Gitblit v1.9.3