This commit is contained in:
浅念
2025-12-12 18:34:44 +08:00
parent 2c10e621aa
commit 5112803313
49 changed files with 3677 additions and 2571 deletions
+9 -16
View File
@@ -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%;