抽奖界面增加loading,防止误操作
This commit is contained in:
parent
251cfd3ddc
commit
5782563c7e
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div v-loading='hasSendCode'>
|
||||
<h1 class="brand-info__text">{{dataForm.verify}}</h1>
|
||||
<h2 class="brand-info__text">{{dataForm.uuid}}</h2>
|
||||
|
||||
@ -58,9 +58,9 @@ export default {
|
||||
time: -1,
|
||||
rand: 0,
|
||||
timer: false,
|
||||
hasSendCode: false,
|
||||
hasSendCode: true,
|
||||
query: {
|
||||
luckId: 2//活动编号
|
||||
luckId: 1//活动编号
|
||||
},
|
||||
data: [],
|
||||
luckdata: [],
|
||||
@ -94,6 +94,7 @@ export default {
|
||||
this.luckdata.unshift(item)
|
||||
}
|
||||
//这里更新中奖结果,并返回未中奖的数据
|
||||
this.hasSendCode = true;
|
||||
apiUpdateLuck(this.luckdata).then(res => {
|
||||
console.log(res)
|
||||
if (res && res.code === 0) {
|
||||
@ -105,6 +106,7 @@ export default {
|
||||
} else {
|
||||
this.$message.error(res.msg)
|
||||
}
|
||||
this.hasSendCode = false;
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -128,6 +130,7 @@ export default {
|
||||
this.dataForm.verify='无法登记。' + res.msg
|
||||
this.$message.error(res.msg)
|
||||
}
|
||||
this.hasSendCode = false;
|
||||
})
|
||||
},
|
||||
dataTimeChange () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user