From c6bac585288a7841b1d1f5fd774b7c765955815b Mon Sep 17 00:00:00 2001
From: queenwuli <942534046@qq.com>
Date: Thu, 24 Dec 2020 16:09:42 +0800
Subject: [PATCH] 商品订单联调
---
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..9ed791c 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?id='+id+'&vipName='+vipName;
+ }
}
})
}
--
Gitblit v1.9.1