From 087e498f73c3bea6210b65e4d0df668db3c3fa81 Mon Sep 17 00:00:00 2001 From: li-guang <153605324@qq.com> Date: Thu, 24 Dec 2020 16:09:06 +0800 Subject: [PATCH] 报表 --- hive-app/pages/workbench/customerInfo.vue | 35 +++++++++++++++++++++-------------- 1 files changed, 21 insertions(+), 14 deletions(-) diff --git a/hive-app/pages/workbench/customerInfo.vue b/hive-app/pages/workbench/customerInfo.vue index 18302a2..5a69135 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}}</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}}</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}}</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,26 @@ export default{ data(){ return{ - url: './selectProduct', + memberInfo: {}, + url: './selectProduct/index' } }, onLoad(options) { if(options.type==1){ - this.url = './selectProduct'; + this.url = './selectProduct/index'; } else { this.url = './selectService'; } + 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; + } + }) + } } } </script> -- Gitblit v1.9.1