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
d9b08604
Commit
d9b08604
authored
Sep 05, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
publish back;
parent
8264245b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
17 deletions
+43
-17
XingmaLabPublishPage.vue
pages/XingmaLabPublishPage/XingmaLabPublishPage.vue
+40
-16
config.js
pages/XingmaLabPublishPage/config.js
+3
-1
No files found.
pages/XingmaLabPublishPage/XingmaLabPublishPage.vue
View file @
d9b08604
...
@@ -3,6 +3,10 @@
...
@@ -3,6 +3,10 @@
<!--
<span
class=
"xingmalabpublishpagebg"
<!--
<span
class=
"xingmalabpublishpagebg"
:style=
"
{ backgroundImage: `url(${$baseUrl}${getImageUrl(config.images.background)})` }">
</span>
-->
:style=
"
{ backgroundImage: `url(${$baseUrl}${getImageUrl(config.images.background)})` }">
</span>
-->
<span
class=
"xingmalabpublishpagebackbtn"
:style=
"
{ backgroundImage: `url(${$baseUrl}${getImageUrl(config.images.backBtn)})` }"
@click="handleGoBack">
</span>
<!-- 主内容区域 -->
<!-- 主内容区域 -->
<div
class=
"xingmalabpublishpagenosel"
v-if=
"currentState !== config.states.SUC"
>
<div
class=
"xingmalabpublishpagenosel"
v-if=
"currentState !== config.states.SUC"
>
<!-- 文案输入框 -->
<!-- 文案输入框 -->
...
@@ -482,11 +486,11 @@ const handleConfirmPublish = async () => {
...
@@ -482,11 +486,11 @@ const handleConfirmPublish = async () => {
//TODO:埋点--返回星妈会lab
//TODO:埋点--返回星妈会lab
md
.
sensorComponentLogTake
({
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab-内容发布页"
,
pageName
:
"星妈lab-内容发布页"
,
componentName
:
"内容发布"
,
componentName
:
"内容发布"
,
componentContent
:
"返回星妈会lab首页"
componentContent
:
"返回星妈会lab首页"
});
});
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'发布失败:'
,
error
)
console
.
error
(
'发布失败:'
,
error
)
...
@@ -523,6 +527,26 @@ const handleNoTimeButtonClick = () => {
...
@@ -523,6 +527,26 @@ const handleNoTimeButtonClick = () => {
// })
// })
// }
// }
// 返回上一页
const
handleGoBack
=
()
=>
{
// 检查是否有上一页
const
pages
=
getCurrentPages
()
console
.
log
(
'pages'
,
pages
)
if
(
pages
.
length
>
1
)
{
// 有上一页,直接返回上一页(收藏状态已在更新时同步)
uni
.
navigateBack
({
delta
:
1
})
}
else
{
// 没有上一页,跳转到星妈实验室页面,并传递index参数
uni
.
redirectTo
({
url
:
`/pages/xingmaLab/xingmaLab`
})
}
}
// 执行发布
// 执行发布
const
performPublish
=
async
()
=>
{
const
performPublish
=
async
()
=>
{
try
{
try
{
...
@@ -624,17 +648,17 @@ onMounted(async () => {
...
@@ -624,17 +648,17 @@ onMounted(async () => {
console
.
log
(
'星妈实验室发布页面已加载'
)
console
.
log
(
'星妈实验室发布页面已加载'
)
md
.
sensorComponentLogTake
({
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab-内容发布页"
,
pageName
:
"星妈lab-内容发布页"
,
componentName
:
"内容发布"
,
componentName
:
"内容发布"
,
componentContent
:
"点击添加图片"
componentContent
:
"点击添加图片"
});
});
md
.
sensorComponentLogTake
({
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
xcxComponentExposure
:
"true"
,
pageName
:
"星妈lab-内容发布页"
,
pageName
:
"星妈lab-内容发布页"
,
componentName
:
"内容发布"
,
componentName
:
"内容发布"
,
componentContent
:
"发布"
componentContent
:
"发布"
});
});
// 获取最新的星妈实验室信息
// 获取最新的星妈实验室信息
await
xingmaLabStore
.
loadXingmaInfo
()
await
xingmaLabStore
.
loadXingmaInfo
()
...
...
pages/XingmaLabPublishPage/config.js
View file @
d9b08604
...
@@ -38,7 +38,9 @@ export const xingmaLabConfig = {
...
@@ -38,7 +38,9 @@ export const xingmaLabConfig = {
bottomConBtn
:
`XingmaLabPublishPage/
${
version
}
/XingmaLabPublishPageSucBottomConBtn.png`
,
bottomConBtn
:
`XingmaLabPublishPage/
${
version
}
/XingmaLabPublishPageSucBottomConBtn.png`
,
picBg
:
`XingmaLabPublishPage/
${
version
}
/XingmaLabPublishPageSucPicBg.png`
,
picBg
:
`XingmaLabPublishPage/
${
version
}
/XingmaLabPublishPageSucPicBg.png`
,
pic
:
`XingmaLabPublishPage/
${
version
}
/XingmaLabPublishPageSucPic.png`
pic
:
`XingmaLabPublishPage/
${
version
}
/XingmaLabPublishPageSucPic.png`
}
},
// 返回按钮
backBtn
:
`XingmaLabDetailPage/
${
version
}
/XingmaLabDetailPageBackBtn.png`
},
},
// 页面状态配置
// 页面状态配置
...
...
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