From c2910d258fd92ff40a6d23d94c186f11d78a5fd5 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期六, 14 九月 2024 15:02:44 +0800
Subject: [PATCH] update 花店端一些细节

---
 pages/user/supplier-user.vue |   25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/pages/user/supplier-user.vue b/pages/user/supplier-user.vue
index ab64e5b..5befef5 100644
--- a/pages/user/supplier-user.vue
+++ b/pages/user/supplier-user.vue
@@ -50,20 +50,22 @@
 								<uni-icons color="#7CC662" type="right" size="18"></uni-icons>
 
 							</view>
-							<view v-else-if="currentInfo.customerDTO.userGrowthRecord.currentMemberLevel=='银卡会员'" class="v2">
+							<view v-else-if="currentInfo.customerDTO.userGrowthRecord.currentMemberLevel=='银卡会员'"
+								class="v2">
 								<image class="member-icon v2"
 									src="../../static/images/customer/coupon/member/icon-member-2.png"></image>
 								{{currentInfo.customerDTO.userGrowthRecord.currentMemberLevel}}
 								<uni-icons color="#7498E0" type="right" size="18"></uni-icons>
 
 							</view>
-							<view v-else-if="currentInfo.customerDTO.userGrowthRecord.currentMemberLevel=='金卡会员'" class="v3">
+							<view v-else-if="currentInfo.customerDTO.userGrowthRecord.currentMemberLevel=='金卡会员'"
+								class="v3">
 								<image class="member-icon v3"
 									src="../../static/images/customer/coupon/member/icon-member-3.png"></image>
 								{{currentInfo.customerDTO.userGrowthRecord.currentMemberLevel}}
 								<uni-icons color="#C47810" type="right" size="18"></uni-icons>
 							</view>
-							<view v-else  class="v4">
+							<view v-else class="v4">
 								<image class="member-icon v4"
 									src="../../static/images/customer/coupon/member/icon-member-4.png"></image>
 								{{currentInfo.customerDTO.userGrowthRecord.currentMemberLevel}}
@@ -113,7 +115,7 @@
 			v-if="selftype==='customer'||!selftype">
 			<view>
 				<view class="title">积分商城</view>
-				<view class="score m-t-8">拥有积分:{{currentInfo.currentPoint || 0}}</view>
+				<view class="score m-t-8">拥有积分:{{self_point}}</view>
 			</view>
 			<view class="button m-l-a m-r-0 m-t-12">
 				去兑换 <uni-icons color="#ffffff" type="right" size="16"></uni-icons>
@@ -431,6 +433,20 @@
 
 <script>
 	export default {
+		computed: {
+
+			self_point() {
+				if (this.currentInfo.currentPoint) {
+					if (this.currentInfo.currentPoint >= 10000) {
+						return (this.currentInfo.currentPoint / 10000 + '万')
+					} else {
+						return this.currentInfo.currentPoint
+					}
+				}
+
+				return 0
+			}
+		},
 		data() {
 			return {
 				CustomBar: uni.getStorageSync('CustomBar'),
@@ -512,6 +528,7 @@
 		created() {
 
 		},
+
 		async onPullDownRefresh() {
 			await this.$store.dispatch('getCurrentInfo')
 			uni.stopPullDownRefresh()

--
Gitblit v1.9.3