Szx 3 anni fa
parent
commit
4dc0bd75a9
3 ha cambiato i file con 10 aggiunte e 12 eliminazioni
  1. 0 1
      src/assets/less/my.less
  2. 9 10
      src/views/Index/index.ux
  3. 1 1
      src/views/Shelf/index.ux

+ 0 - 1
src/assets/less/my.less

@@ -45,7 +45,6 @@
           font-size: 30px;
           font-weight: bold;
         }
-
       }
     }
     .pay-btn{

+ 9 - 10
src/views/Index/index.ux

@@ -8,9 +8,9 @@
   <stack class="stack-wrap">
     <div class="index-wrap">
       <tabs class="tab-content" onchange="tabbarChange" index="{{current}}">
-        <tab-content>
+        <tab-content> 
+           <shelf-page @change="pageTohome" tabindex="{{current}}"></shelf-page>
           <home-page @change="pageSwitch" tabindex="{{current}}"></home-page>
-          <shelf-page @change="pageTohome" tabindex="{{current}}"></shelf-page>
           <my-page @customer="openCustomer" tabindex="{{current}}"></my-page>
         </tab-content>
       </tabs>
@@ -64,7 +64,7 @@ import router from "@system.router";
 let getConfig;
 export default {
   public: {
-    curPage: 0,
+    curPage: 1,
     push_id: '',
     bid: '',
     chapter_id: '',
@@ -82,14 +82,14 @@ export default {
       title: "我的书架",
       icon: "../../assets/imgs/shelf.png",
       active_icon: "../../assets/imgs/shelf_choose.png",
-      index: 1
+      index: 0
     },
     {
       name: "精选",
       title: "追书云",
       icon: "../../assets/imgs/home.png",
       active_icon: "../../assets/imgs/home_choose.png",
-      index: 0
+      index: 1
     },
 
     {
@@ -161,7 +161,7 @@ export default {
     it.getShortCut((value) => {
       //this.showShortPop = !value;
       this.showShortPop = true;
-      if(value){
+      if (value) {
         this.$app.$def.data.backClickCount = 1
       } else {
         this.$app.$def.data.backClickCount = 0
@@ -232,15 +232,14 @@ export default {
   },
   tabbarChange(tab) {
     this.current = tab.index;
-
     //this.$page.setTitleBar({ text: this.tabbar[tab.index].title });
   },
   pageSwitch() {
-    this.current = 1;
-  },
-  pageTohome(){
     this.current = 0;
   },
+  pageTohome() {
+    this.current = 1;
+  },
   changeSignPop() {
     this.showSignPop = !this.showSignPop;
   },

+ 1 - 1
src/views/Shelf/index.ux

@@ -154,7 +154,7 @@ export default {
     this.$on('refreshData', this.broadevt);
   },
   watchPropsChange(newV, oldV) {
-    if (newV == 1) {
+    if (newV == 0) {
       this.getUserShelfBooks()
     }
   },