|
|
|
@ -1326,7 +1326,7 @@ |
|
|
|
|
<el-button @click="cancel(num)">{{ |
|
|
|
|
$t('trade.table.header_cancel') |
|
|
|
|
}}</el-button> |
|
|
|
|
<el-button type="primary" @click="subPay()">{{ |
|
|
|
|
<el-button type="primary" @click="subPay()" :disabled="tochange">{{ |
|
|
|
|
$t('trade.table.header_confirm') |
|
|
|
|
}}</el-button> |
|
|
|
|
</span> |
|
|
|
@ -1521,6 +1521,7 @@ export default { |
|
|
|
|
loading2: false, |
|
|
|
|
loading3: false, |
|
|
|
|
loading4: false, |
|
|
|
|
tochange: false, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
components: { |
|
|
|
@ -2638,6 +2639,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
//点击密码确定按钮 |
|
|
|
|
subPay() { |
|
|
|
|
this.tochange = true; //防止多次点击确认按钮 |
|
|
|
|
if (this.num == '1') { |
|
|
|
|
this.loading1 = true; |
|
|
|
|
} else if (this.num == '2') { |
|
|
|
@ -2695,17 +2697,20 @@ export default { |
|
|
|
|
this.getFree(); //刷新可用额数据 |
|
|
|
|
// 请求后关闭窗口 |
|
|
|
|
this.passdialogVisible = false; |
|
|
|
|
this.tochange = false; |
|
|
|
|
} else if (res.data.code === 12710) { |
|
|
|
|
this.loading1 = false; |
|
|
|
|
this.$message.error(res.data.msg); |
|
|
|
|
this.inputpassword = ''; |
|
|
|
|
// 密码输入框出现,清除缓存 |
|
|
|
|
this.passdialogVisible = true; |
|
|
|
|
this.tochange = false; |
|
|
|
|
localStorage.removeItem('userpass'); |
|
|
|
|
localStorage.removeItem('userdate'); |
|
|
|
|
localStorage.removeItem('nowPassNOValue'); |
|
|
|
|
} else { |
|
|
|
|
this.loading1 = false; |
|
|
|
|
this.tochange = false; |
|
|
|
|
this.passdialogVisible = false; |
|
|
|
|
this.inputpassword = ''; //清空密码 |
|
|
|
|
this.$message.warning(res.data.msg); |
|
|
|
@ -2747,17 +2752,20 @@ export default { |
|
|
|
|
this.getFree(); //刷新数据 |
|
|
|
|
// 请求后关闭窗口 |
|
|
|
|
this.passdialogVisible = false; |
|
|
|
|
this.tochange = false; |
|
|
|
|
} else if (res.data.code === 12710) { |
|
|
|
|
this.loading2 = false; |
|
|
|
|
this.$message.error(res.data.msg); |
|
|
|
|
this.inputpassword = ''; |
|
|
|
|
// 密码输入框出现,清除缓存 |
|
|
|
|
this.passdialogVisible = true; |
|
|
|
|
this.tochange = false; |
|
|
|
|
localStorage.removeItem('userpass'); |
|
|
|
|
localStorage.removeItem('userdate'); |
|
|
|
|
localStorage.removeItem('nowPassNOValue'); |
|
|
|
|
} else { |
|
|
|
|
this.loading2 = false; |
|
|
|
|
this.tochange = false; |
|
|
|
|
this.passdialogVisible = false; |
|
|
|
|
this.$message.warning(res.data.msg); |
|
|
|
|
this.inputpassword = ''; |
|
|
|
@ -2797,17 +2805,20 @@ export default { |
|
|
|
|
this.getFree(); //刷新数据 |
|
|
|
|
// 请求后关闭窗口 |
|
|
|
|
this.passdialogVisible = false; |
|
|
|
|
this.tochange = false; |
|
|
|
|
} else if (res.data.code === 12710) { |
|
|
|
|
this.loading3 = false; |
|
|
|
|
this.$message.error(res.data.msg); |
|
|
|
|
this.inputpassword = ''; |
|
|
|
|
// 密码输入框出现,清除缓存 |
|
|
|
|
this.passdialogVisible = true; |
|
|
|
|
this.tochange = false; |
|
|
|
|
localStorage.removeItem('userpass'); |
|
|
|
|
localStorage.removeItem('userdate'); |
|
|
|
|
localStorage.removeItem('nowPassNOValue'); |
|
|
|
|
} else { |
|
|
|
|
this.loading3 = false; |
|
|
|
|
this.tochange = false; |
|
|
|
|
this.passdialogVisible = false; |
|
|
|
|
this.$message.warning(res.data.msg); |
|
|
|
|
this.inputpassword = ''; |
|
|
|
@ -2841,17 +2852,20 @@ export default { |
|
|
|
|
this.getFree(); //刷新数据 |
|
|
|
|
// 请求后关闭窗口 |
|
|
|
|
this.passdialogVisible = false; |
|
|
|
|
this.tochange = false; |
|
|
|
|
} else if (res.data.code === 12710) { |
|
|
|
|
this.loading4 = false; |
|
|
|
|
this.$message.error(res.data.msg); |
|
|
|
|
this.inputpassword = ''; |
|
|
|
|
// 密码输入框出现,清除缓存 |
|
|
|
|
this.passdialogVisible = true; |
|
|
|
|
this.tochange = false; |
|
|
|
|
localStorage.removeItem('userpass'); |
|
|
|
|
localStorage.removeItem('userdate'); |
|
|
|
|
localStorage.removeItem('nowPassNOValue'); |
|
|
|
|
} else { |
|
|
|
|
this.loading4 = false; |
|
|
|
|
this.tochange = false; |
|
|
|
|
this.passdialogVisible = false; |
|
|
|
|
this.$message.warning(res.data.msg); |
|
|
|
|
this.inputpassword = ''; |
|
|
|
|