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
Show 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) {
...
@@ -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,7 +42,21 @@ function fn(_this) {
...
@@ -42,7 +42,21 @@ 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¶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
query
)}
`
,
)}
`
,
});
});
...
@@ -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¶ms=
${
JSON
.
stringify
(
url
:
`
/pages
/index/main?from=wxPay&backpath=/pay/payCardSuccess¶ms=
${
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¶ms=
${
JSON
.
stringify
(
url
:
`
/pages
/index/main?from=wxPay&backpath=/order/orderList¶ms=
${
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¶ms=
${
JSON
.
stringify
(
url
:
`
/pages
/index/main?from=wxPay&backpath=/order/orderDetail¶ms=
${
JSON
.
stringify
(
query
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