11.28
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
import {ref,onMounted,nextTick} from "vue"
|
||||
import {useStore} from '@/store/index.js'
|
||||
import api from "@/api/index"
|
||||
import emptyCard from "@/components/emptyCard.vue"
|
||||
// 生命周期
|
||||
onLoad(() => {
|
||||
getList()
|
||||
@@ -68,7 +69,7 @@
|
||||
|
||||
</view>
|
||||
<view class="list-box">
|
||||
<view class="lb-card" v-for="(item,i) in list" @tap="toDetail(item)">
|
||||
<view v-if="list.length>0" class="lb-card" v-for="(item,i) in list" @tap="toDetail(item)">
|
||||
<view class="lb-left">
|
||||
<image :src="item.cover_img" mode="aspectFill"></image>
|
||||
</view>
|
||||
@@ -77,6 +78,7 @@
|
||||
<view class="lb-content text-ellipsis-1 small-text" v-html="item.content"></view>
|
||||
</view>
|
||||
</view>
|
||||
<emptyCard v-else></emptyCard>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user