Fix:5207 【商城小程序】开奖以后有多个抽奖码,需要把所有抽奖码列出来
This commit is contained in:
@@ -58,7 +58,11 @@
|
|||||||
<view class="win-banner-bg-bottom" :style="{ backgroundImage: `url(${webUrl}/zhongjiangbottom.png)` }"></view>
|
<view class="win-banner-bg-bottom" :style="{ backgroundImage: `url(${webUrl}/zhongjiangbottom.png)` }"></view>
|
||||||
<view class="win-banner-content">
|
<view class="win-banner-content">
|
||||||
<view class="win-banner-subtitle">
|
<view class="win-banner-subtitle">
|
||||||
您的抽奖码 <text class="code">{{ userWinList[0].ticketCode }}</text> 获得了
|
您的抽奖码
|
||||||
|
<text class="code" v-for="(code, index) in winTicketCodeList" :key="`${code}_${index}`">
|
||||||
|
{{ code }}<text v-if="index < winTicketCodeList.length - 1">、</text>
|
||||||
|
</text>
|
||||||
|
获得了
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="prize-card" v-for="(prize, index) in userWinList" :key="index">
|
<view class="prize-card" v-for="(prize, index) in userWinList" :key="index">
|
||||||
@@ -163,6 +167,13 @@ export default {
|
|||||||
if (this.userWinList.length !== 1) return false
|
if (this.userWinList.length !== 1) return false
|
||||||
const prize = this.userWinList[0] || {}
|
const prize = this.userWinList[0] || {}
|
||||||
return Number(prize.claimStatus) === 0
|
return Number(prize.claimStatus) === 0
|
||||||
|
},
|
||||||
|
winTicketCodeList() {
|
||||||
|
const list = (this.userWinList || [])
|
||||||
|
.map(item => String(item.ticketCode || '').trim())
|
||||||
|
.filter(code => !!code)
|
||||||
|
const uniqList = [...new Set(list)]
|
||||||
|
return uniqList.length ? uniqList : ['--']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
Reference in New Issue
Block a user