Browse Source

书架语法处理

wangzq 2 years ago
parent
commit
a17e9dd5b2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/Shelf/index.ux

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

@@ -9,7 +9,7 @@
         <div class="book-info__multi">
         <div class="book-info__multi">
           <text class="name">{{ firstBook.book_name }}</text>
           <text class="name">{{ firstBook.book_name }}</text>
           <text class="intro">{{ firstBook.intro }}</text>
           <text class="intro">{{ firstBook.intro }}</text>
-          <text> {{firstBook.author+"·"+(firstBook.status ==0 ? "连载·":"完结·")+(firstBook.size < 10000 ? firstBook.size : (firstBook.size/10000).toFixed(2)+"万")}} </text>
+          <text> {{firstBook.subtext}} </text>
         </div>
         </div>
       </div>        
       </div>        
     </div>
     </div>
@@ -197,6 +197,7 @@ export default {
       // });
       // });
       if(this.booksize > 0){
       if(this.booksize > 0){
         this.firstBook = r[0];
         this.firstBook = r[0];
+        this.firstBook.subtext = this.firstBook.author+"·"+(this.firstBook.status ==0 ? "连载·":"完结·")+(this.firstBook.size < 10000 ? this.firstBook.size : (this.firstBook.size/10000).toFixed(2)+"万");
       }
       }
 
 
       // console.log("this.firstBook:",this.firstBook,"this.firstBook.length",Object.keys(this.firstBook).length);
       // console.log("this.firstBook:",this.firstBook,"this.firstBook.length",Object.keys(this.firstBook).length);