抽奖优化更新

This commit is contained in:
GaoHao
2025-01-09 10:50:42 +08:00
parent 339ddfc493
commit d4237d4365
4 changed files with 10 additions and 228 deletions

View File

@@ -468,35 +468,13 @@
tipContent = `恭喜您,获得 ${name}${this.result.type==2?(this.result.number+'元'):''} `
}
const _this = this;
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
}
uni.showToast({
title: tipContent,
icon: 'none'
})
_this.getRedPack()
this.prizeing = false
},
// 抽奖转盘绘制完成
handleDrawFinish(res) {