feat:更新176
This commit is contained in:
@@ -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();
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user