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 });