增加根据env请求不用的地址

This commit is contained in:
gyq
2026-02-04 14:50:18 +08:00
parent 3e64567d52
commit b18bdaf715
2 changed files with 22 additions and 13 deletions

View File

@@ -35,6 +35,8 @@ export default {
onShow() {
this.shopId = this.getUrlParam('shopId');
this.orderId = this.getUrlParam('orderId');
localStorage.setItem('env', this.getUrlParam('env') || 'prod');
if (this.getUrlParam('payAmount')) {
this.payAmount = this.getUrlParam('payAmount');
this.disabled = true;
@@ -125,7 +127,7 @@ export default {
// payType: this.payType, //微信 WECHAT 支付宝 ALIPAY
// appId: appId, //微信 WECHAT 支付宝 ALIPAY
source: this.payType == 'WECHAT' ? 'wechat' : 'alipay',
shopId: this.getUrlParam('shopId') //微信 WECHAT 支付宝 ALIPAY
shopId: this.getUrlParam('shopId') //微信 WECHAT 支付宝 ALIPAY
};
getOpenId(params).then((res) => {
console.log('获取微信/支付宝openid', res);