Commit 2e673af8 authored by jyx's avatar jyx

代码优化

parent 6bd287bb
......@@ -8,7 +8,7 @@
<view class="title" v-if="!last">
{{item.title}}
</view>
<!-- <view class="c-flex_row c-align_center label-box" v-if="!last">
<view class="c-flex_row c-align_center label-box" v-if="!last">
<slot name="footer">
<view class="label label-color-1" v-if='showCategory'>
{{item.categoryName}}
......@@ -17,7 +17,7 @@
{{label.name}}
</view>
</slot>
</view> -->
</view>
</view>
</template>
......
......@@ -34,7 +34,10 @@
},
onShow() {
// 更新阅读时间统计
this.refreshTimeCount();
let ref = this.$refs.bookList;
if (ref) {
ref.refreshTimeCount();
}
},
onUnload() {
// 移除监听
......@@ -43,7 +46,10 @@
},
methods: {
show() {
let ref = this.$refs.bookList;
if (ref) {
ref.refreshTimeCount();
}
},
hide() {
......
......@@ -127,9 +127,11 @@
let str = ''
for (let i = 0; i < this.dataList.length; i++) {
if (this.dataList[i].isChecked) {
if (this.dataList[i].id) {
str += (this.dataList[i].id + ',')
}
}
}
console.log('AAAA' + str)
collectionBook(false, str, (success, data) => {
......
......@@ -80,7 +80,7 @@
.labelimg {
margin-top: 10rpx;
margin-right: 10rpx;
margin-right: 20rpx;
width: 65rpx;
height: 70rpx;
}
......
......@@ -109,7 +109,9 @@
},
onShow() {
try {
if (this.currentPage == 3) {
if (this.currentPage == 0) {
this.$refs.shelf.show();
} else if (this.currentPage == 3) {
this.$refs.user.show();
}
} catch (e) {
......
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