Browse Source

Merge branch 'master' of iqiyoo:zhuishuyun_quickapp_front

xia 4 years ago
parent
commit
cdde9f749e
4 changed files with 33 additions and 12 deletions
  1. 3 3
      src/assets/less/home.less
  2. 1 1
      src/manifest.json
  3. 22 1
      src/views/Home/index.ux
  4. 7 7
      src/views/Index/index.ux

+ 3 - 3
src/assets/less/home.less

@@ -19,7 +19,7 @@
       }
 
       .cur {
-        color: #EF5952;
+        color: #ef5952;
         font-size: 36px;
         font-weight: bold;
       }
@@ -27,13 +27,13 @@
       .choose-bar {
         width: 38px;
         height: 4px;
-        background-color: #EF5952;
+        background-color: #ef5952;
         border-radius: 2px;
         margin-top: 10px;
       }
     }
   }
-  
+
   .search-bar {
     padding: 24px;
 

+ 1 - 1
src/manifest.json

@@ -60,7 +60,7 @@
     "logLevel": "debug"
   },
   "router": {
-    "entry": "views/Activity",
+    "entry": "views/Index",
     "pages": {
       "views/Index": {
         "component": "index"

+ 22 - 1
src/views/Home/index.ux

@@ -26,6 +26,12 @@
           </block>
         </swiper>
       </list-item>
+      <list-item type="entrance">
+        <div class="entrance_block">
+          <image src="https://cdn-novel.iycdm.com/quickapp/activity/rank_banner.png" @click="jump('Leaderboard')"></image>
+          <image src="https://cdn-novel.iycdm.com/quickapp/activity/cate_banner.png" @click="jump('Category')"></image>
+        </div>
+      </list-item>
       <block for="bookObj in list">
         <list-item type="simple" class="book-list__wrap" if="$idx % 2 === 0">
           <div class="book-list__title">
@@ -114,7 +120,12 @@ export default {
       }
     })
   },
-  async getCityListByTabChange(index=1) {
+  jump(page) {
+    router.push({
+      uri: '/views/' + page,
+    })
+  },
+  async getCityListByTabChange(index = 1) {
     await storage.set({ key: "sex", value: index || 0 });
     let sex = index ? "female" : "male";
     let ret = await getHomeList(sex);
@@ -130,6 +141,16 @@ export default {
   background-color: #fff;
   flex-direction: column;
 
+  .entrance_block {
+    width: 100%;
+    padding: 30px;
+    display: flex;
+    justify-content: space-between;
+    image {
+      width: 330px;
+    }
+  }
+
   .type-bar {
     background-color: #fff;
 

+ 7 - 7
src/views/Index/index.ux

@@ -71,13 +71,13 @@ export default {
         active_icon: "../../assets/imgs/home_choose.png",
         index: 0
       },
-      {
-        name: "分类",
-        title: "书城",
-        icon: "../../assets/imgs/category.png",
-        active_icon: "../../assets/imgs/category_choose.png",
-        index: 1
-      },
+      // {
+      //   name: "分类",
+      //   title: "书城",
+      //   icon: "../../assets/imgs/category.png",
+      //   active_icon: "../../assets/imgs/category_choose.png",
+      //   index: 1
+      // },
       {
         name: "书架",
         title: "我的书架",