Feat:抽奖2.0(抽奖活动无法正常进入到下一个抽奖活动,购买抽奖商品无法获取到抽奖码)

This commit is contained in:
LinCyJang
2026-04-28 01:21:38 +08:00
parent d3602c010e
commit 8f164cc6ef
7 changed files with 1208 additions and 68 deletions
+27 -3
View File
@@ -441,6 +441,7 @@ import {
openLocationSettting
} from "@/utils/common"
import { getWeixinShareConfig } from '@/api/public'
import { checkDrawTime } from '@/api/lottery'
export default {
name: 'IndexPage',
components: {
@@ -1658,12 +1659,35 @@ export default {
this.isDrawPosterVisible = false
this.showNextPoster()
},
goDrawLotteryPage() {
parseCheckTimeResult(res) {
if (typeof res === 'boolean') return res
if (typeof (res && res.data) === 'boolean') return res.data
if (res && typeof res.success !== 'undefined') return Boolean(res.data)
return false
},
async goDrawLotteryPage() {
const config = this.drawEntranceConfig || {}
const linkType = Number(config.homePosterLinkType) || 1
const activityId = Number(config.homePosterAreaId) || 0
const activityId = Number(config.drawActivityId) || 0
if (!activityId) {
uni.showToast({
title: '活动配置异常',
icon: 'none'
})
return
}
let opened = false
try {
const res = await checkDrawTime(activityId)
// opened = this.parseCheckTimeResult(res)
} catch (e) {
opened = false
}
const url = opened
? `/pkg-video/views/county-winners?activityId=${activityId}`
: `/pkg-video/views/county-lottery?linkType=${linkType}&activityId=${activityId}`
uni.navigateTo({
url: `/pkg-video/views/county-lottery?linkType=${linkType}&activityId=${4}`
url
})
},
tapDrawPoster() {