修改
This commit is contained in:
@@ -6,15 +6,12 @@
|
||||
</template>
|
||||
<!-- 内容网格 -->
|
||||
<view class="content-grid">
|
||||
<square-post-card
|
||||
class="grid-item"
|
||||
v-for="sitem in contList"
|
||||
:key="sitem.id"
|
||||
:item="sitem.post"
|
||||
:isshow="false"
|
||||
@view="navToList"
|
||||
@comment="viewPost"
|
||||
@like="viewPost" />
|
||||
<classify-card
|
||||
v-for="item in contList"
|
||||
:key="item.id"
|
||||
:item="item.post"
|
||||
@view="navToList"
|
||||
/>
|
||||
</view>
|
||||
</z-paging>
|
||||
</view>
|
||||
@@ -22,10 +19,10 @@
|
||||
|
||||
<script>
|
||||
import { request,showToast } from '@/api/apiT.js'
|
||||
import SquarePostCard from '@/components/SquarePostCard.vue'
|
||||
import ClassifyCard from '@/components/ClassifyCard.vue'
|
||||
export default {
|
||||
components: {
|
||||
SquarePostCard
|
||||
ClassifyCard
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -87,11 +84,7 @@
|
||||
padding-bottom: 120rpx;
|
||||
}
|
||||
.content-grid{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding: 20rpx;
|
||||
justify-content: space-between;
|
||||
background: #fff;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.grid-item{
|
||||
width: 48%;
|
||||
|
||||
Reference in New Issue
Block a user