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
16bc27a8
Commit
16bc27a8
authored
May 24, 2024
by
侯体倬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用文件
parent
b59ad253
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
47 deletions
+0
-47
src/main.js
+0
-2
src/utils/xhyxShop.js
+0
-45
No files found.
src/main.js
View file @
16bc27a8
...
...
@@ -29,7 +29,6 @@ import "@/utils/themeModule";
import
shop
from
"./api/shop"
;
import
spokesman
from
"@/api/spokesman"
;
import
live
from
"@/api/live"
import
xhyxTrack
from
'@/utils/xhyxShop.js'
Vue
.
config
.
productionTip
=
false
App
.
mpType
=
'app'
...
...
@@ -56,7 +55,6 @@ app.$mount()
// glob挂载到
let
mpApp
=
getApp
();
// 新华优选埋点
xhyxTrack
.
init
(
mpApp
);
Vue
.
prototype
.
mpApp
=
mpApp
// 初始化
mpApp
.
fenxiaoModel
=
new
fenxiaoModel
({
...
...
src/utils/xhyxShop.js
deleted
100644 → 0
View file @
b59ad253
import
compass
from
"mayi-front-tools/compass"
const
TRACK_NAME
=
'compass'
function
trackSetOpenid
(
openid
)
{
compass
.
setOpenid
(
openid
);
}
function
trackEvent
(
eventName
,
payload
)
{
compass
.
track
(
eventName
,
payload
);
}
function
trackLogin
(
phoneNumber
)
{
compass
.
login
(
phoneNumber
)
}
export
default
{
init
(
mpApp
)
{
if
(
!
[
'xhyx_uat'
,
'xhyx_prod'
].
includes
(
process
.
env
.
NODE_ENV
))
return
;
if
(
!
mpApp
[
TRACK_NAME
])
{
// 配置初始化参数
compass
.
init
({
name
:
'compass'
,
server_url
:
'https://track.hebeijiaoyu.cn/api/trackminimessage?productId=xinhuayouxuan'
,
// 全埋点控制开关
autoTrack
:{
appLaunch
:
true
,
// 默认为 true,false 则关闭 $MPLaunch 事件采集
appShow
:
true
,
// 默认为 true,false 则关闭 $MPShow 事件采集
appHide
:
true
,
// 默认为 true,false 则关闭 $MPHide 事件采集
pageShow
:
true
,
// 默认为 true,false 则关闭 $MPViewScreen 事件采集
pageShare
:
true
,
// 默认为 true,false 则关闭 $MPShare 事件采集
mpClick
:
false
,
// 默认为 false,true 则开启 $MPClick 事件采集
mpFavorite
:
true
,
// 默认为 true,false 则关闭 $MPAddFavorites 事件采集
pageLeave
:
false
// 默认为 false, true 则开启 $MPPageLeave事件采集
},
// 是否允许控制台打印查看埋点数据(建议开启查看)
show_log
:
true
});
mpApp
[
TRACK_NAME
]
=
compass
;
mpApp
.
trackSetOpenid
=
trackSetOpenid
;
mpApp
.
trackEvent
=
trackEvent
;
mpApp
.
trackLogin
=
trackLogin
;
}
}
}
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