wly %!s(int64=2) %!d(string=hai) anos
pai
achega
1530ac6de6

+ 5 - 5
src/assets/less/my.less

@@ -27,7 +27,7 @@
     height: 150px;
     background-color: #fff;
     border-radius: 20px;
-    margin: 300px auto 0;
+    margin: 350px auto 0;
     padding: 30px;
     justify-content: space-between;
     align-items: center;
@@ -75,7 +75,7 @@
     align-items: center;
     justify-content: center;
     flex-direction: column;
-    margin-bottom: 140px;
+    margin-bottom: 70px;
     width: 100%;
     image {
       width: 124px;
@@ -122,9 +122,9 @@
   }
   .my_coupon {
     height: 200px;
-    width: 95%;
-    // background-color: #79BA70;
-    margin: 0 auto 30px;
+    width: 690px;
+    margin: 0 auto;
+    align-items: center;
     border-radius: 20px;
     .task-rukou-img {
       width: 100%;

+ 7 - 7
src/assets/less/shelf.less

@@ -67,7 +67,8 @@
   }
   .shelf {
     // margin-top: -20px;
-    margin-top: 30px;
+    margin: 0 auto;
+    width: 700px;
     flex-direction: column;
     background-color: #f7f7f7;
     // border-radius: 20px ;
@@ -79,8 +80,7 @@
     .shelf-wrap {
       // border-radius: 20px 20px 0px 0px;
       background-color: #fff;
-      margin: 0 auto;
-      padding: 0px 22px;
+      // padding: 0px 22px;
       flex-direction: column;
       .type-bar {
         background-color: #fff;
@@ -153,7 +153,7 @@
       }
 
       .shelf-total {
-        padding: 32px 22px;
+        padding: 32px 0px;
         justify-content: space-between;
         align-items: center;
         .complete-btn {
@@ -212,7 +212,7 @@
         flex-wrap: wrap;
 
         .book-item__wrap {
-          margin: 0 25px 0 0;
+          margin: 0 49px 0 0;
 
           .book-del__wrap {
             background-color: rgba(0, 0, 0, 0.4);
@@ -255,8 +255,8 @@
       }
 
       .recent-list {
-        padding: 0 22px;
-        margin-top: 30px;
+        // padding: 0 22px;
+        // margin-top: 30px;
         .recent-item {
           z-index: 11;
           padding: 0 0 30px 0;

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

@@ -185,7 +185,7 @@ export default {
     this.back_alert = sign_out_app_show
     this.getCoustom()
     this.getUser()
-    this.current = 0;
+    this.current = 1;
   },
   goActicity() {
     router.push({

+ 3 - 2
src/views/My/index.ux

@@ -113,6 +113,7 @@
         >注销账号</text
       >
     </div>
+    <div style="height:120px"></div>
   </div>
 </template>
 
@@ -157,14 +158,14 @@ export default {
     }
   },
   async watchPropsChange(v) {
-    if (v === 3) {
+    if (v === 2) {
       //let s = (await storage.get({ key: 'send_order_id' })).data
       //if (s) this.send_order_id = s
       this.getUser()
     }
   },
   broadevt(evt) {
-    if (evt.detail.current == 3) {
+    if (evt.detail.current == 2) {
       this.getUser()
     }
   },

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

@@ -5,7 +5,7 @@
     <div class="shelf_title">
       <text>书架</text>
     </div>
-    <div if="{{Object.keys(firstBook).length > 0}}" class="book_detail">
+    <div if="{{Object.keys(firstBook).length > 0}}" @click="toReader(firstBook)" class="book_detail">
       <div class="image-recommend">
         <image src="../../assets/imgs/recommend-book.png"></image>
       </div>
@@ -224,7 +224,17 @@ export default {
   },
   typeChange(index) {
     this.current = index
+  },
+  toReader(book){
+     router.push({
+        uri: '/views/Reader',
+        params: {
+          bid: book.book_id,
+          chapter_id: book.recent_cid
+        }
+      })
   }
+  
 }
 </script>