修改领取抽奖为弹窗打开时就领取(延迟1秒)
This commit is contained in:
@@ -484,40 +484,14 @@
|
|||||||
} else {
|
} else {
|
||||||
tipContent = `恭喜您,获得 ${name}${this.result.type==2?(this.result.number+'元'):''} !`
|
tipContent = `恭喜您,获得 ${name}${this.result.type==2?(this.result.number+'元'):''} !`
|
||||||
this.showLingPop({...this.result})
|
this.showLingPop({...this.result})
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.$Request.postJson('app/discSpinning/receive', this.result)
|
||||||
|
},1000)
|
||||||
}
|
}
|
||||||
const _this=this;
|
const _this=this;
|
||||||
console.log(this.result);
|
console.log(this.result);
|
||||||
this.result=''
|
this.result=''
|
||||||
this.prizeing = false
|
this.prizeing = false
|
||||||
return
|
|
||||||
// uni.showModal({
|
|
||||||
// content: tipContent,
|
|
||||||
// showCancel: false,
|
|
||||||
// success() {
|
|
||||||
// const {
|
|
||||||
// orderId,id
|
|
||||||
// }=_this.result
|
|
||||||
// _this.$Request.postJson('app/discSpinning/receive',_this.result).then(res=>{
|
|
||||||
// _this.result=''
|
|
||||||
// console.log(res)
|
|
||||||
// if(res.code==0){
|
|
||||||
// uni.showToast({
|
|
||||||
// title: '领取成功',
|
|
||||||
// icon:'none'
|
|
||||||
// })
|
|
||||||
// _this.getRedPack()
|
|
||||||
// }else{
|
|
||||||
// uni.showToast({
|
|
||||||
// title: '领取失败',
|
|
||||||
// icon:'none'
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
// complete: () => {
|
|
||||||
// this.prizeing = false
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
// 抽奖转盘绘制完成
|
// 抽奖转盘绘制完成
|
||||||
handleDrawFinish(res) {
|
handleDrawFinish(res) {
|
||||||
|
|||||||
Reference in New Issue
Block a user