From 6dcb2f079d7c470580da23034f32aafd0a2ebcb4 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期三, 31 七月 2024 14:31:20 +0800
Subject: [PATCH] add 打印(还没debug)
---
pages/user/supplier-user.vue | 33 ++++++++++++++++++++++++++-------
1 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/pages/user/supplier-user.vue b/pages/user/supplier-user.vue
index 36cc797..e8020b8 100644
--- a/pages/user/supplier-user.vue
+++ b/pages/user/supplier-user.vue
@@ -17,12 +17,15 @@
<view class="flex user-info">
<!-- 头像 -->
- <image class="user-icon" v-if="currentInfo.picture
- ||currentInfo.customerDTO&¤tInfo.customerDTO.cover
+ <image class="user-icon" v-if="
+ currentInfo.customerDTO&¤tInfo.customerDTO.cover
+ ||currentInfo.supplierDTO&¤tInfo.supplierDTO.cover
+ || currentInfo.picture
+ " :src="
+ currentInfo.customerDTO&¤tInfo.customerDTO.cover
||currentInfo.supplierDTO&¤tInfo.supplierDTO.cover
- " :src="currentInfo.picture
- ||currentInfo.customerDTO&¤tInfo.customerDTO.cover
- ||currentInfo.supplierDTO&¤tInfo.supplierDTO.cover" mode="scaleToFill"></image>
+ || currentInfo.picture
+ " mode="scaleToFill"></image>
<image class="user-icon" v-else
src='https://youzhen123.oss-cn-huhehaote.aliyuncs.com/WechatOwnerProperty/images/mrtx.png'
mode="scaleToFill"></image>
@@ -80,8 +83,12 @@
</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" v-if="order_pendding_num">{{order_pendding_num||''}}</view>
+ </image>
<view>待付款</view>
</view>
<view class="order-icons" @click="goto('/pages/order/order?status=SEND',true)">
@@ -289,6 +296,7 @@
tel: '15974805814',
tj: {},
cacheUserId: '',
+ order_pendding_num: 0,
};
},
@@ -349,6 +357,17 @@
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