修复bug
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user