Commit 75db8e75 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 8092322d
...@@ -6,11 +6,10 @@ ...@@ -6,11 +6,10 @@
<view v-for="(item, i) in dataList" :key="i"> <view v-for="(item, i) in dataList" :key="i">
<view style="display: flex;flex-direction: row;justify-content:space-between;margin: 20rpx;"> <view style="display: flex;flex-direction: row;justify-content:space-between;margin: 20rpx;">
<view style="display: flex;align-items: center;" @click="handleInfo(item)"> <view style="display: flex;align-items: center;" @click="handleInfo(item)">
<image class="img" :src="item.coverImage" mode="aspectFill"></image>
<view style="display: flex;flex-direction: column;margin-left: 20rpx;"> <view style="display: flex;flex-direction: column;margin-left: 20rpx;">
<view style="font-size: 30rpx;color: black;">{{item.title}}</view> <view style="font-size: 30rpx;color: black;">{{item.title}}</view>
<view style="font-size: 22rpx;color: gray;margin-top: 16rpx;">阅读至第{{item.seeIndex}}</view> <view style="font-size: 22rpx;color: gray;margin-top: 16rpx;">{{item.summary}}</view>
<view style="font-size: 28rpx;color: black;margin-top: 16rpx;">{{item.author}}</view>
</view> </view>
</view> </view>
<view style="display: flex;align-items: center;margin-right: 8rpx;"> <view style="display: flex;align-items: center;margin-right: 8rpx;">
...@@ -23,7 +22,7 @@ ...@@ -23,7 +22,7 @@
src="../../static/home_collect_img_1.png"></image> src="../../static/home_collect_img_1.png"></image>
<view <view
style="font-size: 22rpx;color: gray;margin-top: 10rpx;display: flex;justify-content: center;"> style="font-size: 22rpx;color: gray;margin-top: 10rpx;display: flex;justify-content: center;">
小说</view> 收藏</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -76,13 +75,12 @@ ...@@ -76,13 +75,12 @@
}); });
}, },
handleInfo(item) { handleInfo(item) {
navigateTo(`/pagesC/ttvideo/ttVideoDetail?data=` + encodeURIComponent(JSON.stringify(item)) +
'&tt_album_id=' + item.douyinAlbumId + '&tt_episode_id=' + item.douyinEpisodeId);
}, },
handleXing(item) { handleXing(item) {
var that = this; var that = this;
//0未收藏,1收藏 //0未收藏,1收藏
if (item.collect == 0) { if (item.isCollect == 0) {
this.post({ this.post({
url: '/vedio/collect', url: '/vedio/collect',
data: { data: {
......
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