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