|
@@ -14,7 +14,7 @@
|
|
|
<div>
|
|
|
<div class="form_item_title">
|
|
|
<div>付费码信息<span style="color:red;font-size:12px;">(请先检验付费码)</span>:</div>
|
|
|
- <el-button type="primary" size="small" @click="verification">校验</el-button>
|
|
|
+ <el-button type="primary" size="small" v-if="showVerification" :loading="btnLoading2" @click="verification">校验</el-button>
|
|
|
</div>
|
|
|
<el-form-item prop="paidCode" label="付费码:">
|
|
|
<el-input v-model="form.paidCode" placeholder="请输入付费码"></el-input>
|
|
@@ -128,6 +128,8 @@
|
|
|
data() {
|
|
|
return {
|
|
|
btnLoading:false,
|
|
|
+ btnLoading2:false,
|
|
|
+ showVerification:true,
|
|
|
form:{
|
|
|
},
|
|
|
phoneCodeText:'获取验证码',
|
|
@@ -244,6 +246,7 @@
|
|
|
paidCode:this.form.paidCode,
|
|
|
phoneCode:this.form.phoneCode1
|
|
|
}
|
|
|
+ this.btnLoading2 = true
|
|
|
this.$api.checkPhoneCodeByPaidCode(params).then(response=>{
|
|
|
if(response.code == 200 && response.data.token){
|
|
|
this.$message.success('检验通过')
|
|
@@ -251,8 +254,13 @@
|
|
|
...response.data,
|
|
|
...this.form
|
|
|
}
|
|
|
+ form.token = response.data.token
|
|
|
this.form = form
|
|
|
+ this.btnLoading2 = false
|
|
|
+ this.showVerification = false
|
|
|
}
|
|
|
+ }).catch(error=>{
|
|
|
+ this.btnLoading2 = false
|
|
|
})
|
|
|
},
|
|
|
//提交信息
|