This commit is contained in:
Gdpao
2020-08-06 20:42:03 +08:00
parent 201f858833
commit 090b7cc753
22 changed files with 209 additions and 184 deletions

View File

@@ -3,7 +3,7 @@
<view class="container">
<view class="item-box" v-for="(item, index) in articleList" :key="index" @click="toDetailsPage(item.article_id)">
<view class="video-item" v-if="item">
<image class="head" :src="item.article_pic" v-if="item.type == 1"></image>
<image class="head" :src="item.article_pic" mode="scaleToFill" v-if="item.type == 1"></image>
<view class="header_fist" v-else>
<view class="backes"></view>
<image class="head" :src="item.article_pic"></image>
@@ -44,11 +44,11 @@ export default {
}
},
onShow() {
this.articleCollectList();
this.articleCollectList();
},
// 下拉刷新
onPullDownRefresh() {
this.articleCollectList();
this.articleCollectList();
},
methods: {
showAction(item) {
@@ -93,16 +93,15 @@ export default {
margin-right: 20rpx;
}
.video-item{
height: 540rpx;
width: 330rpx;
height: 510rpx;
margin-top: 20rpx;
width: 335rpx;
box-shadow:0 3rpx 7rpx 0 rgba(153, 153, 153, 0.35);
padding-bottom: 20rpx;
border-radius: 20rpx;
overflow: hidden;
box-shadow:0 3rpx 7rpx 0 rgba(153, 153, 153, 0.35);
.head{
width: 100%;
height: 334rpx;
width: 330rpx;
height: 330rpx !important;
}
.title{
margin:0 auto;