增加根据env请求不用的地址
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user