修复bug

This commit is contained in:
2026-04-22 14:22:04 +08:00
parent 09be26e2aa
commit 2f618ef6ec
5 changed files with 19 additions and 15 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
// export const URL = "https://my.gxfs123.com/api" //正式服务器-弃用
export const URL = "https://manager.fdzpower.com/api" //正式服务器
// export const URL = "https://fansdev.gxfs123.com/api" //测试服务器
// export const URL = "http://192.168.5.108:8080" //本地调试
// export const URL = "http://192.168.5.11:8080" //本地调试
// export const URL = "http://127.0.0.1:8080" //本地调试
export const appid = "wx2165f0be356ae7a9" //微信小程序appid
+1 -1
View File
@@ -379,7 +379,7 @@
`${k}=${encodeURIComponent(current.options[k])}`).join('&') : ''
const redirect = encodeURIComponent(query ? `${route}?${query}` : route)
uni.reLaunch({
url: redirect
url: `/subPackages/user/login/index?redirect=${redirect}`
})
} catch (e) {
uni.reLaunch({
+12 -7
View File
@@ -295,14 +295,19 @@
try {
const osType = getOsType();
const res = await getAntomPaymentMethods(orderInfo.value.orderNo, osType);
if (res.code === 200 && res.data && res.data.paymentOptions) {
res.data.paymentOptions.forEach(item => {
// if (res.code === 200 && res.data && res.data.paymentOptions) {
// res.data.paymentOptions.forEach(item => {
// methods.push({
// paymentMethodType: item.paymentMethodType,
// paymentMethodName: item.paymentMethodName || item.paymentMethodType
// });
// });
// }
//因后端约束,固定支付方式ALIPAY_HK
methods.push({
paymentMethodType: item.paymentMethodType,
paymentMethodName: item.paymentMethodName || item.paymentMethodType
});
});
}
paymentMethodType:'ALIPAY_HK',
paymentMethodName:'ALIPAY_HK'
})
} catch (error) {
console.error('获取 Antom 支付方式失败:', error);
}
+3 -4
View File
@@ -345,12 +345,11 @@
const query = current && current.options ? Object.keys(current.options).map(k =>
`${k}=${encodeURIComponent(current.options[k])}`).join('&') : ''
const redirect = encodeURIComponent(query ? `${route}?${query}` : route)
console.log(redirect);
uni.redirectTo({
url: redirect
uni.reLaunch({
url: `/subPackages/user/login/index?redirect=${redirect}`
})
} catch (e) {
uni.redirectTo({
uni.reLaunch({
url: '/subPackages/user/login/index'
})
}
+1 -1
View File
@@ -130,7 +130,7 @@
`${k}=${encodeURIComponent(current.options[k])}`).join('&') : '';
const redirect = encodeURIComponent(query ? `${route}?${query}` : route);
uni.reLaunch({
url: redirect
url: `/subPackages/user/login/index?redirect=${redirect}`
});
} catch (e) {
uni.reLaunch({