feat: 在创建订单前添加抽奖订阅消息请求

This commit is contained in:
邹方成 2026-01-07 09:49:09 +08:00
parent 5c89355469
commit 8963827c32
2 changed files with 5 additions and 1 deletions

View File

@ -160,6 +160,7 @@
import { ref, computed, watch } from 'vue'
import { onLoad, onUnload } from '@dcloudio/uni-app'
import { getIssueChoices, joinLottery, createWechatOrder, getLotteryResult } from '@/api/appUser'
import { requestLotterySubscription } from '@/utils/subscribe'
// - uni-app.vue
import ActivityPageLayout from '@/components/activity/ActivityPageLayout.vue'
import ActivityHeader from '@/components/activity/ActivityHeader.vue'
@ -373,6 +374,9 @@ async function onPaymentConfirm(paymentData) {
return
}
// ()
await requestLotterySubscription()
try {
uni.showLoading({ title: '创建订单中...' })

View File

@ -97,5 +97,5 @@ export function requestSubscriptions(templateIds) {
export default {
requestLotterySubscription,
requestSubscriptions,
LOTTERY_RESULT_TEMPLATE_ID
LOTTERY_RESULT_TEMPLATE_ID: DEFAULT_LOTTERY_RESULT_TEMPLATE_ID
}