Commit c932e64a authored by jyx's avatar jyx

代码优化

parent 85685ebc
......@@ -5,7 +5,7 @@
<image class="cover" :src="item.avatar" mode="aspectFill"></image>
</view>
<view class="c-flex_column">
<view class="c-flex_row c-justify_between row">
<view class="c-flex_row row" style="justify-content: space-between;padding-left:20rpx;">
<view class="c-flex_column c-justify_center item">
<view class="title">
{{item.title}}
......
......@@ -4,14 +4,14 @@
:param="requestParam" @change='changeData' method="POST">
<book-list-item v-for='(item, index) in dataList' :key='index' :item='item'
@tapItem='tapItem($event, index)' @close='tapClose($event, index)'>
<template v-slot:footer>
<!-- <template v-slot:footer>
<view class="c-flex_row c-aligns_center">
<uni-icons type='calendar' size="16" color="#999"></uni-icons>
<view class="info">
{{item.lastReadTimeDesc}} 前阅读过
</view>
</view>
</template>
</template> -->
</book-list-item>
</c-list>
</view>
......
......@@ -266,6 +266,9 @@
}, 1000)
})
},
paySuccess() {
this.$set(this.bookData, "isUnlock", true);
},
// 点击底部按钮
tapBottomItem(e) {
let flag = e.detail.flag;
......
......@@ -49,8 +49,8 @@
},
requestUrl: function() {
return !this.searchType || this.searchType.value == ENUM_SEARCH_TYPE.WAREHOUSE.value ?
"/book/articleList/" :
"/book/collect/"
"/book/articleList" :
"/book/collectList"
},
requestParam: function() {
return {
......@@ -74,7 +74,7 @@
}
},
changeData(e) {
this.dataList = e.detail.data.map(item => {
this.dataList = e.detail.data.list.map(item => {
return new WarehouseBookItem(item)
})
},
......
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