Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3b8b5a37
authored
May 07, 2025
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
批量上报
1 parent
946b9b6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
components/HomeFrame/components/SettingBox.vue
mixin/pointTrack.js
components/HomeFrame/components/SettingBox.vue
View file @
3b8b5a3
...
...
@@ -108,7 +108,7 @@ export default {
confirmColor
:
'#347BFF'
,
async
success
(
res
)
{
if
(
res
.
confirm
)
{
_this
.
$emit
(
'stopAudio'
)
//
_this.$emit('stopAudio')
try
{
uni
.
showLoading
({
mask
:
true
...
...
mixin/pointTrack.js
View file @
3b8b5a3
...
...
@@ -2,12 +2,13 @@
* @Author: yangming@didihu.com.cn yangming@didihu.com.cn
* @Date: 2025-05-01 11:00:20
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-05-0
6 16:02:46
* @LastEditTime: 2025-05-0
7 09:58:48
* @FilePath: \gl-tape\mixin\pointTrack.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const
FILTER_PAGE
=
[
'收入测算试算页'
]
const
REPORT_MAN
=
5
let
REPORT_STATUS
=
false
import
dayjs
from
'dayjs'
export
default
{
data
()
{
...
...
@@ -26,13 +27,20 @@ export default {
},
// 上报埋点
report
(
recordList
)
{
uni
.
$api
.
commonApi
.
recordInsert
({
recordList
}).
then
(
res
=>
{
if
(
res
)
{
let
recordTrackList
=
uni
.
$storage
.
get
(
'recordTrackList'
)
||
[]
recordTrackList
=
recordTrackList
.
slice
(
REPORT_MAN
)
uni
.
$storage
.
set
(
'recordTrackList'
,
recordTrackList
)
}
})
REPORT_STATUS
=
true
uni
.
$api
.
commonApi
.
recordInsert
({
recordList
})
.
then
(
res
=>
{
if
(
res
)
{
let
recordTrackList
=
uni
.
$storage
.
get
(
'recordTrackList'
)
||
[]
recordTrackList
=
recordTrackList
.
slice
(
REPORT_MAN
)
uni
.
$storage
.
set
(
'recordTrackList'
,
recordTrackList
)
REPORT_STATUS
=
false
}
})
.
catch
(
err
=>
{
REPORT_STATUS
=
false
// 允许下次重试
})
},
collect
()
{
const
{
phone
:
phoneNumber
,
name
:
loginAccount
,
uuid
,
sceneType
:
scene
,
userType
}
=
uni
.
$storage
.
get
(
'userInfo'
)
...
...
@@ -53,7 +61,7 @@ export default {
const
recordTrackList
=
uni
.
$storage
.
get
(
'recordTrackList'
)
||
[]
recordTrackList
.
push
(
params
)
uni
.
$storage
.
set
(
'recordTrackList'
,
recordTrackList
)
if
(
recordTrackList
.
length
>=
REPORT_MAN
)
{
if
(
recordTrackList
.
length
>=
REPORT_MAN
&&
!
REPORT_STATUS
)
{
this
.
report
(
recordTrackList
.
slice
(
0
,
REPORT_MAN
))
}
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment