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
6650997c
Commit
6650997c
authored
Sep 15, 2020
by
张卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
引客渠道埋点
parent
76f23ffe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
src/api/index.js
+2
-1
src/pages/index/index.vue
+4
-2
src/pages/login/index.vue
+3
-1
No files found.
src/api/index.js
View file @
6650997c
...
...
@@ -10,7 +10,7 @@ console.log(process.env,'-----------------config------')
},
//POST /shareSceneRecord/getShareSceneRecord/{sceneCode} 获取分享场景参数记录
addRecord
(
data
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/scanCodeCustomerRecord/addRecord`
,
{
data
}
);
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/scanCodeCustomerRecord/addRecord`
,
data
);
},
}
\ No newline at end of file
src/pages/index/index.vue
View file @
6650997c
...
...
@@ -48,8 +48,6 @@ export default {
};
},
onLoad
(
options
)
{
//清空引客渠道id
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
''
)
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
console
.
log
(
options
,
...
...
@@ -135,6 +133,8 @@ export default {
this
.
page
=
options
.
backpath
;
this
.
params
+=
"&"
+
serialize
(
options
.
params
);
}
else
if
(
options
.
scene
)
{
console
.
log
(
options
)
console
.
log
(
222222
)
if
(
options
.
scene
.
indexOf
(
'_'
)
==
-
1
){
//新二维码扫码进入
indexApi
.
getShareSceneRecord
(
options
.
scene
).
then
(
res
=>
{
...
...
@@ -154,6 +154,8 @@ export default {
newRegisterFlag
:
0
,
}
).
then
(
ele
=>
{
//清空引客渠道id
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
''
)
})
}
let
params
=
''
;
...
...
src/pages/login/index.vue
View file @
6650997c
...
...
@@ -150,7 +150,9 @@ export default {
});
},
addRecord
(
flag
)
{
console
.
log
(
flag
,
99999999
,
wx
.
getStorageSync
(
'attractingCustomerChannelId'
),
this
.
openid
)
console
.
log
(
wx
.
getStorageSync
(
'attractingCustomerChannelId'
))
console
.
log
(
this
.
openid
)
console
.
log
(
99999
)
//埋点引客渠道
if
(
wx
.
getStorageSync
(
'attractingCustomerChannelId'
))
{
indexApi
.
addRecord
(
...
...
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