Commit 2b43b53b authored by mengcuiguang's avatar mengcuiguang

代码优化

parent e3f5ed2d
......@@ -4,7 +4,8 @@
:defaultPageSize="500">
<view style="font-size: 30rpx;font-weight: 777;margin-left: 12rpx;margin-top: 10rpx;">最近阅读</view>
<view v-for="(item, i) in dataList" :key="i">
<view style="display: flex;flex-direction: row;background-color:white;border-radius:10rpx;justify-content:space-between;margin: 20rpx;padding-bottom: 20rpx;">
<view
style="display: flex;flex-direction: row;background-color:white;border-radius:10rpx;justify-content:space-between;margin: 20rpx;padding-bottom: 20rpx;">
<view style="display: flex;align-items: center;" @click="handleInfo(item)">
<view style="display: flex;flex-direction: column;margin-left: 20rpx;margin-top: 20rpx;">
<view style="font-size: 30rpx;color: black;">{{item.title}}</view>
......@@ -75,7 +76,15 @@
});
},
handleInfo(item) {
var bookId = item.id;
uni.navigateTo({
url: `/page-subs/sub_A/book-content/book-content`,
success: (res) => {
res.eventChannel.emit("openBookContentPage", {
bookId
})
}
})
},
handleXing(item) {
var that = this;
......@@ -113,7 +122,6 @@
</script>
<style>
.body {
background-color: whitesmoke;
}
......
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