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
241450f7
Commit
241450f7
authored
Jan 06, 2021
by
张卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绑定手机埋点带文章Id
parent
1f6ee1b1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
src/pages/index/index.vue
+8
-8
src/pages/login/index.vue
+2
-1
No files found.
src/pages/index/index.vue
View file @
241450f7
...
@@ -293,14 +293,14 @@ export default {
...
@@ -293,14 +293,14 @@ export default {
}
}
//埋点未登录时进入文章
//埋点未登录时进入文章
if
(
!
wx
.
getStorageSync
(
"sessionid"
)
&&
this
.
params
.
indexOf
(
'articleId'
)
!=-
1
)
{
if
(
!
wx
.
getStorageSync
(
"sessionid"
)
&&
this
.
params
.
indexOf
(
'articleId'
)
!=-
1
)
{
wx
.
setStorageSync
(
'articleId'
,
true
)
//
wx.setStorageSync('articleId',true)
//
var vars = this.params.split("&");
var
vars
=
this
.
params
.
split
(
"&"
);
//
for (var i = 0; i
<
vars
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
vars
.
length
;
i
++
)
{
//
var pair = vars[i].split("=");
var
pair
=
vars
[
i
].
split
(
"="
);
//
if (pair[0] == 'articleId') {
if
(
pair
[
0
]
==
'articleId'
)
{
//
wx.setStorageSync('articleId',pair[1])
wx
.
setStorageSync
(
'articleId'
,
pair
[
1
])
//
}
}
//
}
}
}
}
console
.
log
(
"url"
,
this
.
link
+
this
.
page
+
this
.
params
,
wx
.
getStorageSync
(
"openid"
));
console
.
log
(
"url"
,
this
.
link
+
this
.
page
+
this
.
params
,
wx
.
getStorageSync
(
"openid"
));
this
.
init
();
this
.
init
();
...
...
src/pages/login/index.vue
View file @
241450f7
...
@@ -355,7 +355,8 @@ export default {
...
@@ -355,7 +355,8 @@ export default {
province
:
this
.
userInfo
.
province
,
province
:
this
.
userInfo
.
province
,
city
:
this
.
userInfo
.
city
,
city
:
this
.
userInfo
.
city
,
otherPhone
:
0
,
otherPhone
:
0
,
customerSourceType
:
wx
.
getStorageSync
(
"articleId"
)?
8
:
''
customerSourceType
:
wx
.
getStorageSync
(
"articleId"
)?
8
:
''
,
customerSourceId
:
wx
.
getStorageSync
(
"articleId"
)
||
''
};
};
if
(
this
.
$store
.
state
.
spokesmanGroupId
!=
""
)
{
if
(
this
.
$store
.
state
.
spokesmanGroupId
!=
""
)
{
query
.
spokesmanRelId
=
this
.
$store
.
state
.
spokesmanRelId
;
query
.
spokesmanRelId
=
this
.
$store
.
state
.
spokesmanRelId
;
...
...
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