分销提现,滑块验证bug修改

This commit is contained in:
mabo
2021-07-02 16:45:52 +08:00
parent 3a76ba2c1f
commit cc1afed902
5 changed files with 72 additions and 61 deletions

View File

@@ -72,19 +72,26 @@ export default {
xPos: this.distance
};
postVerifyImg(params).then(res => {
if (res.result) {
this.bgColor = 'green';
this.verifyText = '解锁成功';
this.$emit('change', { status: true, distance: this.distance });
if (res.success) {
if (res.result) {
this.bgColor = 'green';
this.verifyText = '解锁成功';
this.$emit('change', { status: true, distance: this.distance });
} else {
this.bgColor = 'red';
this.verifyText = '解锁失败';
let that = this;
setTimeout(() => {
that.refresh();
}, 1000);
this.$emit('change', { status: false, distance: this.distance });
}
} else {
this.bgColor = 'red';
this.verifyText = '解锁失败';
let that = this;
setTimeout(() => {
that.refresh();
}, 1000);
this.$emit('change', { status: false, distance: this.distance });
this.refresh()
}
}).catch(()=>{
this.refresh()
});
},
refresh () { // 刷新滑块