Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-group-course
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄志
ydl-group-course
Commits
000c56e8
Commit
000c56e8
authored
Mar 22, 2023
by
huangzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 扫描二维码 未登陆 不给登录参数到页面地址
parent
e70786d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
web.vue
src/pages/web/web.vue
+9
-3
No files found.
src/pages/web/web.vue
View file @
000c56e8
...
@@ -57,9 +57,7 @@ export default {
...
@@ -57,9 +57,7 @@ export default {
setCommonUrlParams
(
pageUrl
,
urlParmas
)
{
setCommonUrlParams
(
pageUrl
,
urlParmas
)
{
let
url
=
decodeURIComponent
(
pageUrl
)
let
url
=
decodeURIComponent
(
pageUrl
)
const
query
=
{
let
query
=
{
uid
:
this
.
$store
.
state
.
user
.
uid
||
''
,
accessToken
:
this
.
$store
.
state
.
user
.
accessToken
||
''
,
appId
:
uni
.
getAccountInfoSync
().
miniProgram
.
appId
,
appId
:
uni
.
getAccountInfoSync
().
miniProgram
.
appId
,
isFromMin
:
'weapp'
,
isFromMin
:
'weapp'
,
miniType
:
'groupActivity'
,
miniType
:
'groupActivity'
,
...
@@ -67,6 +65,14 @@ export default {
...
@@ -67,6 +65,14 @@ export default {
timestamp
:
+
new
Date
(),
timestamp
:
+
new
Date
(),
...
urlParmas
,
...
urlParmas
,
}
}
// 如果登录了,就注入登录参数
if
(
this
.
$store
.
getters
.
isLogin
)
{
query
=
{
...
query
,
uid
:
this
.
$store
.
state
.
user
.
uid
||
''
,
accessToken
:
this
.
$store
.
state
.
user
.
accessToken
||
''
,
}
}
// 更新 url 中的参数
// 更新 url 中的参数
Object
.
keys
(
query
).
forEach
(
prop
=>
{
Object
.
keys
(
query
).
forEach
(
prop
=>
{
url
=
this
.
changeURLArg
(
url
,
prop
,
query
[
prop
])
url
=
this
.
changeURLArg
(
url
,
prop
,
query
[
prop
])
...
...
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