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
b1c16144
Commit
b1c16144
authored
Sep 03, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6666666
parent
0ebb3740
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
114 additions
and
167 deletions
+114
-167
xingmaLab.vue
pages/xingmaLab/xingmaLab.vue
+114
-167
No files found.
pages/xingmaLab/xingmaLab.vue
View file @
b1c16144
...
...
@@ -311,12 +311,29 @@ const handleImageLoad = (e, item, index) => {
}
onShow
(
async
()
=>
{
md
.
sensorLogTake
({
xcxPage
:
"星妈实验室首页页面浏览"
,
pageName
:
"星妈实验室首页"
,
});
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"底部切换组件"
,
componentContent
:
"星妈会藏馆"
});
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"底部切换组件"
,
componentContent
:
"发布"
});
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"底部切换组件"
,
componentContent
:
"我的藏品"
});
console
.
log
(
'onshow'
)
//
console.log('onshow')
await
xingmaLabStore
.
loadXingmaInfo
();
await
reloadCangguanList
();
...
...
@@ -329,7 +346,7 @@ const cangguanListIdx = ref(1);
const
cangguanTotalPage
=
ref
(
0
);
const
cangpinListIdx
=
ref
(
1
);
const
cangpinTotalPage
=
ref
(
0
);
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
// await xingmaLabStore.loadXingmaInfo();
// console.log('xingmaLabStore=', xingmaLabStore.xingmaInfo);
...
...
@@ -423,167 +440,6 @@ const convertDobuleList = (list) => {
return
newList
;
}
const
data
=
{
"success"
:
true
,
"ok"
:
false
,
"code"
:
91624081
,
"message"
:
"nisi"
,
"data"
:
{
"list"
:
[
{
"avatar"
:
"//yun.duiba.com.cn/aurora/assets/cefdded9d556c6d60f3ab7bbfa07ca2c59379cdf.png"
,
"bizNo"
:
"788080001"
,
"collection"
:
false
,
"content"
:
"test"
,
"extra"
:
"{
\"
avatar
\"
:
\"
//yun.duiba.com.cn/aurora/assets/cefdded9d556c6d60f3ab7bbfa07ca2c59379cdf.png
\"
,
\"
content
\"
:
\"
test
\"
,
\"
imageUrl
\"
:
\"
//yun.duiba.com.cn/aurora/assets/0aad1953812cfe06d1eaa26157a2b66b4d73f562.png
\"
,
\"
nickname
\"
:
\"
test
\"
}"
,
"gmtCreate"
:
1756288451000
,
"gmtModified"
:
1756288451000
,
"id"
:
3
,
"imgUrl"
:
"//yun.duiba.com.cn/aurora/assets/0aad1953812cfe06d1eaa26157a2b66b4d73f562.png"
,
"nickname"
:
"test"
,
"owner"
:
false
,
"state"
:
null
,
"userId"
:
225
},
{
"avatar"
:
"//yun.duiba.com.cn/aurora/assets/cefdded9d556c6d60f3ab7bbfa07ca2c59379cdf.png"
,
"bizNo"
:
"788080001"
,
"collection"
:
false
,
"content"
:
"test"
,
"extra"
:
"{
\"
avatar
\"
:
\"
//yun.duiba.com.cn/aurora/assets/cefdded9d556c6d60f3ab7bbfa07ca2c59379cdf.png
\"
,
\"
content
\"
:
\"
test
\"
,
\"
imageUrl
\"
:
\"
//yun.duiba.com.cn/aurora/assets/0aad1953812cfe06d1eaa26157a2b66b4d73f562.png
\"
,
\"
nickname
\"
:
\"
test
\"
}"
,
"gmtCreate"
:
1756288451000
,
"gmtModified"
:
1756288451000
,
"id"
:
3
,
"imgUrl"
:
"//yun.duiba.com.cn/aurora/assets/0aad1953812cfe06d1eaa26157a2b66b4d73f562.png"
,
"nickname"
:
"test"
,
"owner"
:
false
,
"state"
:
null
,
"userId"
:
225
},
{
"avatar"
:
"//yun.duiba.com.cn/aurora/assets/cefdded9d556c6d60f3ab7bbfa07ca2c59379cdf.png"
,
"bizNo"
:
"788080001"
,
"collection"
:
false
,
"content"
:
"test"
,
"extra"
:
"{
\"
avatar
\"
:
\"
//yun.duiba.com.cn/aurora/assets/cefdded9d556c6d60f3ab7bbfa07ca2c59379cdf.png
\"
,
\"
content
\"
:
\"
test
\"
,
\"
imageUrl
\"
:
\"
//yun.duiba.com.cn/aurora/assets/0aad1953812cfe06d1eaa26157a2b66b4d73f562.png
\"
,
\"
nickname
\"
:
\"
test
\"
}"
,
"gmtCreate"
:
1756288451000
,
"gmtModified"
:
1756288451000
,
"id"
:
3
,
"imgUrl"
:
"//yun.duiba.com.cn/aurora/assets/0aad1953812cfe06d1eaa26157a2b66b4d73f562.png"
,
"nickname"
:
"test"
,
"owner"
:
false
,
"state"
:
null
,
"userId"
:
225
},
{
"avatar"
:
"//yun.duiba.com.cn/aurora/assets/cefdded9d556c6d60f3ab7bbfa07ca2c59379cdf.png"
,
"bizNo"
:
"788080001"
,
"collection"
:
false
,
"content"
:
"test"
,
"extra"
:
"{
\"
avatar
\"
:
\"
//yun.duiba.com.cn/aurora/assets/cefdded9d556c6d60f3ab7bbfa07ca2c59379cdf.png
\"
,
\"
content
\"
:
\"
test
\"
,
\"
imageUrl
\"
:
\"
//yun.duiba.com.cn/aurora/assets/0aad1953812cfe06d1eaa26157a2b66b4d73f562.png
\"
,
\"
nickname
\"
:
\"
test
\"
}"
,
"gmtCreate"
:
1756288451000
,
"gmtModified"
:
1756288451000
,
"id"
:
3
,
"imgUrl"
:
"//yun.duiba.com.cn/aurora/assets/0aad1953812cfe06d1eaa26157a2b66b4d73f562.png"
,
"nickname"
:
"test"
,
"owner"
:
false
,
"state"
:
null
,
"userId"
:
225
},
{
"avatar"
:
"//yun.duiba.com.cn/aurora/assets/cefdded9d556c6d60f3ab7bbfa07ca2c59379cdf.png"
,
"bizNo"
:
"788080001"
,
"collection"
:
false
,
"content"
:
"test"
,
"extra"
:
"{
\"
avatar
\"
:
\"
//yun.duiba.com.cn/aurora/assets/cefdded9d556c6d60f3ab7bbfa07ca2c59379cdf.png
\"
,
\"
content
\"
:
\"
test
\"
,
\"
imageUrl
\"
:
\"
//yun.duiba.com.cn/aurora/assets/0aad1953812cfe06d1eaa26157a2b66b4d73f562.png
\"
,
\"
nickname
\"
:
\"
test
\"
}"
,
"gmtCreate"
:
1756288451000
,
"gmtModified"
:
1756288451000
,
"id"
:
3
,
"imgUrl"
:
"//yun.duiba.com.cn/aurora/assets/0aad1953812cfe06d1eaa26157a2b66b4d73f562.png"
,
"nickname"
:
"test"
,
"owner"
:
false
,
"state"
:
null
,
"userId"
:
225
},
{
"avatar"
:
"//yun.duiba.com.cn/aurora/assets/cefdded9d556c6d60f3ab7bbfa07ca2c59379cdf.png"
,
"bizNo"
:
"788080001"
,
"collection"
:
false
,
"content"
:
"test"
,
"extra"
:
"{
\"
avatar
\"
:
\"
//yun.duiba.com.cn/aurora/assets/cefdded9d556c6d60f3ab7bbfa07ca2c59379cdf.png
\"
,
\"
content
\"
:
\"
test
\"
,
\"
imageUrl
\"
:
\"
//yun.duiba.com.cn/aurora/assets/0aad1953812cfe06d1eaa26157a2b66b4d73f562.png
\"
,
\"
nickname
\"
:
\"
test
\"
}"
,
"gmtCreate"
:
1756288451000
,
"gmtModified"
:
1756288451000
,
"id"
:
3
,
"imgUrl"
:
"//yun.duiba.com.cn/aurora/assets/0aad1953812cfe06d1eaa26157a2b66b4d73f562.png"
,
"nickname"
:
"test"
,
"owner"
:
false
,
"state"
:
null
,
"userId"
:
225
}
],
"totalCount"
:
10
,
"hasPrev"
:
false
,
"totalPage"
:
1
,
"hasNext"
:
false
}
}
// 藏馆列表数据 - 统一的数据源
// const cangguanList = ref([
// {
// image: '../../static/xingmaLab/1001/cangpingImg.png',
// title: '宝宝是否发育迟缓',
// id: 'No.123456789',
// creator: '鹤小飞',
// badge: '精选推荐'
// },
// {
// image: '../../static/xingmaLab/1001/bannerImg0.png',
// title: '萌宝来袭,欢乐加倍',
// id: 'No.123456789',
// creator: '鹤小飞'
// },
// {
// image: '../../static/xingmaLab/1001/WechatIMG102.jpg',
// title: '宝宝能量补给站!',
// id: 'No.123456789',
// creator: '鹤小飞'
// },
// {
// image: '../../static/xingmaLab/1001/listItemImgPzh4.png',
// title: '快来用星妈会小程序',
// id: 'No.123456789',
// creator: '鹤小飞'
// }
// ])
// 我的收藏列表数据
const
favoritesList
=
ref
([
{
// image: '../../static/xingmaLab/1001/placeholder1.jpg',
title
:
'宝宝是否发育迟缓'
,
id
:
'No.123456789'
,
creator
:
'鹤小飞'
},
{
// image: '../../static/xingmaLab/1001/placeholder2.jpg',
title
:
'萌宝来袭,欢乐加倍'
,
id
:
'No.123456789'
,
creator
:
'鹤小飞'
},
{
// image: '../../static/xingmaLab/1001/placeholder3.jpg',
title
:
'宝宝能量补给站!'
,
id
:
'No.123456789'
,
creator
:
'鹤小飞'
},
{
image
:
'../../static/xingmaLab/1001/placeholder4.jpg'
,
title
:
'快来用星妈会小程序'
,
id
:
'No.123456789'
,
creator
:
'鹤小飞'
}
])
// 方法
const
handleBack
=
()
=>
{
uni
.
navigateBack
({
...
...
@@ -602,11 +458,24 @@ const switchSubTab = async (subTab) => {
if
(
subTab
==
'collections'
){
if
(
currentFrontNavType
!=
'collections'
){
currentFrontNavType
=
'collections'
md
.
sensorComponentLogTake
({
xcxComponentClick
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"我的藏品"
,
componentContent
:
"我的藏品-我的藏品"
});
await
reloadCangpinList
();
}
}
else
if
(
subTab
==
'favorites'
){
if
(
currentFrontNavType
!=
'favorites'
){
md
.
sensorComponentLogTake
({
xcxComponentClick
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"我的藏品"
,
componentContent
:
"我的藏品-我的收藏"
});
currentFrontNavType
=
'favorites'
await
reloadShoucangList
();
}
...
...
@@ -620,6 +489,14 @@ const switchSubTab = async (subTab) => {
}
const
handleBottomNavFabu
=
()
=>
{
md
.
sensorComponentLogTake
({
xcxComponentClick
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"底部切换组件"
,
componentContent
:
"发布"
});
console
.
log
(
'showNoTimePopup 变量状态:'
,
showNoTimePopup
)
console
.
log
(
'xingmaLabStore.xingmaInfo:'
,
xingmaLabStore
.
xingmaInfo
)
...
...
@@ -641,7 +518,17 @@ let currentButtomNavType = 'cangguan';
let
currentFrontNavType
=
''
;
// 底部导航点击处理
const
handleBottomNavClick
=
async
(
navType
)
=>
{
if
(
navType
==
'cangguan'
)
{
md
.
sensorComponentLogTake
({
xcxComponentClick
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"底部切换组件"
,
componentContent
:
"星妈会藏馆"
});
// 点击"星妈会藏馆"时,切换到藏馆tab,展示单列列表
activeTab
.
value
=
'cangguan'
if
(
currentButtomNavType
!=
'cangguan'
){
...
...
@@ -651,20 +538,66 @@ const handleBottomNavClick = async (navType) => {
}
else
if
(
navType
==
'wodecangguan'
)
{
md
.
sensorComponentLogTake
({
xcxComponentClick
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"底部切换组件"
,
componentContent
:
"我的藏品"
});
// 点击"我的藏品"时,切换到我的藏馆tab,默认展示我的藏品
activeTab
.
value
=
'wodecangguan'
if
(
currentButtomNavType
!=
'wodecangguan'
){
currentButtomNavType
=
'wodecangguan'
;
if
(
currentFrontNavType
==
''
){
if
(
!
(
cangpinList
&&
cangpinList
.
length
>
0
)){
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"我的藏品"
,
componentContent
:
"我的藏品-去发布"
});
}
else
{
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"我的藏品"
,
componentContent
:
"我的藏品-我的藏品"
});
}
activeSubTab
.
value
=
'collections'
currentFrontNavType
=
'collections'
await
reloadCangpinList
();
}
else
{
currentFrontNavType
=
activeSubTab
.
value
;
if
(
activeSubTab
.
value
==
'collections'
){
if
(
!
(
cangpinList
&&
cangpinList
.
length
>
0
)){
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"我的藏品"
,
componentContent
:
"我的藏品-去发布"
});
}
else
{
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"我的藏品"
,
componentContent
:
"我的藏品-我的藏品"
});
}
await
reloadCangpinList
();
}
else
{
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"我的藏品"
,
componentContent
:
"我的藏品-我的收藏"
});
await
reloadShoucangList
();
}
}
...
...
@@ -675,6 +608,14 @@ const handleBottomNavClick = async (navType) => {
const
handleItemClick_cangguan
=
(
item
)
=>
{
console
.
log
(
'点击了项目藏馆:'
,
item
)
md
.
sensorComponentLogTake
({
xcxComponentClick
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"星妈会藏馆"
,
componentContent
:
`首页藏品-藏品标题
${
item
.
title
}
`
});
// 这里可以添加跳转逻辑
uni
.
navigateTo
({
url
:
'/pages/XingmaLabDetailPage/XingmaLabDetailPage?id='
+
item
.
id
...
...
@@ -700,6 +641,12 @@ const handleItemClick_shoucang = (item) => {
const
handlePublish
=
()
=>
{
console
.
log
(
'点击了发布按钮'
)
md
.
sensorComponentLogTake
({
xcxComponentClick
:
"true"
,
pageName
:
"星妈lab首页"
,
componentName
:
"我的藏品"
,
componentContent
:
"我的藏品-去发布"
});
// 这里可以添加发布逻辑或跳转
if
(
xingmaLabStore
.
xingmaInfo
&&
xingmaLabStore
.
xingmaInfo
.
isReachedLimit
)
{
console
.
log
(
'已达到发布上线'
)
...
...
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