| | |
| | | </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> |
| | |
| | | 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:{ |
| | |
| | | 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; |
| | | } |
| | | } |
| | | }) |
| | | } |