From 65571790c547af1de4a9b5f93d418a5fb2760271 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期二, 24 九月 2024 15:35:40 +0800 Subject: [PATCH] 1.订单-点击订单商品跳转到订单详情 2.订单-点击商铺跳转到商铺详情 3.订单-订单详情-点击商品跳转到商品详情 4.订单-订单详情-点击商铺跳转到商铺详情 --- pages/home/supplier-home.vue | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pages/home/supplier-home.vue b/pages/home/supplier-home.vue index e673783..e3383f1 100644 --- a/pages/home/supplier-home.vue +++ b/pages/home/supplier-home.vue @@ -128,12 +128,12 @@ <view class="tj-panel pink flex1" @click="goto('/pages/order/order-delivery?status=PENDING&range=today',true)"> <view class="name">今日待配送</view> - <view class="title">{{tj.deliverCount||0}}单</view> + <view class="title">{{tj.deliverCount||0}}扎</view> </view> <view class="tj-panel green flex1" @click="goto('/pages/order/order-delivery?range=today',true)"> <view class="name green">今日配送汇总</view> - <view class="title">{{tj.deliverTotal||0}}单</view> + <view class="title">{{tj.deliverTotal||0}}扎</view> </view> </view> <view class="m-t-12" @click="getNoticeMore"> @@ -255,6 +255,7 @@ }, async onPullDownRefresh() { await this.$store.dispatch('getCurrentInfo') + await getTj(true) uni.stopPullDownRefresh() }, onLoad(options) { @@ -262,7 +263,7 @@ const urlcode = options.url && decodeURIComponent(options.url) || '' }, onShow() { - this.getTj() + this.getTj(true) }, created() { //公告 @@ -447,10 +448,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