From fc2d0f90ec794927c3a237ae03ba8c586e615df3 Mon Sep 17 00:00:00 2001 From: xiebing Date: Thu, 20 Nov 2025 15:35:48 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E8=A7=86=E9=A2=91=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E9=81=AE=E7=BD=A9=E7=9A=84=E6=98=BE=E7=A4=BA.=E5=A4=8D?= =?UTF-8?q?=E7=94=A8=E4=B9=8B=E5=89=8D=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/components/AIMatch.vue | 8 +- .../components/index-refactor copy 2.vue | 1351 ----------------- pages/index/components/index-refactor.vue | 33 +- 3 files changed, 23 insertions(+), 1369 deletions(-) delete mode 100644 pages/index/components/index-refactor copy 2.vue diff --git a/pages/index/components/AIMatch.vue b/pages/index/components/AIMatch.vue index 9febc2c..d9d3558 100644 --- a/pages/index/components/AIMatch.vue +++ b/pages/index/components/AIMatch.vue @@ -1,12 +1,6 @@ @@ -390,6 +384,6 @@ onUnmounted(() => { } .match-canvas { width: 100%; - height: 350rpx; /* 可根据需求调整高度 */ + height: 400rpx; /* 可根据需求调整高度 */ } diff --git a/pages/index/components/index-refactor copy 2.vue b/pages/index/components/index-refactor copy 2.vue deleted file mode 100644 index 21744fb..0000000 --- a/pages/index/components/index-refactor copy 2.vue +++ /dev/null @@ -1,1351 +0,0 @@ - - - - - diff --git a/pages/index/components/index-refactor.vue b/pages/index/components/index-refactor.vue index 02008c8..c03e091 100644 --- a/pages/index/components/index-refactor.vue +++ b/pages/index/components/index-refactor.vue @@ -74,7 +74,7 @@ - + @@ -200,12 +200,12 @@ - @@ -233,7 +233,8 @@ import AIMatch from "./AIMatch.vue"; const { proxy } = getCurrentInstance(); -const showVideoTip = ref(true); +const maskFirstEntry = ref(true); + const isSticky = ref(false); const showScrollBottom = ref(false); const scrollTop = ref(0); @@ -244,7 +245,7 @@ const waterfallsFlowRef = ref(null); const loadmoreRef = ref(null); const conditionSearch = ref({}); const waterfallcolumn = ref(2); -const maskFristEntry = ref(true); + const state = reactive({ tabIndex: "all", }); @@ -273,6 +274,11 @@ const occupations = ["律师", "工程师", "医生", "教师", "设计师", " const colors = ["#0069FE", "#FF9400", "#FF6969", "#21EA85", "#87E2EC"]; +onMounted(() => { + let firstEntry = uni.getStorageSync("firstEntry") === false ? false : true; // 默认未读 + maskFirstEntry.value = firstEntry; +}); + const checkStickyStatus = (e) => { scrollTop.value = e.detail.scrollTop; nextTick(() => { @@ -292,6 +298,11 @@ const checkStickyStatus = (e) => { }); }; +function closeVideoTip() { + uni.setStorageSync("firstEntry", false); + maskFirstEntry.value = false; +} + const handleTagClick = (tagInfo) => { console.log("点击的标签信息:", tagInfo); }; @@ -574,7 +585,7 @@ defineExpose({ loadData });