XiaBx %!s(int64=3) %!d(string=hai) anos
pai
achega
97980d828b
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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;
   },