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
8fd1c215
Commit
8fd1c215
authored
Sep 09, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
index
parent
0573ee29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
src/pages/index/index.vue
+5
-1
No files found.
src/pages/index/index.vue
View file @
8fd1c215
...
...
@@ -209,6 +209,7 @@ export default {
//来自分享
this
.
link
=
decodeURIComponent
(
options
.
share
);
log
.
info
(
'options.share-link'
,
this
.
link
)
console
.
log
(
'options.share-link'
,
this
.
link
)
this
.
spokesmanGroupId
=
getQueryVariable
(
this
.
link
,
"spokesmanGroupId"
)
||
""
;
this
.
spokesmanShopId
=
...
...
@@ -608,11 +609,12 @@ export default {
},
delParam
(
oldUrl
,
paramKey
)
{
var
url
=
oldUrl
;
//页面url
var
urlParam
=
oldUrl
.
split
(
"?"
)[
1
];
//页面参数
var
urlParam
=
oldUrl
.
split
(
"?"
)[
1
]
||
""
;
//页面参数
var
beforeUrl
=
url
.
substr
(
0
,
url
.
indexOf
(
"?"
));
//页面主地址(参数之前地址)
var
nextUrl
=
""
;
var
arr
=
new
Array
();
console
.
log
(
urlParam
,
'--urlParam'
)
if
(
urlParam
!=
""
)
{
var
urlParamArr
=
urlParam
.
split
(
"&"
);
//将参数按照&符分成数组
for
(
var
i
=
0
;
i
<
urlParamArr
.
length
;
i
++
)
{
...
...
@@ -658,6 +660,7 @@ export default {
}
log
.
info
(
'shareUrl---------------'
+
url
)
console
.
log
(
'shareUrl---------------'
+
url
)
//增加分销员信息
if
(
this
.
hasInvitationStatus
==
1
&&
url
.
indexOf
(
'spokesmanGroupId'
)
==-
1
){
this
.
shareUrl
=
url
+
this
.
newHref
...
...
@@ -667,6 +670,7 @@ export default {
log
.
info
(
'onShareAppMessage-shareUrl'
,
this
.
shareUrl
,);
console
.
log
(
'onShareAppMessage-shareUrl'
,
this
.
shareUrl
,);
log
.
info
(
`/pages/index/main?share=
${
encodeURIComponent
(
this
.
shareUrl
)}
`
,
'测试直播分享相关'
)
return
{
title
:
this
.
shareShopName
,
// 默认是小程序的名称
...
...
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