1002884655 hace 4 años
padre
commit
f8f6634261

+ 2
- 2
src/components/BookItem/page.scss Ver fichero

@@ -28,8 +28,8 @@
28 28
     }
29 29
     > .Desc {
30 30
       > text {
31
-        font-size: 28px;
32
-        line-height: 40px;
31
+        font-size: 26px;
32
+        line-height: 1.8em;
33 33
         overflow: hidden;
34 34
         text-overflow: ellipsis;
35 35
         display: -webkit-box;

+ 5
- 0
src/pages/Index/BookDetail/page.scss Ver fichero

@@ -17,6 +17,7 @@
17 17
       > .FrontInfo {
18 18
         position: relative;
19 19
         overflow: hidden;
20
+<<<<<<< HEAD
20 21
         > .Like {
21 22
           display: inline-block;
22 23
           position: absolute;
@@ -39,6 +40,10 @@
39 40
             }
40 41
           }
41 42
         }
43
+=======
44
+        line-height: 1.6em;
45
+
46
+>>>>>>> 377b8f62dcfd8e1a4ba23e4105e500cc7abc9412
42 47
         > .Img {
43 48
           padding: 30px 120px;
44 49
           position: relative;

+ 1
- 1
src/pages/Index/index.vue Ver fichero

@@ -57,7 +57,7 @@
57 57
                     <text>最新文章</text>
58 58
                   </view>
59 59
                   <view class="ListContainer">
60
-                    <view class="ArticleItem flex-h" v-for="(item, index) in NewestArticleList">
60
+                    <view class="ArticleItem flex-h" v-for="(item, index) in NewestArticleList" :key="index">
61 61
                       <BookItem :Data="item"></BookItem>
62 62
                     </view>
63 63
                   </view>

+ 9
- 7
src/pages/Index/page.scss Ver fichero

@@ -14,11 +14,11 @@
14 14
     > view {
15 15
       position: relative;
16 16
       overflow: hidden;
17
-      background: #fff;
17
+      background: #fafafa;
18 18
       border-radius: 20px;
19 19
       align-items: center;
20 20
       box-sizing: border-box;
21
-      border: 2px solid #333;
21
+      border: 1px solid rgba(0, 0, 0, 0.05);
22 22
       > text {
23 23
         font-size: 32px;
24 24
         color: #333;
@@ -86,7 +86,8 @@
86 86
               display: block;
87 87
               font-size: 32px;
88 88
               font-weight: bold;
89
-              line-height: 60px;
89
+              line-height: 1.8em;
90
+              padding: 0.5em 0;
90 91
             }
91 92
           }
92 93
           > .ListContainer {
@@ -120,7 +121,7 @@
120 121
                     margin-top: 6px;
121 122
                     display: block;
122 123
                     font-size: 28px;
123
-                    line-height: 40px;
124
+                    line-height: 1.8em;
124 125
                     white-space: nowrap;
125 126
                     overflow: hidden;
126 127
                     text-overflow: ellipsis;
@@ -142,7 +143,8 @@
142 143
               display: block;
143 144
               font-size: 32px;
144 145
               font-weight: bold;
145
-              line-height: 60px;
146
+              line-height: 1.8em;
147
+              padding: 0.5em 0;
146 148
             }
147 149
           }
148 150
           > .ListContainer {
@@ -184,8 +186,8 @@
184 186
                 }
185 187
                 > .Desc {
186 188
                   > text {
187
-                    font-size: 28px;
188
-                    line-height: 40px;
189
+                    font-size: 24px;
190
+                    line-height: 28px;
189 191
                     overflow: hidden;
190 192
                     text-overflow: ellipsis;
191 193
                     display: -webkit-box;