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
3f522cde
Commit
3f522cde
authored
Sep 04, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
埋点
parent
364f0c1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
0 deletions
+84
-0
XingmaLabDetailPage.vue
pages/XingmaLabDetailPage/XingmaLabDetailPage.vue
+30
-0
XingmaLabPublishPage.vue
pages/XingmaLabPublishPage/XingmaLabPublishPage.vue
+54
-0
No files found.
pages/XingmaLabDetailPage/XingmaLabDetailPage.vue
View file @
3f522cde
...
...
@@ -157,6 +157,13 @@ const onGetPhoneNumber = (e, action) => {
const
handleLikeClick
=
async
()
=>
{
//TODO:埋点
md
.
sensorComponentLogTake
({
xcxComponentClick
:
"true"
,
pageName
:
"星妈lab-藏品详情页页"
,
componentName
:
"藏品详情"
,
componentContent
:
"收藏"
});
try
{
const
recordId
=
detailData
.
value
.
id
if
(
!
recordId
)
{
...
...
@@ -206,6 +213,13 @@ const handleShareClick = () => {
// 分享内容通过页面配置自动设置
console
.
log
(
'分享按钮被点击'
)
//TODO:埋点
md
.
sensorComponentLogTake
({
xcxComponentClick
:
"true"
,
pageName
:
"星妈lab-藏品详情页页"
,
componentName
:
"藏品详情"
,
componentContent
:
"分享"
});
// 手动触发分享(如果需要的话)
// uni.showShareMenu({
// withShareTicket: true,
...
...
@@ -240,6 +254,22 @@ const handleGoBack = () => {
// 生命周期
onMounted
(
async
()
=>
{
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab-藏品详情页页"
,
componentName
:
"藏品详情"
,
componentContent
:
"收藏"
});
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab-藏品详情页页"
,
componentName
:
"藏品详情"
,
componentContent
:
"分享"
});
// 调用 home 接口获取登录状态
await
homeStore
.
loadHomeInfo
()
...
...
pages/XingmaLabPublishPage/XingmaLabPublishPage.vue
View file @
3f522cde
...
...
@@ -211,8 +211,20 @@ const handleImageUpload = () => {
if
(
uploadedImage
.
value
)
{
// 重新上传
//TODO:埋点
md
.
sensorComponentLogTake
({
xcxComponentClick
:
"true"
,
pageName
:
"星妈lab-内容发布页"
,
componentName
:
"内容发布"
,
componentContent
:
"重新上传"
});
}
else
{
//TODO:埋点
md
.
sensorComponentLogTake
({
xcxComponentClick
:
"true"
,
pageName
:
"星妈lab-内容发布页"
,
componentName
:
"内容发布"
,
componentContent
:
"点击添加图片"
});
}
if
(
isUploading
.
value
)
return
...
...
@@ -222,6 +234,13 @@ const handleImageUpload = () => {
sizeType
:
[
'original'
,
'compressed'
],
sourceType
:
[
'album'
,
'camera'
],
success
:
(
res
)
=>
{
////TODO:埋点--曝光
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab-内容发布页"
,
componentName
:
"内容发布"
,
componentContent
:
"重新上传"
});
const
tempFilePath
=
res
.
tempFilePaths
[
0
]
// 检查文件大小
...
...
@@ -323,6 +342,12 @@ const handlePublishBtnClick = async () => {
//TODO:埋点
md
.
sensorComponentLogTake
({
xcxComponentClick
:
"true"
,
pageName
:
"星妈lab-内容发布页"
,
componentName
:
"内容发布"
,
componentContent
:
"发布"
});
console
.
log
(
'点击发布按钮'
,
{
isFirstTimePublish
:
isFirstTimePublish
.
value
,
...
...
@@ -454,6 +479,14 @@ const handleConfirmPublish = async () => {
// 使用发布接口返回的 bizNo 作为发布编号
publishNumber
.
value
=
publishResult
.
data
?.
bizNo
//TODO:埋点--返回星妈会lab
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab-内容发布页"
,
componentName
:
"内容发布"
,
componentContent
:
"返回星妈会lab首页"
});
}
catch
(
error
)
{
console
.
error
(
'发布失败:'
,
error
)
uni
.
showToast
({
...
...
@@ -570,6 +603,14 @@ const generatePublishNumber = () => {
const
handleSuccessBtnClick
=
()
=>
{
console
.
log
(
'点击成功状态按钮'
)
//TODO:埋点
md
.
sensorComponentLogTake
({
xcxComponentClick
:
"true"
,
pageName
:
"星妈lab-内容发布页"
,
componentName
:
"内容发布"
,
componentContent
:
"返回星妈会lab首页"
});
// 这里可以添加完成后的跳转逻辑
// uni.navigateBack()
uni
.
redirectTo
({
...
...
@@ -581,6 +622,19 @@ const handleSuccessBtnClick = () => {
onMounted
(
async
()
=>
{
console
.
log
(
'星妈实验室发布页面已加载'
)
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab-内容发布页"
,
componentName
:
"内容发布"
,
componentContent
:
"点击添加图片"
});
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab-内容发布页"
,
componentName
:
"内容发布"
,
componentContent
:
"发布"
});
// 获取最新的星妈实验室信息
await
xingmaLabStore
.
loadXingmaInfo
()
...
...
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