Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Damon
study
Commits
3f28aaa1
Commit
3f28aaa1
authored
Aug 06, 2021
by
linwenqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:我的模块和证书模块用户触发事件埋点
parent
52645e9b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
108 additions
and
49 deletions
+108
-49
cert.vue
src/pages/index/cert.vue
+8
-2
certify.vue
src/pages/mine/certify.vue
+44
-25
company.vue
src/pages/mine/company.vue
+20
-15
info.vue
src/pages/mine/info.vue
+26
-7
setting.vue
src/pages/mine/setting.vue
+10
-0
No files found.
src/pages/index/cert.vue
View file @
3f28aaa1
...
...
@@ -211,14 +211,20 @@ export default {
})
return
}
let
param
=
{
let
param
s
=
{
personalCertNum
:
this
.
certId
,
personalName
:
this
.
certName
}
uni
.
showLoading
({
title
:
'查询中,请稍后'
,
})
this
.
$u
.
api
.
getCertFromOut
(
param
).
then
((
res
)
=>
{
let
trackParams
=
{
openId
:
this
.
openId
,
nickname
:
this
.
userInfo
.
nickName
,
...
params
,
}
getApp
().
track
(
'selectCertByIdAndName'
,
trackParams
)
this
.
$u
.
api
.
getCertFromOut
(
params
).
then
((
res
)
=>
{
uni
.
hideLoading
()
if
(
!
res
){
this
.
$refs
.
uToast
.
show
({
...
...
src/pages/mine/certify.vue
View file @
3f28aaa1
...
...
@@ -137,27 +137,32 @@ export default {
})
return
}
this
.
$u
.
api
.
updateUserInfo
({
identityFrontPath
:
this
.
student
.
identityFrontPath
,
identityBackPath
:
this
.
student
.
identityBackPath
,
identityNumber
:
this
.
student
.
identityNumber
,
certificateValidityDate
:
this
.
student
.
certificateValidityDate
,
name
:
this
.
student
.
name
,
let
params
=
{
identityFrontPath
:
this
.
student
.
identityFrontPath
,
identityBackPath
:
this
.
student
.
identityBackPath
,
identityNumber
:
this
.
student
.
identityNumber
,
certificateValidityDate
:
this
.
student
.
certificateValidityDate
,
name
:
this
.
student
.
name
,
}
let
trackParams
=
{
openId
:
this
.
openId
,
nickname
:
this
.
userInfo
.
nickName
,
...
params
,
}
getApp
().
track
(
'vertifyIdCard'
,
trackParams
)
this
.
$u
.
api
.
updateUserInfo
(
params
).
then
((
res
)
=>
{
this
.
$refs
.
uToast
.
show
({
title
:
'认证成功'
,
type
:
'success'
,
duration
:
2000
,
})
.
then
((
res
)
=>
{
this
.
$refs
.
uToast
.
show
({
title
:
'认证成功'
,
type
:
'success'
,
duration
:
2000
,
this
.
student
.
isCertify
=
true
setTimeout
(()
=>
{
this
.
$u
.
route
({
type
:
'back'
,
})
this
.
student
.
isCertify
=
true
setTimeout
(()
=>
{
this
.
$u
.
route
({
type
:
'back'
,
})
},
1500
)
})
},
1500
)
})
},
getFront
()
{
let
that
=
this
...
...
@@ -167,10 +172,17 @@ export default {
uni
.
showLoading
({
title
:
'识别中,请稍后'
,
})
let
params
=
{
url
:
process
.
uniEnv
.
qn_asset_url
+
res
.
key
,
}
let
trackParams
=
{
openId
:
this
.
openId
,
nickname
:
this
.
userInfo
.
nickName
,
...
params
,
}
getApp
().
track
(
'certFrontUpload'
,
trackParams
)
this
.
$u
.
api
.
getCertifyInfoByType
(
'front'
,
{
url
:
process
.
uniEnv
.
qn_asset_url
+
res
.
key
,
})
.
getCertifyInfoByType
(
'front'
,
params
)
.
then
((
res
)
=>
{
uni
.
hideLoading
()
this
.
student
.
name
=
res
.
name
...
...
@@ -195,10 +207,17 @@ export default {
uni
.
showLoading
({
title
:
'识别中,请稍后'
,
})
let
params
=
{
url
:
process
.
uniEnv
.
qn_asset_url
+
res
.
key
,
}
let
trackParams
=
{
openId
:
this
.
openId
,
nickname
:
this
.
userInfo
.
nickName
,
...
params
,
}
getApp
().
track
(
'certFrontUpload'
,
trackParams
)
this
.
$u
.
api
.
getCertifyInfoByType
(
'back'
,
{
url
:
process
.
uniEnv
.
qn_asset_url
+
res
.
key
,
})
.
getCertifyInfoByType
(
'back'
,
params
)
.
then
((
res
)
=>
{
uni
.
hideLoading
()
this
.
student
.
certificateValidityDate
=
res
.
expire
...
...
src/pages/mine/company.vue
View file @
3f28aaa1
...
...
@@ -49,23 +49,28 @@ export default {
},
methods
:
{
submit
()
{
this
.
$u
.
api
.
updateUserInfo
({
workUnit
:
this
.
student
.
workUnit
,
let
params
=
{
workUnit
:
this
.
student
.
workUnit
,
}
let
trackParams
=
{
openId
:
this
.
openId
,
nickname
:
this
.
userInfo
.
nickName
,
...
params
,
}
getApp
().
track
(
'changeCompany'
,
trackParams
)
this
.
$u
.
api
.
updateUserInfo
(
params
).
then
((
res
)
=>
{
this
.
isNotSet
=
false
this
.
$refs
.
uToast
.
show
({
title
:
'保存成功'
,
type
:
'success'
,
duration
:
2000
,
})
.
then
((
res
)
=>
{
this
.
isNotSet
=
false
this
.
$refs
.
uToast
.
show
({
title
:
'保存成功'
,
type
:
'success'
,
duration
:
2000
,
setTimeout
(()
=>
{
this
.
$u
.
route
({
type
:
'back'
,
})
setTimeout
(()
=>
{
this
.
$u
.
route
({
type
:
'back'
,
})
},
1500
)
})
},
1500
)
})
},
},
}
...
...
src/pages/mine/info.vue
View file @
3f28aaa1
...
...
@@ -174,6 +174,12 @@ export default {
})
return
}
let
trackParams
=
{
openId
:
this
.
openId
,
nickname
:
this
.
userInfo
.
nickName
,
...
params
,
}
getApp
().
track
(
'getPhonenumber'
,
trackParams
)
this
.
syncUserinfo
(
params
)
},
syncUserinfo
(
params
)
{
...
...
@@ -241,23 +247,36 @@ export default {
})
},
changeHead
()
{
//
获取图片
//
更换头像
upload
.
getPhoto
(
2
,
this
.
qiToken
).
then
((
res
)
=>
{
this
.
student
.
avatarPath
=
process
.
uniEnv
.
qn_asset_url
+
res
.
key
this
.
$u
.
api
.
updateUserInfo
(
{
let
params
=
{
avatarPath
:
this
.
student
.
avatarPath
,
})
}
let
trackParams
=
{
openId
:
this
.
openId
,
nickname
:
this
.
userInfo
.
nickName
,
...
params
,
}
getApp
().
track
(
'changeAvatar'
,
trackParams
)
this
.
$u
.
api
.
updateUserInfo
(
params
)
})
},
changeCertPhoto
()
{
//
获取图片
//
更换证件头像
upload
.
getPhoto
(
2
,
this
.
qiToken
).
then
((
res
)
=>
{
//显示
this
.
student
.
certificatePhotoPath
=
process
.
uniEnv
.
qn_asset_url
+
res
.
key
this
.
$u
.
api
.
updateUserInfo
(
{
let
params
=
{
certificatePhotoPath
:
this
.
student
.
certificatePhotoPath
,
})
}
let
trackParams
=
{
openId
:
this
.
openId
,
nickname
:
this
.
userInfo
.
nickName
,
...
params
,
}
getApp
().
track
(
'changeCertPhoto'
,
trackParams
)
this
.
$u
.
api
.
updateUserInfo
(
params
)
})
},
toLogin
()
{
...
...
src/pages/mine/setting.vue
View file @
3f28aaa1
...
...
@@ -27,6 +27,11 @@ export default {
methods
:
{
upgrade
:
function
()
{
let
that
=
this
let
trackParams
=
{
openId
:
that
.
openId
,
nickname
:
that
.
userInfo
.
nickName
,
}
getApp
().
track
(
'upgradeVersion'
,
trackParams
)
uni
.
showLoading
({
title
:
'正在更新版本...'
,
})
...
...
@@ -56,6 +61,11 @@ export default {
content
:
'确认退出当前账号'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
let
trackParams
=
{
openId
:
that
.
openId
,
nickname
:
that
.
userInfo
.
nickName
,
}
getApp
().
track
(
'logout'
,
trackParams
)
that
.
$u
.
vuex
(
'vuex_token'
,
''
)
that
.
$u
.
vuex
(
'openId'
,
''
)
that
.
$u
.
vuex
(
'userInfo'
,
{})
...
...
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