Commit 0c1e4b6d by 李嘉林

门店自提直接进入详情页

parent a452bd6a
...@@ -29,7 +29,7 @@ function fn(_this) { ...@@ -29,7 +29,7 @@ function fn(_this) {
console.log(_this.backUrl,'----------pay--_this.backUrl') console.log(_this.backUrl,'----------pay--_this.backUrl')
setTimeout(() => { setTimeout(() => {
wx.redirectTo({ wx.redirectTo({
url: `../wxArticle/main?from=sso&link=${_this.backUrl}`, url: `/pages/wxArticle/main?from=sso&link=${_this.backUrl}`,
}); });
}, 500); }, 500);
return; return;
...@@ -42,12 +42,26 @@ function fn(_this) { ...@@ -42,12 +42,26 @@ function fn(_this) {
if (_this.options.isPayReplace == 1) { if (_this.options.isPayReplace == 1) {
// 好友代付 // 好友代付
wx.redirectTo({ wx.redirectTo({
url: `../index/main?from=wxPay&backpath=/order/payForOrderDetail&params=${JSON.stringify( url: `/pages/index/main?from=wxPay&backpath=/order/payForOrderDetail&params=${JSON.stringify(
query query
)}`, )}`,
}); });
return; return;
} }
if (_this.pageOptions.transportType == 3) {
// 门店自提直接进入订单详情页
let query = {
orderSn: _this.options.orderSn,
payList: true,
orderListToorderDetail: true,
};
wx.redirectTo({
url: `/pages/index/main?from=wxPay&backpath=/order/orderDetail&params=${JSON.stringify(
query
)}`,
});
return;
}
wx.redirectTo({ wx.redirectTo({
url: `/pages/pages_subpack/paySuccess/main${params}`, url: `/pages/pages_subpack/paySuccess/main${params}`,
}); });
...@@ -56,7 +70,7 @@ function fn(_this) { ...@@ -56,7 +70,7 @@ function fn(_this) {
cardTitle: _this.options_isCardTitle, cardTitle: _this.options_isCardTitle,
}; };
wx.redirectTo({ wx.redirectTo({
url: `../index/main?from=wxPay&backpath=/pay/payCardSuccess&params=${JSON.stringify( url: `/pages/index/main?from=wxPay&backpath=/pay/payCardSuccess&params=${JSON.stringify(
query query
)}`, )}`,
}); });
...@@ -71,6 +85,7 @@ export default { ...@@ -71,6 +85,7 @@ export default {
message: "正在支付中", message: "正在支付中",
shopmixid: "", shopmixid: "",
openId: "", openId: "",
pageOptions: "",
options: {}, options: {},
options_orderType: "", options_orderType: "",
// 购买会员卡新页面 // 购买会员卡新页面
...@@ -88,6 +103,7 @@ export default { ...@@ -88,6 +103,7 @@ export default {
}); });
Object.assign(this.$data, this.$options.data()); //mpvue 的混合周期 使用小程序生命周期数据未初始化 Object.assign(this.$data, this.$options.data()); //mpvue 的混合周期 使用小程序生命周期数据未初始化
log.info("onload//", options); log.info("onload//", options);
this.pageOptions = options;
console.log(options,'--onLoad-options') console.log(options,'--onLoad-options')
if (options.batchNumber) { if (options.batchNumber) {
let ordercode = JSON.parse(options.ordercode); let ordercode = JSON.parse(options.ordercode);
...@@ -266,7 +282,7 @@ export default { ...@@ -266,7 +282,7 @@ export default {
multiMerchantsFlag: 1, multiMerchantsFlag: 1,
}; };
wx.redirectTo({ wx.redirectTo({
url: `../index/main?from=wxPay&backpath=/order/orderList&params=${JSON.stringify( url: `/pages/index/main?from=wxPay&backpath=/order/orderList&params=${JSON.stringify(
query query
)}`, )}`,
}); });
...@@ -278,7 +294,7 @@ export default { ...@@ -278,7 +294,7 @@ export default {
orderListToorderDetail: true, orderListToorderDetail: true,
}; };
wx.redirectTo({ wx.redirectTo({
url: `../index/main?from=wxPay&backpath=/order/orderDetail&params=${JSON.stringify( url: `/pages/index/main?from=wxPay&backpath=/order/orderDetail&params=${JSON.stringify(
query query
)}`, )}`,
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment