Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
60e6f12b
Commit
60e6f12b
authored
Sep 26, 2021
by
beisir
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy
parents
dd63a026
029635b3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
pay.service.js
src/service/pay.service.js
+2
-1
List.vue
src/views/orderList/components/List.vue
+16
-0
index.vue
src/views/pay/index.vue
+2
-2
No files found.
src/service/pay.service.js
View file @
60e6f12b
...
...
@@ -60,7 +60,7 @@ function payByWeixinH5(info) {
info
.
params
=
{};
}
const
vccToken
=
localStorage
.
get
(
'
vccToken
'
);
const
orderNo
=
cookies
.
get
(
'
orderNo
'
)
?.
orderNo
;
const
orderNo
=
cookies
.
get
(
'
orderNo
'
);
info
.
params
.
isWxH5
=
1
;
info
.
params
.
vccToken
=
vccToken
;
info
.
params
.
orderNo
=
orderNo
;
...
...
@@ -109,6 +109,7 @@ function payByALIH5(info) {
function
payByThirdPartyCashier
(
info
)
{
if
(
!
info
.
url
)
return
;
const
orderNo
=
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
alert
(
'
bbbb-
'
+
orderNo
)
info
.
params
.
third
=
1
;
info
.
params
.
orderNo
=
orderNo
;
const
currentPath
=
encodeURIComponent
(
...
...
src/views/orderList/components/List.vue
View file @
60e6f12b
...
...
@@ -192,6 +192,22 @@ export default {
},
goGroupPayPages
(
skuInfo
)
{
this
.
$router
.
push
(
`/pay?orderNo=
${
skuInfo
.
orderNo
}
`
);
if
(
isWxMp
)
{
this
.
nativeBridge
.
openNewUrl
({
newUrl
:
`/pages/pay/index?orderNo=
${
skuInfo
.
orderNo
}
&from=groupbuy`
});
}
else
if
(
isApp
)
{
this
.
$router
.
push
({
path
:
`/pay?orderNo=
${
skuInfo
.
orderNo
}
`
});
}
else
{
// todo 处理纯h5情况
this
.
$dialog
({
message
:
'
请在App或小程序中参与活动~
'
,
title
:
''
,
showCancelButton
:
false
,
confirmButtonText
:
'
我知道了
'
});
return
;
}
},
async
getGroupShareInfo
(
order
)
{
const
res
=
await
groupBuyApi
.
getGroupShareInfo
(
order
);
...
...
src/views/pay/index.vue
View file @
60e6f12b
...
...
@@ -221,8 +221,8 @@ export default {
mounted
()
{
this
.
getQuery
();
this
.
setIsOrder
();
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
||
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
cookies
.
set
(
'
orderNo
'
,
{
orderNo
:
this
.
orderNo
}
);
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
;
cookies
.
set
(
'
orderNo
'
,
this
.
orderNo
);
if
(
this
.
$route
?.
query
?.
ocrflag
)
{
this
.
payInfo
=
cookies
.
get
(
'
info
'
)
||
{};
cookies
.
remove
(
'
ocrflag
'
);
...
...
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