queenwuli
2021-01-19 a3a48da30bdea132d2bfbb47fa2ccf83f1937c45
hive-app/pages/workbench/confirmService.vue
@@ -88,7 +88,8 @@
            memberInfo: {},
            remark: '',
            isDisabled: false,
            password: ''
            password: '',
            isExistPwd: false
         }
      },
      computed:{
@@ -113,9 +114,17 @@
      onLoad(options) {
         this.id = options.id;
         this.list = JSON.parse(decodeURIComponent(options.list));
         this.loadIsExistFundPassword();
         this.loadMemberInfo();
      },
      methods:{
         loadIsExistFundPassword(){
            this.$httpUtils.request('/api/vip/isExistFundPassword/'+this.id).then((res) => {
               if(res.status == 200){
                  this.isExistPwd = res.mapInfo.isExist;
               }
            })
         },
         loadMemberInfo(){
            this.$httpUtils.request('/api/vip/findVipInfoById/'+this.id).then((res) => {
               if(res.status == 200){
@@ -139,10 +148,17 @@
            this.$refs['date-time'].show();
         },
         dateTimeChange(val) {
            this.yyTime = val;
            this.loadEmployeeList()
            if(this.$utils.compareData(val, new Date())){
               this.yyTime = val;
               this.loadEmployeeList()
            }else{
               this.$toast.info('请选择正确的预约时间')
            }
         },
         employeeChange(e){
            if(!this.employeeList.length){
               return;
            }
            this.curEmployee = this.employeeList[e.detail.value];
         },
         valid(){
@@ -150,7 +166,7 @@
               this.$toast.info('请预约时间');
               return false
            }
            if(!this.curEmployee.id){
            if(!this.curEmployee || !this.curEmployee.id){
               this.$toast.info('请预约美疗师');
               return false
            }
@@ -172,11 +188,15 @@
            if(this.valid() === false){
               return;
            }
            // 未设置资金密码,不弹出密码框
            if(!this.isExistPwd){
               this.submit();
               return;
            }
            this.$refs.popup.open();
            setTimeout(() => {
               this.$refs.KeyboarHid.open()
            }, 50)
            }, 50);
         },
         submit(){
            if(this.isRequesting){
@@ -202,6 +222,8 @@
                  uni.navigateTo({
                     url: './submitSucceed?type=2'
                  })
               }else{
                  this.password = '';
               }
               this.$toast.info(res.info);
               this.isRequesting = false;
@@ -217,13 +239,13 @@
   .popup-container{
      background: #FFFFFF;
      width: 500rpx;
      padding: 20px 20px 20px;
      padding: 20px 20px 30px;
      border-radius: 6px;
   }
   .popup-title{
      font-size: 16px;
      text-align: center;
      margin-bottom: 20px;
      margin-bottom: 15px;
   }
   .popup-sub-title{
      font-size: 15px;