邀请页面更新,抽奖优化,提现列表文字优化

This commit is contained in:
2025-01-10 18:32:44 +08:00
parent b8c47e899d
commit 948ea77ee6
4 changed files with 47 additions and 14 deletions

View File

@@ -440,16 +440,18 @@
this.result=''
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
const res = await this.$Request.getT('app/discSpinning/draw',{source:this.source})
this.freeNum--
// this.getCount()
console.log(res);
if (res.code != 0) {
this.prizeing = false
return uni.showToast({
title: res.msg
title: res.msg||'请求抽奖失败',
icon:'none'
})
}
this.freeNum--
this.result=res.data
let list = [...this.prizeList]
// 这里随机产生的 prizeId 是模拟后端返回的 prizeId
const arr=list.filter(v=>v.type==res.data.type&&res.data.name==v.name)