修复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://my.gxfs123.com/api" //正式服务器-弃用
export const URL = "https://manager.fdzpower.com/api" //正式服务器 export const URL = "https://manager.fdzpower.com/api" //正式服务器
// export const URL = "https://fansdev.gxfs123.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 URL = "http://127.0.0.1:8080" //本地调试
export const appid = "wx2165f0be356ae7a9" //微信小程序appid export const appid = "wx2165f0be356ae7a9" //微信小程序appid
+1 -1
View File
@@ -379,7 +379,7 @@
`${k}=${encodeURIComponent(current.options[k])}`).join('&') : '' `${k}=${encodeURIComponent(current.options[k])}`).join('&') : ''
const redirect = encodeURIComponent(query ? `${route}?${query}` : route) const redirect = encodeURIComponent(query ? `${route}?${query}` : route)
uni.reLaunch({ uni.reLaunch({
url: redirect url: `/subPackages/user/login/index?redirect=${redirect}`
}) })
} catch (e) { } catch (e) {
uni.reLaunch({ uni.reLaunch({
+13 -8
View File
@@ -295,14 +295,19 @@
try { try {
const osType = getOsType(); const osType = getOsType();
const res = await getAntomPaymentMethods(orderInfo.value.orderNo, osType); const res = await getAntomPaymentMethods(orderInfo.value.orderNo, osType);
if (res.code === 200 && res.data && res.data.paymentOptions) { // if (res.code === 200 && res.data && res.data.paymentOptions) {
res.data.paymentOptions.forEach(item => { // res.data.paymentOptions.forEach(item => {
methods.push({ // methods.push({
paymentMethodType: item.paymentMethodType, // paymentMethodType: item.paymentMethodType,
paymentMethodName: item.paymentMethodName || item.paymentMethodType // paymentMethodName: item.paymentMethodName || item.paymentMethodType
}); // });
}); // });
} // }
//因后端约束,固定支付方式ALIPAY_HK
methods.push({
paymentMethodType:'ALIPAY_HK',
paymentMethodName:'ALIPAY_HK'
})
} catch (error) { } catch (error) {
console.error('获取 Antom 支付方式失败:', error); console.error('获取 Antom 支付方式失败:', error);
} }
+3 -4
View File
@@ -345,12 +345,11 @@
const query = current && current.options ? Object.keys(current.options).map(k => const query = current && current.options ? Object.keys(current.options).map(k =>
`${k}=${encodeURIComponent(current.options[k])}`).join('&') : '' `${k}=${encodeURIComponent(current.options[k])}`).join('&') : ''
const redirect = encodeURIComponent(query ? `${route}?${query}` : route) const redirect = encodeURIComponent(query ? `${route}?${query}` : route)
console.log(redirect); uni.reLaunch({
uni.redirectTo({ url: `/subPackages/user/login/index?redirect=${redirect}`
url: redirect
}) })
} catch (e) { } catch (e) {
uni.redirectTo({ uni.reLaunch({
url: '/subPackages/user/login/index' url: '/subPackages/user/login/index'
}) })
} }
+1 -1
View File
@@ -130,7 +130,7 @@
`${k}=${encodeURIComponent(current.options[k])}`).join('&') : ''; `${k}=${encodeURIComponent(current.options[k])}`).join('&') : '';
const redirect = encodeURIComponent(query ? `${route}?${query}` : route); const redirect = encodeURIComponent(query ? `${route}?${query}` : route);
uni.reLaunch({ uni.reLaunch({
url: redirect url: `/subPackages/user/login/index?redirect=${redirect}`
}); });
} catch (e) { } catch (e) {
uni.reLaunch({ uni.reLaunch({