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
a674a603
Commit
a674a603
authored
Sep 10, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
动态表单跳转
parent
e6202f02
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletions
+22
-1
src/pages/login/index.vue
+11
-0
src/pages/wxArticle/index.vue
+11
-1
src/utils/themeModule.js
+0
-0
No files found.
src/pages/login/index.vue
View file @
a674a603
...
...
@@ -43,6 +43,7 @@ import { wx_decode } from "@/utils/wxIndex.js";
import
login
from
"@/api/login"
;
import
shop
from
"@/api/shop"
;
import
indexApi
from
"@/api/index.js"
;
import
{
createdUserJWTApi
}
from
"@/api/daoke"
;
const
app
=
getApp
();
export
default
{
data
()
{
...
...
@@ -106,6 +107,7 @@ export default {
})
},
onLoad
(
options
)
{
console
.
log
(
options
,
'----------------------login-options'
)
login
.
getShopUserProtocol
().
then
(
res
=>
{
if
(
res
.
data
.
code
==
'200'
)
{
...
...
@@ -339,6 +341,15 @@ export default {
wx
.
navigateBack
({
delta
:
1
});
}
else
if
(
this
.
backPath
.
includes
(
'formDesignDetail'
))
{
// 动态表单
createdUserJWTApi
().
then
(
res
=>
{
this
.
backParams
+=
`&token=
${
res
}
`
;
console
.
log
(
this
.
backParams
,
`
${
this
.
backPath
}${
this
.
backParams
}
`
,
"-------------------------355"
)
wx
.
reLaunch
({
url
:
`../wxArticle/main?link=
${
this
.
backPath
+
this
.
backParams
}
`
});
})
}
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
)
...
...
src/pages/wxArticle/index.vue
View file @
a674a603
...
...
@@ -26,6 +26,7 @@ export default {
shareShopName
:
""
,
//分享名称
shareLogoUrl
:
""
,
//分享图片url
newWindowHref
:
""
,
//分享页面url
shopId
:
this
.
$store
.
state
.
mixid
,
};
},
async
onLoad
(
options
)
{
...
...
@@ -55,6 +56,10 @@ export default {
if
(
getUrlKey
(
decodeURIComponent
(
link
),
"getMixId"
)
==
'1'
)
{
//第三方跳转加mixid
link
=
forUrlAddKey
(
decodeURIComponent
(
link
),{
mixid
:
this
.
$store
.
state
.
mixid
})
}
if
(
getUrlKey
(
decodeURIComponent
(
link
),
"scene"
)
==
'dynamicForm'
)
{
link
=
decodeURIComponent
(
link
)
}
console
.
log
(
link
,
'--------------------------57'
)
if
(
getUrlKey
(
decodeURIComponent
(
link
),
"scene"
)
==
"sso"
)
{
if
(
!
wx
.
getStorageSync
(
"sessionid"
))
{
wx
.
redirectTo
({
...
...
@@ -86,7 +91,12 @@ export default {
})
);
}
else
{
let
url
=
`/pages/login/main?scene=sso&back=
${
link
}
`
;
let
url
=
""
;
if
(
link
.
includes
(
'formDesignDetail'
)){
url
=
`/pages/login/main?scene=sso&back=
${
encodeURIComponent
(
link
)}
`
}
else
{
url
=
`/pages/login/main?scene=sso&back=
${
link
}
`
}
wx
.
navigateTo
({
url
,
});
...
...
src/utils/themeModule.js
View file @
a674a603
This diff is collapsed.
Click to expand it.
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