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
1b1720ce
Commit
1b1720ce
authored
Jul 22, 2021
by
张卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兼容道可分享
parent
291aa394
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/pages/wxArticle/index.vue
+2
-1
No files found.
src/pages/wxArticle/index.vue
View file @
1b1720ce
...
...
@@ -29,6 +29,7 @@ export default {
};
},
async
onLoad
(
options
)
{
console
.
log
(
wx
.
getStorageSync
(
"sessionid"
),
555555566666
,
decodeURIComponent
(
'https%3A%2F%2Fdk.taokor.cn%2Fwchat%2F%3FsetToken%3D%7Btoken%7D%23%2FappraisalTwo%3Fpaper%3D%257B%2522classify%2522%253A%2522%25E7%25BB%2584%25E7%25BB%2587%25E4%25B8%258E%25E4%25BA%25BA%2522%2C%2522discountSurplus%2522%253A46%2C%2522appName%2522%253A%2522%25E7%25BB%2584%25E7%25BB%2587%25E8%25B0%2583%25E6%259F%25A5%2522%2C%2522discountPrice2%2522%253A0%2C%2522completed%2522%253A6%2C%2522published%2522%253Afalse%2C%2522appStatus%2522%253Afalse%2C%2522cover%2522%253A%2522http%253A%252F%252Fdaoke-ant.oss-cn-beijing.aliyuncs.com%252Fupload%252Fsh%252Fpaper%252Fsh-paperb8d905cc41924278a68fe1a929266b50.jpg%2522%2C%2522appId2%2522%253A59%2C%2522discountDate%2522%253A%25222021%252F07%252F01-2021%252F08%252F31%2522%2C%2522enable%2522%253Atrue%2C%2522genre%2522%253A%2522%25E8%2587%25AA%25E5%258A%25A9%25E8%25AF%2584%25E4%25BC%25B0%2522%2C%2522name%2522%253A%2522%25E8%2581%258C%25E5%259C%25BA%25E6%2580%25A7%25E6%25A0%25BCPDP%25E6%25B5%258B%25E8%25AF%2595%2522%2C%2522isCollective%2522%253A1%2C%2522bid%2522%253A32%2C%2522aid%2522%253A32%2C%2522desc%2522%253A%2522%25E9%2581%2593%25E5%258F%25AF%25E6%25B5%258B%25E8%25AF%2595%25E7%2594%25A8%2522%2C%2522price2%2522%253A0%2C%2522oldPrice%2522%253A0%2C%2522newPrice%2522%253A0%2C%2522isFree%2522%253Atrue%2C%2522onSale%2522%253Atrue%257D'
))
this
.
link
=
''
;
/**
* scene=sso 第三方需要登录的页面
...
...
@@ -67,7 +68,7 @@ export default {
//判断是否需要带token
if
(
decodeURIComponent
(
link
).
indexOf
(
'setToken={token}'
)
>
-
1
)
{
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
this
.
setLink
(
decodeURIComponent
(
link
).
replace
(
'setToken={token}'
,
'token='
+
wx
.
getStorageSync
(
"sessionid"
)));
this
.
getSsoBcakUrl
(
decodeURIComponent
(
link
).
replace
(
/
\/\?(
.+
?)
#
\/
/
,
'/?token=${token}&scene=sso&toAppid=qOAhsauSaagQlxYdGbJL#/'
))
}
else
{
let
url
=
`/pages/login/main?scene=sso&back=
${
link
}
`
;
wx
.
navigateTo
({
...
...
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