|  |  |  | 
|---|
|  |  |  | memberInfo: {}, | 
|---|
|  |  |  | remark: '', | 
|---|
|  |  |  | isDisabled: false, | 
|---|
|  |  |  | password: '' | 
|---|
|  |  |  | password: '', | 
|---|
|  |  |  | isExistPwd: false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | computed:{ | 
|---|
|  |  |  | 
|---|
|  |  |  | 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){ | 
|---|
|  |  |  | 
|---|
|  |  |  | this.loadEmployeeList() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | employeeChange(e){ | 
|---|
|  |  |  | if(!this.employeeList.length){ | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.curEmployee = this.employeeList[e.detail.value]; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | valid(){ | 
|---|
|  |  |  | 
|---|
|  |  |  | this.$toast.info('请预约时间'); | 
|---|
|  |  |  | return false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(!this.curEmployee.id){ | 
|---|
|  |  |  | if(!this.curEmployee || !this.curEmployee.id){ | 
|---|
|  |  |  | this.$toast.info('请预约美疗师'); | 
|---|
|  |  |  | return false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | 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){ | 
|---|
|  |  |  | 
|---|
|  |  |  | uni.navigateTo({ | 
|---|
|  |  |  | url: './submitSucceed?type=2' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | this.password = ''; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.$toast.info(res.info); | 
|---|
|  |  |  | this.isRequesting = false; | 
|---|
|  |  |  | 
|---|
|  |  |  | .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; | 
|---|