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
b844054f
Commit
b844054f
authored
Mar 13, 2020
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d8563970
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
18 deletions
+15
-18
src/pages/index/index.vue
+15
-18
No files found.
src/pages/index/index.vue
View file @
b844054f
...
@@ -72,7 +72,7 @@ export default {
...
@@ -72,7 +72,7 @@ export default {
this
.
spokesmanRelId
=
getQueryVariable
(
this
.
link
,
"spokesmanRelId"
)
||
""
;
this
.
spokesmanRelId
=
getQueryVariable
(
this
.
link
,
"spokesmanRelId"
)
||
""
;
this
.
userId
=
getQueryVariable
(
this
.
link
,
"userId"
)
||
""
;
this
.
userId
=
getQueryVariable
(
this
.
link
,
"userId"
)
||
""
;
if
(
this
.
spokesmanGroupId
!=
""
)
{
if
(
this
.
spokesmanGroupId
!=
""
)
{
//
分销员分享
//
上级分销员信息
this
.
$store
.
commit
(
"setSpokesman"
,
{
this
.
$store
.
commit
(
"setSpokesman"
,
{
spokesmanGroupId
:
this
.
spokesmanGroupId
,
spokesmanGroupId
:
this
.
spokesmanGroupId
,
spokesmanShopId
:
this
.
spokesmanShopId
,
spokesmanShopId
:
this
.
spokesmanShopId
,
...
@@ -264,8 +264,8 @@ export default {
...
@@ -264,8 +264,8 @@ export default {
mpvue
.
navigateTo
({
url
});
mpvue
.
navigateTo
({
url
});
}
}
},
},
//右上角分享时触发
getMessage
(
res
)
{
getMessage
(
res
)
{
console
.
log
(
res
)
let
len
=
res
.
target
.
data
.
length
-
1
;
let
len
=
res
.
target
.
data
.
length
-
1
;
console
.
log
(
res
,
"h5消息"
,
res
.
target
.
data
[
len
]);
console
.
log
(
res
,
"h5消息"
,
res
.
target
.
data
[
len
]);
this
.
shareShopName
=
res
.
target
.
data
[
len
].
shareShopName
||
""
;
this
.
shareShopName
=
res
.
target
.
data
[
len
].
shareShopName
||
""
;
...
@@ -312,19 +312,16 @@ export default {
...
@@ -312,19 +312,16 @@ 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
)
//有订单为送礼订单分享--分销员信息由h5添加
console
.
log
(
"+++++"
,
this
.
shareOrderSn
);
// if (this.shareOrderSn != "") {
//有订单为送礼订单分享
// url = `${this.baseUrl}/activty/receivingGift?mixid=${
if
(
this
.
shareOrderSn
!=
""
)
{
// this.shopId
url
=
`
${
this
.
baseUrl
}
/activty/receivingGift?mixid=
${
// }&orderSn=${this.shareOrderSn}&shareTid=${this.shareTid}`;
this
.
shopId
// }
}
&orderSn=
${
this
.
shareOrderSn
}
&shareTid=
${
this
.
shareTid
}
`
;
}
//分销员推广页面 默认分享分销员中心页面
//分销员推广页面 默认分享分销员中心页面
if
(
url
.
indexOf
(
"/personalCenter/spokesmanCenter/mine/popularize"
)
>
-
1
)
{
if
(
url
.
indexOf
(
"/personalCenter/spokesmanCenter/mine/popularize"
)
>
-
1
)
{
url
=
`
${
this
.
baseUrl
}
/personalCenter/spokesmanCenter?mixid=
${
url
=
`
${
this
.
baseUrl
}
/personalCenter/spokesmanCenter?mixid=
${
...
@@ -332,12 +329,12 @@ export default {
...
@@ -332,12 +329,12 @@ export default {
}
`
;
}
`
;
}
}
console
.
log
(
'url'
+
url
)
console
.
log
(
'url
---------------
'
+
url
)
//增加分销员信息
//增加分销员信息
if
(
this
.
hasInvitationStatus
==
1
){
if
(
this
.
hasInvitationStatus
==
1
&&
url
.
indexOf
(
'spokesmanGroupId'
)
==-
1
){
this
.
shareUrl
=
url
this
.
shareUrl
=
url
+
this
.
newHref
}
else
{
}
else
{
this
.
shareUrl
=
url
+
this
.
newHref
;
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