diff --git a/frontend/pages/square/square.vue b/frontend/pages/square/square.vue
index 767f4a1..c2aef6f 100644
--- a/frontend/pages/square/square.vue
+++ b/frontend/pages/square/square.vue
@@ -70,6 +70,20 @@
+
+
+
+
+
{
}
}
+const loadHotCategories = async () => {
+ try {
+ const res = await getHotInspirationFlowBatchApi()
+ if (res.code === 200 && res.data?.categories) {
+ hotCategories.value = res.data.categories
+ }
+ } catch (e) {
+ console.error('[square] 加载热门分类失败', e)
+ }
+}
+
+const handleHotCardClick = (item) => {
+ uni.navigateTo({
+ url: `/pages/asset-detail/asset-detail?asset_id=${item.asset_id}`
+ })
+}
+
const handleScrollToLower = () => {
if (creationGridRef.value) {
creationGridRef.value.loadMore()
@@ -242,6 +277,7 @@ onMounted(() => {
resetSquare()
loadBannerActivities()
+ loadHotCategories()
})
onShow(() => {
@@ -371,6 +407,11 @@ onUnmounted(() => {
font-weight: 600;
}
+/* 热门分类区块 */
+.hot-category-wrapper {
+ margin-bottom: 16rpx;
+}
+
/* 蒙层 */
.nav-mask {
position: fixed;