From b83ba3cc4687f21d744e9866e10e30e91229e8a4 Mon Sep 17 00:00:00 2001
From: queenwuli <942534046@qq.com>
Date: Thu, 28 Jan 2021 16:23:30 +0800
Subject: [PATCH] gx

---
 hive-app/pages/workbench/customerInfo.vue |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/hive-app/pages/workbench/customerInfo.vue b/hive-app/pages/workbench/customerInfo.vue
index 5a69135..f4e6eed 100644
--- a/hive-app/pages/workbench/customerInfo.vue
+++ b/hive-app/pages/workbench/customerInfo.vue
@@ -20,15 +20,15 @@
 			</view>
 			<view class="list-row">
 				<text class="font-14">总余额</text>
-				<text class="font-14 gray">¥{{memberInfo.totalBalance}}</text>
+				<text class="font-14 gray">¥{{memberInfo.totalBalance | formatNum}}</text>
 			</view>
 			<view class="list-row">
 				<text class="font-14">赠送余额</text>
-				<text class="font-14 gray">¥{{memberInfo.giftBalance}}</text>
+				<text class="font-14 gray">¥{{memberInfo.giftBalance | formatNum}}</text>
 			</view>
 			<view class="list-row">
 				<text class="font-14">剩余积分</text>
-				<text class="font-14 gray">{{memberInfo.integral}}</text>
+				<text class="font-14 gray">{{memberInfo.integral | formatNum}}</text>
 			</view>
 			<view class="list-row">
 				<text class="font-14">所属门店</text>
@@ -45,16 +45,13 @@
 	export default{
 		data(){
 			return{
+				type: 1,
 				memberInfo: {},
 				url: './selectProduct/index'
 			}
 		},
 		onLoad(options) {
-			if(options.type==1){
-				this.url = './selectProduct/index';
-			} else {
-				this.url = './selectService';
-			}
+			this.type = options.type;
 			this.loadMemberInfo(options.id);
 		},
 		methods:{
@@ -62,6 +59,12 @@
 				this.$httpUtils.request('/api/vip/findVipInfoById/'+id).then((res) => {
 					if(res.status == 200){
 						this.memberInfo = res.mapInfo.vipInfo;
+						const {vipName} = this.memberInfo;
+						if(this.type==1){
+							this.url = './selectProduct/index?id='+id+'&vipName='+vipName;
+						} else {
+							this.url = './selectService/index?id='+id+'&vipName='+vipName;
+						}
 					}
 				})
 			}

--
Gitblit v1.9.1