feat:更新176

This commit is contained in:
2026-09-15 14:14:09 +08:00
parent 9b09d6469d
commit f7b9e66172
15 changed files with 250 additions and 980 deletions
+35
View File
@@ -94,9 +94,35 @@ export default {
scrollTop: 0,
};
},
watch: {
guideShow: {
handler(val) {
// #ifdef MP
this.$nextTick(() => {
if (val) {
uni.hideTabBar({ animation: false, fail: () => {} });
} else {
uni.showTabBar({ animation: false, fail: () => {} });
}
});
// #endif
},
immediate: true,
},
},
mounted() {
this.checkGuideShow();
},
beforeDestroy() {
// #ifdef MP
uni.showTabBar({ animation: false, fail: () => {} });
// #endif
},
unmounted() {
// #ifdef MP
uni.showTabBar({ animation: false, fail: () => {} });
// #endif
},
methods: {
onScroll(e) {
this.scrollTop = e.detail.scrollTop;
@@ -112,12 +138,18 @@ export default {
if (!hasSeen) {
this.guideStep = 0;
this.guideShow = true;
// #ifdef MP
uni.hideTabBar({ animation: false, fail: () => {} });
// #endif
this.resetScroll();
}
},
closeGuide() {
this.guideShow = false;
uni.setStorageSync("has_seen_home_guide", true);
// #ifdef MP
uni.showTabBar({ animation: false, fail: () => {} });
// #endif
this.$emit("close");
},
nextGuideStep() {
@@ -131,6 +163,9 @@ export default {
open() {
this.guideStep = 0;
this.guideShow = true;
// #ifdef MP
uni.hideTabBar({ animation: false, fail: () => {} });
// #endif
this.resetScroll();
},
},