<template>
|
<!-- 客户信息 -->
|
<view class="container">
|
<view class="header">
|
<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">{{memberInfo.phone}}</text>
|
</view>
|
<view class="list-row">
|
<text class="font-14">会员级别</text>
|
<text class="font-14 gray">{{memberInfo.vipLevel || '-'}}</text>
|
</view>
|
<view class="list-row">
|
<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">¥{{memberInfo.totalBalance | formatNum}}</text>
|
</view>
|
<view class="list-row">
|
<text class="font-14">赠送余额</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 | formatNum}}</text>
|
</view>
|
<view class="list-row">
|
<text class="font-14">所属门店</text>
|
<text class="font-14 gray">{{memberInfo.shopName}}</text>
|
</view>
|
</view>
|
<navigator :url="url">
|
<button class="blue-btn sticky-footer">下一步</button>
|
</navigator>
|
</view>
|
</template>
|
|
<script>
|
export default{
|
data(){
|
return{
|
type: 1,
|
memberInfo: {},
|
url: './selectProduct/index'
|
}
|
},
|
onLoad(options) {
|
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/index?id='+id+'&vipName='+vipName;
|
}
|
}
|
})
|
}
|
}
|
}
|
</script>
|
|
<style>
|
.container{
|
padding: 0 10px;
|
}
|
.header{
|
text-align: center;
|
padding: 20px 0;
|
font-size: 16px;
|
color: #333333;
|
}
|
.avatar{
|
width: 60px;
|
height: 60px;
|
display: block;
|
margin: 0 auto 10px;
|
border-radius: 50%;
|
}
|
.list-row{
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
border-bottom: 1px solid #EDEAF4;
|
padding: 14px 0;
|
}
|
</style>
|