queenwuli
2020-12-24 c6bac585288a7841b1d1f5fd774b7c765955815b
hive-app/pages/workbench/customerInfo.vue
@@ -20,15 +20,15 @@
         </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>
@@ -45,16 +45,13 @@
   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:{
@@ -62,6 +59,12 @@
            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;
                  }
               }
            })
         }