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
8c7b7bce
Commit
8c7b7bce
authored
Jul 22, 2021
by
张卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兼容道可分享进入
parent
1b1720ce
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/pages/login/index.vue
+5
-0
src/pages/wxArticle/index.vue
+2
-3
No files found.
src/pages/login/index.vue
View file @
8c7b7bce
...
...
@@ -115,8 +115,12 @@ export default {
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
//mpvue 的混合周期 使用小程序生命周期数据未初始化
options
.
scene
&&
(
this
.
scene
=
options
.
scene
)
if
(
options
.
back
)
{
if
(
options
.
isEncode
==
1
)
{
this
.
backPath
=
decodeURIComponent
(
options
.
back
);
}
else
{
this
.
backPath
=
options
.
back
;
}
}
if
(
options
.
params
)
{
this
.
defalutBackParams
=
serialize
(
options
.
params
);
this
.
backParams
=
this
.
defalutBackParams
;
...
...
@@ -337,6 +341,7 @@ export default {
});
}
else
if
(
this
.
scene
==
'sso'
||
this
.
backPath
.
includes
(
'scene=sso'
)
||
this
.
ossLink
.
indexOf
(
'scene=sso'
)
>-
1
)
{
let
backPath
=
this
.
backPath
;
console
.
log
(
decodeURIComponent
(
backPath
),
600000
)
if
(
this
.
ossLink
)
{
backPath
+=
'?'
+
this
.
ossLink
}
...
...
src/pages/wxArticle/index.vue
View file @
8c7b7bce
...
...
@@ -29,7 +29,6 @@ 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 第三方需要登录的页面
...
...
@@ -70,9 +69,9 @@ export default {
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
this
.
getSsoBcakUrl
(
decodeURIComponent
(
link
).
replace
(
/
\/\?(
.+
?)
#
\/
/
,
'/?token=${token}&scene=sso&toAppid=qOAhsauSaagQlxYdGbJL#/'
))
}
else
{
let
url
=
`/pages/login/main?scene=sso&back=
${
link
}
`
;
let
url
=
`/pages/login/main?scene=sso&
isEncode=1&&
back=
${
link
}
`
;
wx
.
navigateTo
({
url
,
url
});
}
}
else
{
...
...
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