Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
0c1e4b6d
Commit
0c1e4b6d
authored
Oct 30, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店自提直接进入详情页
parent
a452bd6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
src/pages/wxPay/index.vue
+21
-5
No files found.
src/pages/wxPay/index.vue
View file @
0c1e4b6d
...
...
@@ -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,12 +42,26 @@ function fn(_this) {
if
(
_this
.
options
.
isPayReplace
==
1
)
{
// 好友代付
wx
.
redirectTo
({
url
:
`
..
/index/main?from=wxPay&backpath=/order/payForOrderDetail¶ms=
${
JSON
.
stringify
(
url
:
`
/pages
/index/main?from=wxPay&backpath=/order/payForOrderDetail¶ms=
${
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¶ms=
${
JSON
.
stringify
(
query
)}
`
,
});
return
;
}
wx
.
redirectTo
({
url
:
`/pages/pages_subpack/paySuccess/main
${
params
}
`
,
});
...
...
@@ -56,7 +70,7 @@ function fn(_this) {
cardTitle
:
_this
.
options_isCardTitle
,
};
wx
.
redirectTo
({
url
:
`
..
/index/main?from=wxPay&backpath=/pay/payCardSuccess¶ms=
${
JSON
.
stringify
(
url
:
`
/pages
/index/main?from=wxPay&backpath=/pay/payCardSuccess¶ms=
${
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¶ms=
${
JSON
.
stringify
(
url
:
`
/pages
/index/main?from=wxPay&backpath=/order/orderList¶ms=
${
JSON
.
stringify
(
query
)}
`
,
});
...
...
@@ -278,7 +294,7 @@ export default {
orderListToorderDetail
:
true
,
};
wx
.
redirectTo
({
url
:
`
..
/index/main?from=wxPay&backpath=/order/orderDetail¶ms=
${
JSON
.
stringify
(
url
:
`
/pages
/index/main?from=wxPay&backpath=/order/orderDetail¶ms=
${
JSON
.
stringify
(
query
)}
`
,
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment