Commit 7da4631e by lijiabin

【需求 20362】 ux: 加入二次确认框等

parent 7a5c0576
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
:ref="(e) => (contentRefList[index] = e as HTMLElement)" :ref="(e) => (contentRefList[index] = e as HTMLElement)"
class="text-gray-600 text-sm sm:text-base leading-relaxed transition-all duration-300" class="text-gray-600 text-sm sm:text-base leading-relaxed transition-all duration-300"
:class="{ 'line-clamp-3': !item.isExpand }" :class="{ 'line-clamp-3': !item.isExpand }"
@click="openNewPage(`/questionDetail/${item.id}`)"
> >
<template <template
v-if=" v-if="
......
...@@ -394,7 +394,7 @@ import type { ...@@ -394,7 +394,7 @@ import type {
DailyLotteryInfo, DailyLotteryInfo,
} from '@/api' } from '@/api'
import { TABS_REF_KEY, levelListOptions } from '@/constants' import { TABS_REF_KEY, levelListOptions } from '@/constants'
import { useScrollTop } from '@/hooks' import { useScrollTop, useMessageBox } from '@/hooks'
import { useQuestionStore, useActivityStore, useYaBiStore } from '@/stores' import { useQuestionStore, useActivityStore, useYaBiStore } from '@/stores'
import { storeToRefs } from 'pinia' import { storeToRefs } from 'pinia'
import { push } from 'notivue' import { push } from 'notivue'
...@@ -404,6 +404,7 @@ import { RewardButtonEnum } from '@/constants' ...@@ -404,6 +404,7 @@ import { RewardButtonEnum } from '@/constants'
import RewardButton from '@/components/common/RewardButton/index.vue' import RewardButton from '@/components/common/RewardButton/index.vue'
import { useTourStore } from '@/stores' import { useTourStore } from '@/stores'
const { confirm } = useMessageBox()
const tourStore = useTourStore() const tourStore = useTourStore()
const { shouldShowAskTabTour } = storeToRefs(tourStore) const { shouldShowAskTabTour } = storeToRefs(tourStore)
const breakpoints = useBreakpoints(breakpointsTailwind) const breakpoints = useBreakpoints(breakpointsTailwind)
...@@ -526,6 +527,13 @@ const getLotteryPrizesDetail = async () => { ...@@ -526,6 +527,13 @@ const getLotteryPrizesDetail = async () => {
const handleLottery = async () => { const handleLottery = async () => {
if (!lotteryPrizesDetail.value?.inRegistrationTime) if (!lotteryPrizesDetail.value?.inRegistrationTime)
return push.error(`抽奖通道将于${lotteryPrizesDetail.value?.registrationTimeDesc}开启`) return push.error(`抽奖通道将于${lotteryPrizesDetail.value?.registrationTimeDesc}开启`)
// 二次确认
await confirm({
title: '提示',
message: '确定参与每日抽奖吗?',
type: 'primary',
})
await userJoinLottery() await userJoinLottery()
getLotteryPrizesDetail() getLotteryPrizesDetail()
refreshUserAccountData() refreshUserAccountData()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment