修改领取抽奖为弹窗打开时就领取(延迟1秒)
This commit is contained in:
parent
646379471f
commit
dd96c6867f
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue