From c212c9ab501e1aff9e2dd90e8e87871c0bc7f1bc Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期二, 30 七月 2024 14:03:29 +0800 Subject: [PATCH] fix bug --- pages/user/supplier-user.vue | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/pages/user/supplier-user.vue b/pages/user/supplier-user.vue index 36cc797..234857b 100644 --- a/pages/user/supplier-user.vue +++ b/pages/user/supplier-user.vue @@ -80,8 +80,11 @@ </view> </view> <view class="flex order-icons-container"> - <view class="order-icons" @click="goto('/pages/order/order?status=PENDING',true)"> - <image src="../../static/images/customer/order/order-type-1.png" class="order-icon dfk"></image> + <view class="order-icons" style="position: relative;" @click="goto('/pages/order/order?status=PENDING',true)"> + <image src="../../static/images/customer/order/order-type-1.png" class="order-icon dfk" + style="position: relative;"> + <view class="image-shop-number">{{order_pendding_num||''}}</view> + </image> <view>待付款</view> </view> <view class="order-icons" @click="goto('/pages/order/order?status=SEND',true)"> @@ -289,6 +292,7 @@ tel: '15974805814', tj: {}, cacheUserId: '', + order_pendding_num: 0, }; }, @@ -349,6 +353,18 @@ that.tj = res.data || {} } }) + //获取待支付数目 + this.$http.request('get', '/api/customer/order/count/pending', { + params: { + } + }).then(res => { + if (res.code === 0) { + that.order_pendding_num = res.data || 0 + + } + }) + + // #endif }, 200) } -- Gitblit v1.9.3