|
@@ -0,0 +1,100 @@
|
|
|
+<import name="x-book" src="../../components/book/book.ux"></import>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <div class="leaderboard-wrap">
|
|
|
+ <div class="type-bar">
|
|
|
+ <block for="type in typeList">
|
|
|
+ <div class="type-item" @click="typeChange(type.index)">
|
|
|
+ <text class="{{type.index === current ? 'cur' : ''}}">{{type.name}}</text>
|
|
|
+ <text class="choose-bar" show="{{type.index === current}}"></text>
|
|
|
+ </div>
|
|
|
+ </block>
|
|
|
+ </div>
|
|
|
+ <list>
|
|
|
+ <list-item type="multi" class="book-list__wrap book-list__wrap--multi">
|
|
|
+ <div class="book-list__multi">
|
|
|
+ <block for="book in list">
|
|
|
+ <div class="book-item">
|
|
|
+ <x-book multi="{{true}}" width="{{150}}" book="{{book}}">
|
|
|
+ <div class="book-info__multi">
|
|
|
+ <text class="name">{{book.book_name}}</text>
|
|
|
+ <text class="intro">{{book.book_summary}}</text>
|
|
|
+ </div>
|
|
|
+ </x-book>
|
|
|
+ </div>
|
|
|
+ </block>
|
|
|
+ </div>
|
|
|
+ </list-item>
|
|
|
+ </list>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ typeList: [
|
|
|
+ {
|
|
|
+ name: "女生",
|
|
|
+ index: 0
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "男生",
|
|
|
+ index: 1
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ list: [{
|
|
|
+ "book_id": "DZ18V4EoMXNAkgqopVKrjLzebmWvdYPQ",
|
|
|
+ "book_name": "最后赢家",
|
|
|
+ "book_summary": "我为了钱做了上门女婿。我为了钱做了上门女婿。我为了钱做了上门女婿。我为了钱做了上门女婿。我为了钱做了上门女婿。我为了钱做了上门女婿。我为了钱做了上门女婿。我为了钱做了上门女婿。",
|
|
|
+ "book_author": "小豌豆",
|
|
|
+ "cover_url": "https://cdn-novel.iycdm.com/book/cover/201907241708063365.jpeg?x-oss-process=image/resize,w_200/format,jpg",
|
|
|
+ "book_word_count": 3872962,
|
|
|
+ "book_chapter_total": 1806,
|
|
|
+ "book_category_id": 40,
|
|
|
+ "book_category": "女婿文",
|
|
|
+ "book_end_status": 1,
|
|
|
+ "book_published_time": "",
|
|
|
+ "copyright": "",
|
|
|
+ "charge_type": "CHAPTER",
|
|
|
+ "force_subscribe_chapter_id": 8,
|
|
|
+ "update_time": null,
|
|
|
+ "is_on_shelf": 2,
|
|
|
+ "book_price": "8.99",
|
|
|
+ "keyword": "",
|
|
|
+ "recommend_index": "100.00",
|
|
|
+ "is_show_index_content": 1,
|
|
|
+ "click_count": 0,
|
|
|
+ "product_id": 3375,
|
|
|
+ "sex_preference": "男频",
|
|
|
+ "last_cid": 1413448,
|
|
|
+ "last_chapter": "后续一百七十四章",
|
|
|
+ "first_cid": 1414575,
|
|
|
+ "is_on_user_shelf": null,
|
|
|
+ "last_chapter_is_vip": null,
|
|
|
+ "is_need_charge": 0,
|
|
|
+ "record_chapter_id": null,
|
|
|
+ "record_chapter_name": null
|
|
|
+ }],
|
|
|
+ current: 0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onInit() {
|
|
|
+ for (var i = 0; i < 5; i++) {
|
|
|
+ console.log(1)
|
|
|
+ this.list.push(this.list[0])
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onShow() {
|
|
|
+
|
|
|
+ },
|
|
|
+ typeChange(index) {
|
|
|
+ this.current = index;
|
|
|
+ },
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less">
|
|
|
+@import "../../assets/less/leaderboard.less";
|
|
|
+</style>
|