Commit 0c1e4b6d by 李嘉林

门店自提直接进入详情页

parent a452bd6a
......@@ -29,7 +29,7 @@ function fn(_this) {
console.log(_this.backUrl,'----------pay--_this.backUrl')
setTimeout(() => {
wx.redirectTo({
url: `../wxArticle/main?from=sso&link=${_this.backUrl}`,
url: `/pages/wxArticle/main?from=sso&link=${_this.backUrl}`,
});
}, 500);
return;
......@@ -42,7 +42,21 @@ function fn(_this) {
if (_this.options.isPayReplace == 1) {
// 好友代付
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
)}`,
});
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
)}`,
});
......@@ -56,7 +70,7 @@ function fn(_this) {
cardTitle: _this.options_isCardTitle,
};
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
)}`,
});
......@@ -71,6 +85,7 @@ export default {
message: "正在支付中",
shopmixid: "",
openId: "",
pageOptions: "",
options: {},
options_orderType: "",
// 购买会员卡新页面
......@@ -88,6 +103,7 @@ export default {
});
Object.assign(this.$data, this.$options.data()); //mpvue 的混合周期 使用小程序生命周期数据未初始化
log.info("onload//", options);
this.pageOptions = options;
console.log(options,'--onLoad-options')
if (options.batchNumber) {
let ordercode = JSON.parse(options.ordercode);
......@@ -266,7 +282,7 @@ export default {
multiMerchantsFlag: 1,
};
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
)}`,
});
......@@ -278,7 +294,7 @@ export default {
orderListToorderDetail: true,
};
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
)}`,
});
......
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