修复bug
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
@@ -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({
|
||||||
|
// paymentMethodType: item.paymentMethodType,
|
||||||
|
// paymentMethodName: item.paymentMethodName || item.paymentMethodType
|
||||||
|
// });
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
//因后端约束,固定支付方式ALIPAY_HK
|
||||||
methods.push({
|
methods.push({
|
||||||
paymentMethodType: item.paymentMethodType,
|
paymentMethodType:'ALIPAY_HK',
|
||||||
paymentMethodName: item.paymentMethodName || item.paymentMethodType
|
paymentMethodName:'ALIPAY_HK'
|
||||||
});
|
})
|
||||||
});
|
|
||||||
}
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('获取 Antom 支付方式失败:', error);
|
console.error('获取 Antom 支付方式失败:', error);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user