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
e4674d99
Commit
e4674d99
authored
Oct 05, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
00cde84d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
init.service.js
src/service/init.service.js
+3
-1
module.js
src/store/module.js
+6
-0
No files found.
src/service/init.service.js
View file @
e4674d99
...
@@ -13,9 +13,11 @@ export default {
...
@@ -13,9 +13,11 @@ export default {
init
:
router
=>
{
init
:
router
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
Cookies
.
set
(
'
h
'
,
0
);
Cookies
.
set
(
'
h
'
,
0
);
if
(
!
to
.
query
.
vccToken
)
{
const
query
=
JSON
.
parse
(
JSON
.
stringify
(
to
.
query
.
vccToken
));
if
(
Object
.
keys
(
query
).
indexOf
(
'
vccToken
'
)
==
-
1
)
{
to
.
query
.
vccToken
=
sessionStorage
.
get
(
'
vccToken
'
)
||
''
;
to
.
query
.
vccToken
=
sessionStorage
.
get
(
'
vccToken
'
)
||
''
;
}
}
// console.log(to.query, 1);
// 所有自定义路由字段在此处理
// 所有自定义路由字段在此处理
const
{
meta
}
=
to
;
const
{
meta
}
=
to
;
isWechat
&&
localStorage
.
set
(
'
vccChannel
'
,
'
159913
'
);
isWechat
&&
localStorage
.
set
(
'
vccChannel
'
,
'
159913
'
);
...
...
src/store/module.js
View file @
e4674d99
...
@@ -107,6 +107,12 @@ const mutations = {
...
@@ -107,6 +107,12 @@ const mutations = {
confirmButtonText
:
'
打开微信小程序
'
,
confirmButtonText
:
'
打开微信小程序
'
,
onConfirm
:
()
=>
{
onConfirm
:
()
=>
{
// todo 跳转到小程序
// todo 跳转到小程序
// console.log(JSON.stringify(pointer.$route.query), 2);
// console.log(
// `url=${encodeURIComponent(
// JSON.stringify(paramsParentheses(pointer) + '&vccToken={token}')
// )}`
// );
let
getScheme
=
async
function
()
{
let
getScheme
=
async
function
()
{
const
[
res
]
=
await
groupBuy
.
getScheme
({
const
[
res
]
=
await
groupBuy
.
getScheme
({
miniUrl
:
'
pages/groupbuy/webview
'
,
miniUrl
:
'
pages/groupbuy/webview
'
,
...
...
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