Commit 0f90c789 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 79d303a5
Pipeline #414 failed with stages
<template> <template>
<view class="body"> <view class="body">
首页 <scroll-view scroll-y style="height: 100%;">
<view class="content">
<image style="border-radius:10rpx; width: 100%;height: 360rpx;"
src="https://content.volccdn.com/obj/feedcoop/skit/0641.jpg" mode="scaleToFill"></image>
<view
style="font-size: 30rpx;font-weight: 777;margin-top: 20rpx;margin-bottom: 16rpx;margin-left: 40rpx;">
热门功能</view>
<view
style="display: flex;flex-direction: row;width: 100%;justify-content:space-between;height: 300rpx;">
<image style="border-radius:10rpx; width: 50%;height: 300rpx;"
src="https://content.volccdn.com/obj/feedcoop/skit/0641.jpg" mode="scaleToFill"></image>
<view
style="display: flex;flex-direction: column;width: 50%;justify-content:space-between;margin-left: 10rpx;">
<image style="border-radius:10rpx; width: 100%;height: 150rpx;"
src="https://content.volccdn.com/obj/feedcoop/skit/0641.jpg" mode="scaleToFill"></image>
<image style="border-radius:10rpx; width: 50%;height: 150rpx;margin-top: 10rpx;"
src="https://content.volccdn.com/obj/feedcoop/skit/0641.jpg" mode="scaleToFill"></image>
</view>
</view>
<view
style="font-size: 30rpx;font-weight: 777;margin-top: 80rpx;margin-bottom: 16rpx;margin-left: 40rpx;">
其他</view>
<image style="border-radius:10rpx; width: 100%;height: 130rpx;"
src="https://content.volccdn.com/obj/feedcoop/skit/0641.jpg" mode="scaleToFill"></image>
</view>
</scroll-view>
</view> </view>
</template> </template>
<script> <script>
...@@ -40,16 +64,13 @@ ...@@ -40,16 +64,13 @@
success: ({ success: ({
data data
}) => { }) => {
this.bannerList = data.list; // this.bannerList = data.list;
} }
}); });
}, },
hide() { hide() {
},
handleBottomPlay(item) {
navigateTo(`/pagesC/video/videoDetail?data=` + encodeURIComponent(JSON.stringify(item)));
} }
} }
}; };
...@@ -58,22 +79,5 @@ ...@@ -58,22 +79,5 @@
<style lang="scss"> <style lang="scss">
.body { .body {
background-color: whitesmoke; background-color: whitesmoke;
position: relative;
}
.item-wrap {
width: 96%;
border-radius: 10rpx;
background-color: #fff;
break-inside: avoid;
margin-bottom: 20rpx;
height: 490rpx;
}
.img {
position: relative;
border-radius: 10rpx;
width: 100%;
height: 390rpx;
} }
</style> </style>
\ No newline at end of file
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