修复:解决测试发现的问题

This commit is contained in:
2025-11-12 16:00:44 +08:00
parent 1da75a59f2
commit 1daa6367c9
29 changed files with 133 additions and 182 deletions

View File

@@ -142,13 +142,7 @@ const getPlatform = () => {
*/
const getPackages = async () => {
try {
uni.showLoading({
title: t('common.loading')
})
const res = await getVipPackages()
uni.hideLoading()
if (res.sysDictDatas && res.sysDictDatas.length > 0) {
packages.value = res.sysDictDatas
@@ -163,7 +157,6 @@ const getPackages = async () => {
}
} catch (error) {
console.error('获取套餐列表失败:', error)
uni.hideLoading()
}
}
@@ -246,10 +239,6 @@ const handleSubscribe = async () => {
}
try {
uni.showLoading({
title: t('common.loading')
})
// 创建订单
const orderData = {
paymentMethod: paymentMethod.value,
@@ -273,7 +262,6 @@ const handleSubscribe = async () => {
}
} catch (error) {
console.error('创建订单失败:', error)
uni.hideLoading()
}
}
@@ -283,7 +271,6 @@ const handleSubscribe = async () => {
const initiateGooglePay = async () => {
// TODO: 集成 Google Pay SDK
// 这里需要使用 sn-googlepay5 插件
uni.hideLoading()
uni.showToast({
title: 'Google Pay 功能开发中',
icon: 'none'
@@ -295,7 +282,6 @@ const initiateGooglePay = async () => {
*/
const initiateIAP = async () => {
// TODO: 集成 IAP SDK
uni.hideLoading()
uni.showToast({
title: 'IAP 功能开发中',
icon: 'none'