update
This commit is contained in:
@@ -120,10 +120,17 @@ watch(() => props.show, async (newVal) => {
|
||||
let lottteryResult = null
|
||||
if (props.type === 'draw') {
|
||||
lottteryResult = await Request("lottery/draw", { pool: 'game', consume_type: 'points' })
|
||||
// 监听请求失败,关闭组件
|
||||
if (!lottteryResult || !lottteryResult.res || (lottteryResult.res.status !== 200 && lottteryResult.res.status !== 201)) {
|
||||
emit('close')
|
||||
loading.hide()
|
||||
return
|
||||
}
|
||||
} else {
|
||||
if (!props.data) {
|
||||
weui.alert("获取排名奖励出错,请刷新页面重试")
|
||||
emit('close')
|
||||
loading.hide()
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user