|
@@ -14,7 +14,7 @@
|
|
<text class="words">字数:{{bookWordsFormat(book.book_word_count)}}</text>
|
|
<text class="words">字数:{{bookWordsFormat(book.book_word_count)}}</text>
|
|
<div class="user-operator">
|
|
<div class="user-operator">
|
|
<text class="add" @click="addShelf">{{book.is_on_user_shelf ? '已加入' : '加入书架'}}</text>
|
|
<text class="add" @click="addShelf">{{book.is_on_user_shelf ? '已加入' : '加入书架'}}</text>
|
|
- <text class="read" @click="toRead">立即阅读</text>
|
|
|
|
|
|
+ <text class="read" @click="toRead(book.first_cid)">立即阅读</text>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-book>
|
|
</x-book>
|
|
@@ -86,9 +86,8 @@ export default {
|
|
if (ret) this.book.is_on_user_shelf = 1, prompt.showToast({ message: "添加成功" });
|
|
if (ret) this.book.is_on_user_shelf = 1, prompt.showToast({ message: "添加成功" });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- toRead(cid) {
|
|
|
|
- let chapter_id = this.book.first_cid;
|
|
|
|
- if (cid) chapter_id = cid;
|
|
|
|
|
|
+ toRead(cid = "") {
|
|
|
|
+ let chapter_id = cid;
|
|
router.push({
|
|
router.push({
|
|
uri: "/views/Reader",
|
|
uri: "/views/Reader",
|
|
params: {
|
|
params: {
|