XiaBx il y a 3 ans
Parent
commit
97980d828b
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/views/Index/index.ux

+ 4 - 1
src/views/Index/index.ux

@@ -10,7 +10,7 @@
       <tabs class="tab-content" onchange="tabbarChange" index="{{current}}">
         <tab-content>
           <home-page @change="pageSwitch" tabindex="{{current}}"></home-page>
-          <shelf-page tabindex="{{current}}"></shelf-page>
+          <shelf-page @change="pageTohome" tabindex="{{current}}"></shelf-page>
           <my-page @customer="openCustomer" tabindex="{{current}}"></my-page>
         </tab-content>
       </tabs>
@@ -238,6 +238,9 @@ export default {
   pageSwitch() {
     this.current = 1;
   },
+  pageTohome(){
+    this.current = 0;
+  },
   changeSignPop() {
     this.showSignPop = !this.showSignPop;
   },