| | |
| | | <!-- 客户信息 --> |
| | | <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"> |
| | |
| | | export default{ |
| | | data(){ |
| | | return{ |
| | | url: './selectProduct/index', |
| | | memberInfo: {}, |
| | | url: './selectProduct/index' |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | |
| | | } 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> |