|
@@ -16,7 +16,7 @@
|
|
<text class="operator next" @click="getNextChapter">下一章</text>
|
|
<text class="operator next" @click="getNextChapter">下一章</text>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <short-page if="{{showShortPop}}"></short-page>
|
|
|
|
|
|
+ <short-page if="{{showShortPop}}" @addshort="shortEnd"></short-page>
|
|
<!-- <wechat-page></wechat-page> -->
|
|
<!-- <wechat-page></wechat-page> -->
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -39,10 +39,7 @@ export default {
|
|
},
|
|
},
|
|
onInit() {
|
|
onInit() {
|
|
this.getChapters(this.bid, this.chapter_id)
|
|
this.getChapters(this.bid, this.chapter_id)
|
|
- this.addShelf()
|
|
|
|
- if (this.$app.$def.data.backClickCount === 0) {
|
|
|
|
- this.showShortPop = true;
|
|
|
|
- }
|
|
|
|
|
|
+ this.addShelf();
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
it.getShortCut((value) => {
|
|
it.getShortCut((value) => {
|
|
@@ -55,6 +52,9 @@ export default {
|
|
r.is_on ? '' : postUserShelfBooks({ bid: this.bid })
|
|
r.is_on ? '' : postUserShelfBooks({ bid: this.bid })
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ shortEnd(value) {
|
|
|
|
+ this.showShortPop = !value.detail.installed;
|
|
|
|
+ },
|
|
getChapters(bid, chapter_id) {
|
|
getChapters(bid, chapter_id) {
|
|
getChapters({ bid: bid, chapter_id: chapter_id }).then(r => {
|
|
getChapters({ bid: bid, chapter_id: chapter_id }).then(r => {
|
|
this.content = r.chapter_content.trim().split(/\n/)
|
|
this.content = r.chapter_content.trim().split(/\n/)
|