From 7890d895bd543436d44ff66c88c356977675e758 Mon Sep 17 00:00:00 2001
From: li-guang <153605324@qq.com>
Date: Tue, 29 Dec 2020 18:26:42 +0800
Subject: [PATCH] 忘记密码
---
hive-app/pages/workbench/customerInfo.vue | 46 ++++++++++++++++++++++++++++------------------
1 files changed, 28 insertions(+), 18 deletions(-)
diff --git a/hive-app/pages/workbench/customerInfo.vue b/hive-app/pages/workbench/customerInfo.vue
index 18302a2..9ed791c 100644
--- a/hive-app/pages/workbench/customerInfo.vue
+++ b/hive-app/pages/workbench/customerInfo.vue
@@ -2,43 +2,42 @@
<!-- 客户信息 -->
<view class="container">
<view class="header">
- <image class="avatar" src="../../static/images/head-img.jpg"></image>
- <text>李某</text>
+ <image class="avatar" :src="memberInfo.photo?memberInfo.photo:'../../static/images/default-avatar.png'"></image>
+ <text>{{memberInfo.vipName}}</text>
</view>
<view>
<view class="list-row">
<text class="font-14">手机号码</text>
- <text class="font-14 gray">15569218888</text>
+ <text class="font-14 gray">{{memberInfo.phone}}</text>
</view>
<view class="list-row">
<text class="font-14">会员级别</text>
- <text class="font-14 gray">普通会员</text>
+ <text class="font-14 gray">{{memberInfo.vipLevel || '-'}}</text>
</view>
<view class="list-row">
- <text class="font-14">卡号</text>
- <text class="font-14 gray">Q232</text>
+ <text class="font-14">会员编号</text>
+ <text class="font-14 gray">{{memberInfo.vipNo}}</text>
</view>
<view class="list-row">
<text class="font-14">总余额</text>
- <text class="font-14 gray">¥2,323</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">¥1,323</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">123</text>
+ <text class="font-14 gray">{{memberInfo.integral | formatNum}}</text>
</view>
<view class="list-row">
<text class="font-14">所属门店</text>
- <text class="font-14 gray">东莞店</text>
+ <text class="font-14 gray">{{memberInfo.shopName}}</text>
</view>
</view>
<navigator :url="url">
<button class="blue-btn sticky-footer">下一步</button>
</navigator>
-
</view>
</template>
@@ -46,18 +45,29 @@
export default{
data(){
return{
- url: './selectProduct',
+ type: 1,
+ memberInfo: {},
+ url: './selectProduct/index'
}
},
onLoad(options) {
- if(options.type==1){
- this.url = './selectProduct';
- } else {
- this.url = './selectService';
- }
+ this.type = options.type;
+ this.loadMemberInfo(options.id);
},
methods:{
-
+ loadMemberInfo(id){
+ 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;
+ }
+ }
+ })
+ }
}
}
</script>
--
Gitblit v1.9.1