|
@@ -1,50 +1,79 @@
|
|
|
+<import name="short-page" src="../../components/short/index.ux"></import>
|
|
|
<template>
|
|
|
- <div class="reader-wrap">
|
|
|
- <div class="reader-title">
|
|
|
- <text class="title">第一章 冲头一次吧</text>
|
|
|
- <!-- <text class="add-shelf" @click="addShelf">加入书架</text> -->
|
|
|
- </div>
|
|
|
- <div class="reader-content">
|
|
|
- <text class="chapter-text">一念的执着,倾世的阑珊。——笛音</text>
|
|
|
- <text class="chapter-text">H市</text>
|
|
|
- <text class="chapter-text">晨曦的阳光透过落地窗洒在地板上,卧室内,一室的凌乱,空气中还弥漫着欢-爱之后残余的气息,蚕丝被盖住了床上女人的娇躯,外露的肩头上有着密密匝匝的吻痕,绯色娇嫩美丽的脸蛋上还泛着红晕,此时美丽的容颜上呈现出一分妩媚性感。</text>
|
|
|
- <text class="chapter-text">但仔细一看,还能够看到女人眼角滑落过泪水的痕迹。</text>
|
|
|
- <text class="chapter-text">浴室传出哗啦啦的水声,惊扰了正在睡梦中的女人,余阑珊漂亮的眉心紧拧着,缓缓睁开了眼睛,刺眼的光芒直射在她的眼球上,让她抬手挡了一下从窗外照射进来的光线。</text>
|
|
|
- <text class="chapter-text">身下的酸痛,让她脑海中的记忆纷至沓来。</text>
|
|
|
- <text class="chapter-text">“顾先生,我们约定的期限到了。”阑珊的声音很轻很轻,轻到她自己都差点没有听清。</text>
|
|
|
- <text class="chapter-text">男人一双深邃犀利的眸子紧锁在女人垂下脑袋的容颜上,从的视角看不全她的面部,视线落在她光洁的额头、长卷翘的睫毛上,瞬间,一股薄怒从心底滋生,伸手钳住女孩的下颌,逼迫她看着自己,阑珊的下颌被他捏的生疼,眼泪差点奔泻出去,紧咬着自己的唇瓣,不让在自己眼眶中盘旋的泪水滑落。</text>
|
|
|
- <text class="chapter-text">“再说一遍?”顾念琛低沉带着盛怒的声音在余阑珊的耳边响起。</text>
|
|
|
- <text class="chapter-text">余阑珊一双染上泪花的水眸对上顾念琛那双淡漠清冷的眸子,艰难的道出:“顾先生,我们约定的期限到了。”</text>
|
|
|
- <text class="chapter-text">顾念琛带着薄怒连点了几个头,余阑珊以为他同意了,正准备说什么。</text>
|
|
|
- <text class="chapter-text">便听到顾念琛狠绝伤人的话语从她的头顶砸下来,重重砸在她的心窝上,“余阑珊,很好,既然要离婚,浪费了你三年的青春,今晚我还给你。”</text>
|
|
|
- <text class="chapter-text">余阑珊惊愕的看着顾念琛那双波澜不惊的眸子,没有明白他话中的意思。</text>
|
|
|
- <text class="chapter-text">还在错愕之中的人,被嘴唇上传来的疼痛惊醒,熟悉的气息扑鼻而来,看着他近在咫尺的俊脸,余阑珊瞳孔放大,伸手推着身前的人,手却被他一把握住高举过头顶,霸道带着惩罚的吻肆意的掠夺着她的唇。</text>
|
|
|
- </div>
|
|
|
- <div class="reader-operator">
|
|
|
- <text class="operator prev" @click="getPrevChapter">上一章</text>
|
|
|
- <text class="operator catalog" @click="toCatalog">目录</text>
|
|
|
- <text class="operator next" @click="getNextChapter">下一章</text>
|
|
|
- </div>
|
|
|
+ <div id="reader-content">
|
|
|
+ <list class="reader-wrap" id='list'>
|
|
|
+ <list-item type='title' class="reader-title">
|
|
|
+ <text class="title">{{bookinfo.chapter_name}}</text>
|
|
|
+ <!-- <text class="add-shelf" @click="addShelf">加入书架</text> -->
|
|
|
+ </list-item>
|
|
|
+ <list-item type='content' class="reader-content">
|
|
|
+ <text class="chapter-text" for='content'>{{$item}}</text>
|
|
|
+ </list-item>
|
|
|
+ <list-item type='button' class="reader-operator">
|
|
|
+ <text class="operator prev" @click="getPrevChapter">上一章</text>
|
|
|
+ <text class="operator catalog" @click="toCatalog">目录</text>
|
|
|
+ <text class="operator next" @click="getNextChapter">下一章</text>
|
|
|
+ </list-item>
|
|
|
+ </list>
|
|
|
+ <short-page if="{{showShortPop}}"></short-page>
|
|
|
</div>
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import router from "@system.router";
|
|
|
+import { getChapters, getIsonshelf, postUserShelfBooks } from "../../api";
|
|
|
|
|
|
export default {
|
|
|
+ protected: {
|
|
|
+ bid: '',
|
|
|
+ chapter_id: ''
|
|
|
+ },
|
|
|
+ private: {
|
|
|
+ bookinfo: {},
|
|
|
+ content: [],
|
|
|
+ showShortPop: false
|
|
|
+ },
|
|
|
+ onInit() {
|
|
|
+ getChapters({ bid: this.bid, chapter_id: this.chapter_id }).then(r => {
|
|
|
+ this.content = r.chapter_content.trim().split(/\n/)
|
|
|
+ this.bookinfo = r
|
|
|
+ })
|
|
|
+ this.addShelf();
|
|
|
+ if (this.$app.$def.data.backClickCount === 0) {
|
|
|
+ this.showShortPop = true;
|
|
|
+ }
|
|
|
+ },
|
|
|
addShelf() {
|
|
|
console.log("add shelf");
|
|
|
+ getIsonshelf({ bid: this.bid }).then(r => {
|
|
|
+ r.is_on ? '' : postUserShelfBooks({ bid: this.bid })
|
|
|
+ })
|
|
|
},
|
|
|
toCatalog() {
|
|
|
router.push({
|
|
|
- uri: "/views/Catalog"
|
|
|
+ uri: "/views/Catalog",
|
|
|
+ params: {
|
|
|
+ chapter_sequence: this.bookinfo.chapter_sequence,
|
|
|
+ bid: this.bid
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
getPrevChapter() {
|
|
|
console.log("get prev chapter");
|
|
|
+ getChapters({ bid: this.bookinfo.bid, chapter_id: this.bookinfo.prev_cid }).then(r => {
|
|
|
+ this.content = r.chapter_content.trim().split(/\n/)
|
|
|
+ this.bookinfo = r
|
|
|
+ this.$element('list').scrollTo({ index: 0 })
|
|
|
+ })
|
|
|
},
|
|
|
getNextChapter() {
|
|
|
console.log("get next chapter");
|
|
|
+ getChapters({ bid: this.bookinfo.bid, chapter_id: this.bookinfo.next_cid }).then(r => {
|
|
|
+ this.content = r.chapter_content.trim().split(/\n/)
|
|
|
+ this.bookinfo = r
|
|
|
+ this.$element('list').scrollTo({ index: 0 })
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
</script>
|