修改领取抽奖为弹窗打开时就领取(延迟1秒)

This commit is contained in:
YeMingfei666 2024-12-26 14:06:44 +08:00
parent 646379471f
commit dd96c6867f
1 changed files with 3 additions and 29 deletions

View File

@ -484,40 +484,14 @@
} else {
tipContent = `恭喜您,获得 ${name}${this.result.type==2?(this.result.number+'元'):''} `
this.showLingPop({...this.result})
setTimeout(()=>{
this.$Request.postJson('app/discSpinning/receive', this.result)
},1000)
}
const _this=this;
console.log(this.result);
this.result=''
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) {