Commit c932e64a authored by jyx's avatar jyx

代码优化

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