|
|
@@ -62,7 +62,7 @@ Page({ |
|
|
|
},
|
|
|
|
gotoetcp: function () {
|
|
|
|
wx.navigateToMiniProgram({
|
|
|
|
appId: that.data.passCarAppId,
|
|
|
|
appId: that.data.etcpAppId,
|
|
|
|
extraData: this.data.extraData,
|
|
|
|
envVersion: 'release',
|
|
|
|
path: "pages/main/main",
|
|
|
@@ -83,21 +83,12 @@ Page({ |
|
|
|
onShow: function (options) {
|
|
|
|
var that = this;
|
|
|
|
console.log(that.data.ifHaveCarModular)
|
|
|
|
if (Object.keys(extConfig).length != 0) {
|
|
|
|
that.setData({
|
|
|
|
passCarAppId: extConfig.attr.passCarAppId,
|
|
|
|
etcpversion: extConfig.attr.etcpversion,
|
|
|
|
passCarreturnUrl: extConfig.attr.passCarreturnUrl,
|
|
|
|
ifHaveCarModular: extConfig.attr.ifHaveCarModular
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
that.setData({
|
|
|
|
passCarAppId:'wx192b7d2e8dcbefd0',
|
|
|
|
etcpversion:'release',
|
|
|
|
passCarreturnUrl:'https://admintest.malls.iformall.com/api/carCallback/etcpPaidCallback',
|
|
|
|
ifHaveCarModular:1
|
|
|
|
})
|
|
|
|
}
|
|
|
|
that.setData({
|
|
|
|
etcpAppId: extConfig.attr.etcpAppId,
|
|
|
|
etcpVersion: extConfig.attr.etcpVersion,
|
|
|
|
etcpCallbackUrl: extConfig.attr.etcpCallbackUrl,
|
|
|
|
ifHaveCarModular: extConfig.attr.ifHaveCarModular
|
|
|
|
})
|
|
|
|
console.log(that.data.ifHaveCarModular)
|
|
|
|
if (app.globalData.token) {
|
|
|
|
that.getList();
|
|
|
@@ -570,7 +561,7 @@ Page({ |
|
|
|
syncId: res.data.orderId,
|
|
|
|
payType: 6, // 小程序支付
|
|
|
|
CarNumber: carNumber,
|
|
|
|
returnUrl: that.data.passCarreturnUrl,
|
|
|
|
returnUrl: that.data.etcpCallbackUrl,
|
|
|
|
source: "FUMAO-001",
|
|
|
|
actionId: "1" //操作ID,1:小程序支付
|
|
|
|
}
|
|
|
|