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
fe839808
Commit
fe839808
authored
Mar 03, 2020
by
程智春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文章分享
parent
7ff86844
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
src/pages/index/index.vue
+21
-2
No files found.
src/pages/index/index.vue
View file @
fe839808
...
...
@@ -58,6 +58,9 @@ export default {
this
.
checkLogin
();
this
.
options
=
options
;
console
.
log
(
'-------'
)
console
.
log
(
this
.
options
)
console
.
log
(
'-------'
)
if
(
options
.
share
)
{
//来自分享
this
.
link
=
decodeURIComponent
(
options
.
share
);
...
...
@@ -111,9 +114,12 @@ export default {
var
scene
=
decodeURIComponent
(
options
.
scene
);
//参数二维码传递过来的参数
let
querys
=
scene
.
split
(
"_"
);
if
(
querys
)
{
if
(
querys
[
0
]
==
"
pid
"
)
{
if
(
querys
[
0
]
==
"
goods
"
)
{
//商品详情 pid_123
this
.
page
=
`/goods/
${
querys
[
1
]}
`
;
this
.
params
+=
`&spokesmanGroupId=
${
querys
[
2
]}
&spokesmanShopId=
${
querys
[
3
]
}
&spokesmanRelId=
${
querys
[
4
]}
&usedId=
${
querys
[
5
]}
`
;
}
else
if
(
querys
[
0
]
==
"activty"
)
{
//活动页面activty_turntable_123
this
.
params
+=
`&pageInfo=
${
scene
}
`
;
...
...
@@ -123,9 +129,16 @@ export default {
this
.
params
+=
`&spokesmanGroupId=
${
querys
[
1
]}
&spokesmanShopId=
${
querys
[
2
]
}
&spokesmanRelId=
${
querys
[
3
]}
&usedId=
${
querys
[
4
]}
`
;
}
else
if
(
querys
[
0
]
==
"home"
){
this
.
page
=
`/`
;
this
.
params
+=
`&spokesmanGroupId=
${
querys
[
1
]}
&spokesmanShopId=
${
querys
[
2
]
}
&spokesmanRelId=
${
querys
[
3
]}
&usedId=
${
querys
[
4
]}
`
;
}
}
console
.
log
(
querys
,
"scene"
);
console
.
log
(
this
.
page
)
console
.
log
(
this
.
params
)
// var query = options.query.dentistId; // 参数二维码传递过来的场景参数
}
console
.
log
(
"url"
,
this
.
link
+
this
.
page
+
this
.
params
);
...
...
@@ -259,7 +272,13 @@ export default {
"0000"
,
this
.
shareLogoUrl
);
let
url
=
this
.
shareImgUrl
;
let
url
=
''
if
(
this
.
shareImgUrl
){
url
=
this
.
shareImgUrl
;
}
else
{
url
=
res
.
webViewUrl
;
}
//分享页面去掉登录态
if
(
url
.
indexOf
(
"sessionid"
)
>
-
1
)
{
url
=
url
.
split
(
"?"
)[
0
]
+
"?mixid="
+
this
.
shopId
;
...
...
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