Task:抽奖

This commit is contained in:
LinCyJang
2026-05-07 00:10:09 +08:00
parent 91aad660e6
commit 59565871d9
7 changed files with 286 additions and 27 deletions
+4 -2
View File
@@ -80,7 +80,7 @@
<button v-else class="my-tickets-btn" @click="navToMyTickets">
<text class="btn-text">我的抽奖码</text>
</button>
<view class="claim-tip">*请在7天内领取,过期失效</view>
<view class="claim-tip">*请在{{ remainingClaimDays }}天内领取,过期失效</view>
</view>
</view>
@@ -180,7 +180,8 @@ export default {
showCouponSuccessPopup: false,
showHistory: false,
entryWithoutActivityId: false,
historyList: []
historyList: [],
remainingClaimDays: 7
}
},
onLoad(options) {
@@ -364,6 +365,7 @@ export default {
this.userWinList = this.mapUserWinList(filteredMyTicketList)
this.hasWon = this.userWinList.length > 0 ? 1 : 0
this.periodLabel = winnerData.periodNo || "01"
this.remainingClaimDays = winnerData.remainingClaimDays || 7
} catch (e) {
uni.showToast({
title: "中奖数据加载失败",