Commit 60e065c0 authored by mengcuiguang's avatar mengcuiguang

Merge branch 'dev_yixiangxiaoshuoge_dy_240729' of...

Merge branch 'dev_yixiangxiaoshuoge_dy_240729' of http://gitlab.mints-id.com/android/uniapp_vedio into dev_yixiangxiaoshuoge_dy_240729
parents 91253ede 1ab1282c
...@@ -6,10 +6,12 @@ ...@@ -6,10 +6,12 @@
99%读过这本书的人还在读 99%读过这本书的人还在读
</view> </view>
<view class="book-list-item" v-for='(item, index) in dataList' :key='index' :item='item' @click="tapItem(item)"> <view class="book-list-item" v-for='(item, index) in dataList' :key='index' :item='item'
@click="tapItem(item)">
<view class="cover-box item"> <view class="cover-box item">
<image v-if="item.avatar===''" class="cover" src="/static/images/logo.png" mode="aspectFill"></image> <image v-if="item.avatar===''" class="cover" src="/static/images/logo.png" mode="aspectFill">
<image v-else class="cover" :src="item.avatar" mode="aspectFill" ></image> </image>
<image v-else class="cover" :src="item.avatar" mode="aspectFill"></image>
</view> </view>
<view class="c-flex_column"> <view class="c-flex_column">
<view class="c-flex_row c-justify_between row"> <view class="c-flex_row c-justify_between row">
...@@ -26,7 +28,8 @@ ...@@ -26,7 +28,8 @@
</view> </view>
<view class="c-flex_row c-align_center label-box row"> <view class="c-flex_row c-align_center label-box row">
<slot name="footer"> <slot name="footer">
<view class="label label-color-1" v-if="item.categoryName!=null&&item.categoryName!=''"> <view class="label label-color-1"
v-if="item.categoryName!=null&&item.categoryName!=''">
{{item.categoryName}} {{item.categoryName}}
</view> </view>
<view class="label label-color-2" v-for='(label, labelIndex) in item.tagList' <view class="label label-color-2" v-for='(label, labelIndex) in item.tagList'
...@@ -39,7 +42,7 @@ ...@@ -39,7 +42,7 @@
</view> </view>
</view> </view>
<view style="display: flex;margin: auto;width: 200rpx;"> <view style="display: flex;margin: auto;width: 200rpx;">
<button class="btn2" >去阅读</button> <button class="btn2">去阅读</button>
</view> </view>
</view> </view>
</view> </view>
...@@ -100,8 +103,7 @@ ...@@ -100,8 +103,7 @@
} }
} }
}, },
onUnload() { onUnload() {},
},
mounted() { mounted() {
this.requestPackData(); this.requestPackData();
}, },
...@@ -117,7 +119,7 @@ ...@@ -117,7 +119,7 @@
this.showPop = false; this.showPop = false;
}, },
requestPackData() { requestPackData() {
getBookRecommendData(this.bookId,(success, data) => { getBookRecommendData(this.bookId, (success, data) => {
if (success) { if (success) {
this.dataList = data.records; this.dataList = data.records;
} }
...@@ -128,7 +130,9 @@ ...@@ -128,7 +130,9 @@
uni.navigateBack({ uni.navigateBack({
delta: 2 delta: 2
}); });
gotoBookContentPage(item.id); setTimeout(() => {
gotoBookContentPage(item.id, item.shortis);
}, 1000)
} }
} }
} }
...@@ -232,11 +236,13 @@ ...@@ -232,11 +236,13 @@
} }
} }
} }
.book-list-item { .book-list-item {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
padding-top: 14rpx; padding-top: 14rpx;
padding-bottom: 14rpx; padding-bottom: 14rpx;
.row { .row {
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
......
...@@ -190,9 +190,7 @@ ...@@ -190,9 +190,7 @@
this.$set(this.bookData, "isUnlock", 1); this.$set(this.bookData, "isUnlock", 1);
this.$set(this.bookData, "freeNum", this.bookData.articleChapterList.length); this.$set(this.bookData, "freeNum", this.bookData.articleChapterList.length);
this.$nextTick(() => {
this.$refs.content.reloadChapterinfoData() this.$refs.content.reloadChapterinfoData()
})
}, },
// 文章数据刷新 // 文章数据刷新
refreshBookData(bookId) { refreshBookData(bookId) {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<view class="html-content" :style="{'background-color':background}"> <view class="html-content" :style="{'background-color':background}">
<view class="loading" v-if="size<1" :style="{'font-size':fontSize+'px'}"> 正在加载中... </view> <view class="loading" v-if="size<1" :style="{'font-size':fontSize+'px'}"> 正在加载中... </view>
<swiper class="center" :current="step" :disable-programmatic-animation='true' :circular='false' <swiper class="center" :current="step" :disable-programmatic-animation='true' :circular='true'
:indicator-dots="false" :autoplay="false" :interval="3000" :duration="500" @change="handleChange"> :indicator-dots="false" :autoplay="false" :interval="3000" :duration="500" @change="handleChange">
<swiper-item v-for="(item,index) in size" :key='index'> <swiper-item v-for="(item,index) in size" :key='index'>
<view class="article" v-if="catalogue<=detail.freeNum" <view class="article" v-if="catalogue<=detail.freeNum"
...@@ -414,7 +414,7 @@ ...@@ -414,7 +414,7 @@
left: 0; left: 0;
bottom: 0; bottom: 0;
box-sizing: border-box; box-sizing: border-box;
padding: 0 40rpx; // padding: 0 40rpx;
.loading { .loading {
position: absolute; position: absolute;
...@@ -432,6 +432,7 @@ ...@@ -432,6 +432,7 @@
overflow-y: hidden; overflow-y: hidden;
.article { .article {
margin: 0 40rpx;
box-sizing: border-box; box-sizing: border-box;
font-weight: 400; font-weight: 400;
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif; font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
......
...@@ -128,7 +128,9 @@ ...@@ -128,7 +128,9 @@
uni.navigateBack({ uni.navigateBack({
delta: 2 delta: 2
}); });
setTimeout(() => {
gotoBookContentPage(item.id, item.shortis); gotoBookContentPage(item.id, item.shortis);
}, 1000)
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment