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
1a127026
Commit
1a127026
authored
Mar 11, 2020
by
程智春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扫码
parent
97a29301
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
src/pages/index/index.vue
+19
-11
No files found.
src/pages/index/index.vue
View file @
1a127026
...
...
@@ -121,13 +121,13 @@ export default {
this
.
page
=
`/goods/
${
querys
[
1
]}
`
;
if
(
querys
.
length
>
3
){
if
(
querys
[
5
]){
this
.
params
+=
`&spokesmanGroupId=
${
querys
[
2
]}
&spokesmanShopId=
${
querys
[
3
]}
&spokesmanRelId=
${
querys
[
4
]}
$
userId=
${
querys
[
5
]}
`
this
.
params
+=
`&spokesmanGroupId=
${
querys
[
2
]}
&spokesmanShopId=
${
querys
[
3
]}
&spokesmanRelId=
${
querys
[
4
]}
&
userId=
${
querys
[
5
]}
`
}
else
{
this
.
params
+=
`&spokesmanGroupId=
${
querys
[
2
]}
&spokesmanShopId=
${
querys
[
3
]}
&spokesmanRelId=
${
querys
[
4
]}
`
}
}
else
if
(
querys
.
length
==
3
){
this
.
params
+=
`&userId=
${
querys
[
1
]}
`
this
.
params
+=
`&userId=
${
querys
[
2
]}
`
}
...
...
@@ -137,21 +137,22 @@ export default {
}
else
if
(
querys
[
0
]
==
"spokesman"
)
{
//分销员 小程序码
this
.
page
=
`/personalCenter/spokesmanCenter`
;
if
(
querys
.
length
>
4
){
this
.
params
+=
`&spokesmanGroupId=
${
querys
[
1
]}
&spokesmanShopId=
${
querys
[
2
]
}
&spokesmanRelId=
${
querys
[
3
]}
&usedId=
${
querys
[
4
]}
&=
${
querys
[
5
]}
`
;
}
else
{
this
.
params
+=
`&spokesmanGroupId=
${
querys
[
1
]}
&spokesmanShopId=
${
querys
[
2
]
}
&spokesmanRelId=
${
querys
[
3
]}
&usedId=
${
querys
[
4
]}
`
;
if
(
querys
.
length
>
2
){
if
(
querys
[
4
]){
this
.
params
+=
`&spokesmanGroupId=
${
querys
[
1
]}
&spokesmanShopId=
${
querys
[
2
]}
&spokesmanRelId=
${
querys
[
3
]}
&userId=
${
querys
[
4
]}
`
}
else
{
this
.
params
+=
`&spokesmanGroupId=
${
querys
[
1
]}
&spokesmanShopId=
${
querys
[
2
]}
&spokesmanRelId=
${
querys
[
3
]}
`
}
}
else
if
(
querys
.
length
==
2
){
this
.
params
+=
`&userId=
${
querys
[
1
]}
`
}
}
else
if
(
querys
[
0
]
==
"home"
){
this
.
page
=
`/`
;
if
(
querys
.
length
>
2
){
if
(
querys
[
4
]){
this
.
params
+=
`&spokesmanGroupId=
${
querys
[
1
]}
&spokesmanShopId=
${
querys
[
2
]}
&spokesmanRelId=
${
querys
[
3
]}
$
userId=
${
querys
[
4
]}
`
this
.
params
+=
`&spokesmanGroupId=
${
querys
[
1
]}
&spokesmanShopId=
${
querys
[
2
]}
&spokesmanRelId=
${
querys
[
3
]}
&
userId=
${
querys
[
4
]}
`
}
else
{
this
.
params
+=
`&spokesmanGroupId=
${
querys
[
1
]}
&spokesmanShopId=
${
querys
[
2
]}
&spokesmanRelId=
${
querys
[
3
]}
`
}
...
...
@@ -289,7 +290,9 @@ export default {
console
.
log
(
"卸载----------------"
,
this
.
options
);
},
onShareAppMessage
(
res
)
{
console
.
log
(
'======='
)
console
.
log
(
res
)
console
.
log
(
'======='
)
console
.
log
(
this
.
shareShopName
,
"share"
,
...
...
@@ -298,6 +301,7 @@ export default {
this
.
shareLogoUrl
);
let
url
=
''
console
.
log
(
this
.
newWindowHref
+
'this.newWindowHref'
)
if
(
this
.
newWindowHref
){
url
=
this
.
newWindowHref
;
}
else
{
...
...
@@ -308,10 +312,12 @@ export default {
if
(
url
.
indexOf
(
"sessionid"
)
>
-
1
)
{
url
=
url
.
split
(
"?"
)[
0
]
+
"?mixid="
+
this
.
shopId
;
}
console
.
log
(
'url'
+
url
)
//分享页面白名单 白名单以外的分享页面为首页
if
(
!
this
.
checkPageUrl
(
url
))
{
url
=
this
.
baseUrl
+
"?mixid="
+
this
.
shopId
;
}
console
.
log
(
'url'
+
url
)
console
.
log
(
"+++++"
,
this
.
shareOrderSn
);
//有订单为送礼订单分享
if
(
this
.
shareOrderSn
!=
""
)
{
...
...
@@ -325,6 +331,8 @@ export default {
this
.
shopId
}
`
;
}
console
.
log
(
'url'
+
url
)
//增加分销员信息
if
(
this
.
hasInvitationStatus
==
1
){
this
.
shareUrl
=
url
...
...
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