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
42b0fc64
Commit
42b0fc64
authored
Jul 25, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat: 加入口
parent
7cecbdee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/pages/wxArticle/index.vue
+1
-1
static/nativeComponents/PhotoGallery/index.js
+6
-2
No files found.
src/pages/wxArticle/index.vue
View file @
42b0fc64
...
@@ -201,7 +201,7 @@ export default {
...
@@ -201,7 +201,7 @@ export default {
if
(
this
.
link
.
includes
(
'$%7Btoken%7D'
)
&&
wx
.
getStorageSync
(
"sessionid"
))
{
if
(
this
.
link
.
includes
(
'$%7Btoken%7D'
)
&&
wx
.
getStorageSync
(
"sessionid"
))
{
this
.
getSsoBcakUrl
(
decodeURIComponent
(
this
.
link
));
this
.
getSsoBcakUrl
(
decodeURIComponent
(
this
.
link
));
}
}
if
((
!
this
.
link
.
includes
(
'sessionid'
))
&&
wx
.
getStorageSync
(
"sessionid"
))
{
if
((
!
this
.
link
.
includes
(
'sessionid'
))
&&
wx
.
getStorageSync
(
"sessionid"
)
&&
!
this
.
link
.
includes
(
'/pagesD/userCenterLogin/index'
)
)
{
this
.
link
+=
`
${
this
.
link
.
includes
(
'?'
)
&&
!
this
.
link
.
includes
(
'#/'
)
||
(
this
.
link
.
split
(
'?'
).
length
-
1
>
1
)
?
'&'
:
'?'
}
sessionid=
${
wx
.
getStorageSync
(
"sessionid"
)}
`
this
.
link
+=
`
${
this
.
link
.
includes
(
'?'
)
&&
!
this
.
link
.
includes
(
'#/'
)
||
(
this
.
link
.
split
(
'?'
).
length
-
1
>
1
)
?
'&'
:
'?'
}
sessionid=
${
wx
.
getStorageSync
(
"sessionid"
)}
`
}
}
this
.
useLink
=
this
.
link
;
this
.
useLink
=
this
.
link
;
...
...
static/nativeComponents/PhotoGallery/index.js
View file @
42b0fc64
...
@@ -86,13 +86,17 @@ Component({
...
@@ -86,13 +86,17 @@ Component({
methods
:
{
methods
:
{
itemClick
(
e
){
itemClick
(
e
){
let
item
=
e
.
currentTarget
.
dataset
.
item
let
item
=
e
.
currentTarget
.
dataset
.
item
if
(
item
&&
item
.
link
.
link
.
includes
(
'/pages/wlForYourPerusal/index'
))
{
console
.
log
(
'itemClick->link'
,
item
.
link
.
link
)
if
(
item
&&
item
.
link
.
link
.
includes
(
'/pagesD/userCenterLogin/index'
))
{
let
loginUserInfo
=
wx
.
getStorageSync
(
"loginUserInfo"
)
||
null
;
let
loginUserInfo
=
wx
.
getStorageSync
(
"loginUserInfo"
)
||
null
;
if
(
loginUserInfo
)
{
if
(
loginUserInfo
)
{
const
user
=
{
phone
:
loginUserInfo
.
mobilephone
,
uid
:
`C
${
loginUserInfo
.
userId
}
`
,
timestamp
:
new
Date
().
getTime
()
};
const
user
=
{
phone
:
loginUserInfo
.
mobilephone
,
uid
:
`C
${
loginUserInfo
.
userId
}
`
,
timestamp
:
new
Date
().
getTime
()
};
let
token
=
app
.
generateToken
(
user
);
let
token
=
app
.
generateToken
(
user
);
console
.
log
(
'token->'
,
token
);
console
.
log
(
'token->'
,
token
);
item
.
link
.
link
=
`http://trip.wuliangye.com.cn:8000/app/?token=
${
token
}
`
;
let
query
=
{
token
:
token
}
item
.
link
.
link
=
`
${
item
.
link
.
link
}
?query=
${
JSON
.
stringify
(
query
)}
`
;
item
.
link
.
name
=
item
.
link
.
link
;
item
.
link
.
name
=
item
.
link
.
link
;
}
}
}
}
...
...
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