Parcourir la source

修改tabbar会出现两个的问题

wangn il y a 5 ans
Parent
commit
a5fad45039

+ 3 - 0
mallApp/src/pages/home/course.vue

@@ -45,6 +45,9 @@ export default {
   mounted(){
     this.pxClassList()
   },
+  onShow () {
+    uni.hideTabBar();
+  },
   methods: {
     tabClick (index) {
       this.currentTabIndex = index

+ 3 - 0
mallApp/src/pages/home/shop.vue

@@ -102,6 +102,9 @@ export default {
   onLoad (option) {
     // this.init()
   },
+  onShow () {
+    uni.hideTabBar();
+  },
   methods: {
     init () {
       this._detail();

+ 3 - 0
mallApp/src/pages/home/user.vue

@@ -159,6 +159,9 @@ export default {
   },
   watch: {
 
+  },
+  onShow () {
+    uni.hideTabBar();
   },
   computed: {
     ...mapGetters({ shopUser: "getShopUser" })