Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
64c9a29c
Commit
64c9a29c
authored
Aug 14, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生长工具页-测评结果页埋点
parent
761a9eea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
130 additions
and
6 deletions
+130
-6
shengzhangTestResult.vue
pages/shengzhangTestResult/shengzhangTestResult.vue
+51
-0
shengzhangTools.vue
pages/shengzhangTools/shengzhangTools.vue
+60
-2
Integral.vue
views/Integral.vue
+19
-4
No files found.
pages/shengzhangTestResult/shengzhangTestResult.vue
View file @
64c9a29c
...
...
@@ -315,6 +315,7 @@ import { getGrowthHistoryList,getGrowthAssessmentDetail } from '../../api/shengz
import
ShengzhangQuxianTipsPopup
from
'../../components/shengzhangQuxianTipsPopup.vue'
;
import
{
useUserStore
}
from
"@/stores/user"
;
import
{
getHealthField
}
from
"@/api/common"
;
import
md
from
'../../md'
;
const
isRecords
=
ref
(
false
);
...
...
@@ -474,6 +475,23 @@ const statusImgMap = {
* @param {string} tab - 要切换的标签名称('latest'|'history')
*/
const
switchTab
=
(
tab
)
=>
{
switch
(
tab
){
case
'latest'
:
md
.
sensorLogTake
({
xcxClick
:
"测评结果页-最新"
,
pageName
:
"测评结果页"
,
buttonName
:
"测评结果页-最新-点击"
,
});
break
;
case
'history'
:
md
.
sensorLogTake
({
xcxClick
:
"测评结果页-历史"
,
pageName
:
"测评结果页"
,
buttonName
:
"测评结果页-历史-点击"
,
});
break
;
}
activeTab
.
value
=
tab
console
.
log
(
'切换到标签:'
,
tab
)
// if(tab === 'latest' && isRecords.value){
...
...
@@ -504,10 +522,25 @@ const switchCurveTab = (tab) => {
// 根据不同的标签更新曲线数据
if
(
tab
===
'height'
)
{
md
.
sensorLogTake
({
xcxClick
:
"测评结果页-身高"
,
pageName
:
"测评结果页"
,
buttonName
:
"测评结果页-身高-点击"
,
});
curveData
.
value
=
curveDataConvert
(
shengzhangStore
.
getGrowthCurveDataInfoHeight
.
userDataPoints
,
'height'
);
}
else
if
(
tab
===
'weight'
)
{
md
.
sensorLogTake
({
xcxClick
:
"测评结果页-体重"
,
pageName
:
"测评结果页"
,
buttonName
:
"测评结果页-体重-点击"
,
});
curveData
.
value
=
curveDataConvert
(
shengzhangStore
.
getGrowthCurveDataInfoWeight
.
userDataPoints
,
'weight'
);
}
else
if
(
tab
===
'head'
)
{
md
.
sensorLogTake
({
xcxClick
:
"测评结果页-头围"
,
pageName
:
"测评结果页"
,
buttonName
:
"测评结果页-头围-点击"
,
});
curveData
.
value
=
curveDataConvert
(
shengzhangStore
.
getGrowthCurveDataInfoHead
.
userDataPoints
,
'head'
);
}
...
...
@@ -574,6 +607,12 @@ const getYTicks = () => {
* 显示生长曲线说明弹窗
*/
const
showCurveTips
=
()
=>
{
md
.
sensorLogTake
({
xcxClick
:
"测评结果页-什么是生长曲线"
,
pageName
:
"测评结果页"
,
buttonName
:
"测评结果页-什么是生长曲线-点击"
,
});
console
.
log
(
'显示生长曲线提示'
)
showTipsPopup
.
value
=
true
}
...
...
@@ -591,6 +630,12 @@ const closeTipsPopup = () => {
* 处理专家咨询按钮点击事件
*/
const
consultExpert
=
async
()
=>
{
md
.
sensorLogTake
({
xcxClick
:
"测评结果页-专家在线咨询"
,
pageName
:
"测评结果页"
,
buttonName
:
"测评结果页-专家在线咨询-点击"
,
});
console
.
log
(
'专家在线咨询'
)
const
res
=
await
getHealthField
();
...
...
@@ -663,6 +708,12 @@ onShareAppMessage(() => {
const
shengzhangStore
=
useShengzhangStore
();
// const headCircumference = ref(0);
onMounted
(
async
()
=>
{
md
.
sensorLogTake
({
xcxClick
:
"测评结果页"
,
pageName
:
"测评结果页"
});
//获取历史记录
const
historyListData
=
await
getGrowthHistoryList
();
...
...
pages/shengzhangTools/shengzhangTools.vue
View file @
64c9a29c
...
...
@@ -15,7 +15,7 @@
class=
"banner-img"
:src=
"`$
{$baseUrl}${item?.img}`"
mode="aspectFill"
@click="bannerHandler(item)"
@click="bannerHandler(item
, index
)"
/>
</swiper-item>
</swiper>
...
...
@@ -284,8 +284,30 @@ const showLoading = ref(false);
const
bannerHandler
=
(
item
)
=>
{
const
bannerHandler
=
(
item
,
index
)
=>
{
console
.
log
(
item
)
let
buttonName
=
''
;
switch
(
index
){
case
0
:
buttonName
=
'第一张焦点图'
;
break
;
case
1
:
buttonName
=
'第二张焦点图'
;
break
;
case
2
:
buttonName
=
'第三张焦点图'
;
break
;
case
3
:
buttonName
=
'第四张焦点图'
;
break
;
}
md
.
sensorLogTake
({
xcxClick
:
"生长曲线首页-banner资源位"
,
pageName
:
"生长曲线首页"
,
buttonName
:
buttonName
,
});
if
(
item
?.
url
!=
""
){
jump
({
type
:
item
.
type
,
...
...
@@ -351,6 +373,12 @@ const showDatePickerPopup = ref(false)
const
selectedDate
=
ref
()
const
showDatePicker
=
()
=>
{
md
.
sensorLogTake
({
xcxClick
:
"生长曲线首页-本次测评日期"
,
pageName
:
"生长曲线首页"
,
buttonName
:
"生长曲线首页-本次测评日期-点击"
,
});
console
.
log
(
'显示日期选择器'
)
showDatePickerPopup
.
value
=
true
}
...
...
@@ -363,6 +391,12 @@ const onDateChange = (date) => {
}
const
showFeedingPopup
=
()
=>
{
md
.
sensorLogTake
({
xcxClick
:
"生长曲线首页-宝宝喂养方式选择"
,
pageName
:
"生长曲线首页"
,
buttonName
:
"生长曲线首页-宝宝喂养方式选择-点击"
,
});
console
.
log
(
'显示喂养方式弹窗'
)
showFeedSwitchPopup
.
value
=
true
currentFeedIndex
.
value
=
1
// 默认选中"母乳+奶粉混合喂养"
...
...
@@ -495,12 +529,24 @@ const onHeadFocus = () => {
// 其他方法保持不变
const
changeBaby
=
()
=>
{
md
.
sensorLogTake
({
xcxClick
:
"生长曲线首页-切换宝宝"
,
pageName
:
"生长曲线首页"
,
buttonName
:
"生长曲线首页-切换宝宝-点击"
,
});
console
.
log
(
'切换宝宝'
)
showBabySwitchPopup
.
value
=
true
// currentBabyIndex.value = 0 // 默认选中第一个宝宝
}
//测评记录
const
viewRecords
=
()
=>
{
md
.
sensorLogTake
({
xcxClick
:
"生长曲线首页-测评记录"
,
pageName
:
"生长曲线首页"
,
buttonName
:
"生长曲线首页-测评记录-点击"
,
});
jump
({
type
:
JumpType
.
INNER
,
url
:
"/pages/shengzhangTestResult/shengzhangTestResult?isRecords=false"
...
...
@@ -521,6 +567,12 @@ const convertFeedingType = (type) => {
}
}
const
submitData
=
throttleTap
(
async
()
=>
{
md
.
sensorLogTake
({
xcxClick
:
"生长曲线首页-确认提交"
,
pageName
:
"生长曲线首页"
,
buttonName
:
"生长曲线首页-确认提交-点击"
,
});
showLoading
.
value
=
true
;
if
(
headCircumference
.
value
==
0
){
...
...
@@ -684,6 +736,12 @@ const pushCount = (val) => {
const
showBabyTestTipsPopup
=
ref
(
false
)
const
onClickTips
=
()
=>
{
md
.
sensorLogTake
({
xcxClick
:
"生长曲线首页-(如何确认身高、体重、头围)"
,
pageName
:
"生长曲线首页"
,
buttonName
:
"生长曲线首页-(如何确认身高、体重、头围)-点击"
,
});
console
.
log
(
'显示宝宝测评提示弹窗'
)
showBabyTestTipsPopup
.
value
=
true
}
...
...
views/Integral.vue
View file @
64c9a29c
...
...
@@ -16,7 +16,7 @@
class=
"banner-img"
:src=
"$baseUrl + `integral/$
{tupianBanben}/${item?.bannerImg}`"
mode="aspectFill"
@click="bannerHandler(item)"
@click="bannerHandler(item
, index
)"
/>
</swiper-item>
</swiper>
...
...
@@ -1462,12 +1462,27 @@
//banner点击事件
const
bannerHandler
=
(
item
)
=>
{
const
bannerHandler
=
(
item
,
index
)
=>
{
let
buttonName
=
''
;
switch
(
index
){
case
0
:
buttonName
=
'第一张焦点图'
;
break
;
case
1
:
buttonName
=
'第二张焦点图'
;
break
;
case
2
:
buttonName
=
'第三张焦点图'
;
break
;
case
3
:
buttonName
=
'第四张焦点图'
;
break
;
}
md
.
sensorLogTake
({
xcxClick
:
"积分服务页-首屏页面点击"
,
pageName
:
"积分服务页-首屏"
,
buttonName
:
"第一张焦点图"
,
buttonName
:
buttonName
,
}
);
if
(
item
?.
url
!=
""
){
...
...
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