Fix:5245 【商城小程序】已过开奖时间,从千县进入抽奖活动应跳转至中奖名单页
This commit is contained in:
@@ -929,6 +929,7 @@ import { pageListenMixins } from '@/mixins/pageListenMixins'
|
||||
import FunctionGuide from '@/components/FunctionGuide'
|
||||
import GuideMixins from '@/mixins/GuideMixins'
|
||||
import AiEntrance from '@/components/aiChat/entrance'
|
||||
import { checkDrawTime } from '@/api/lottery'
|
||||
export default {
|
||||
components: {
|
||||
imgBox,
|
||||
@@ -1654,7 +1655,13 @@ export default {
|
||||
toggleCountyIntro() {
|
||||
this.toggleCountyIntroStatus = !this.toggleCountyIntroStatus
|
||||
},
|
||||
goDrawActivity() {
|
||||
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 goDrawActivity() {
|
||||
const activityId = Number(this.detail.drawActivityId) || 0
|
||||
if (!activityId) {
|
||||
uni.showToast({
|
||||
@@ -1663,8 +1670,17 @@ export default {
|
||||
})
|
||||
return
|
||||
}
|
||||
let opened = false
|
||||
try {
|
||||
const res = await checkDrawTime(activityId)
|
||||
opened = this.parseCheckTimeResult(res)
|
||||
} catch (e) {
|
||||
opened = false
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/pkg-video/views/county-lottery?activityId=${activityId}`
|
||||
url: opened
|
||||
? `/pkg-video/views/county-winners?activityId=${activityId}`
|
||||
: `/pkg-video/views/county-lottery?activityId=${activityId}`
|
||||
})
|
||||
},
|
||||
showPic(index) {
|
||||
|
||||
Reference in New Issue
Block a user