Commit 84c02b31 authored by hanfeng zhang's avatar hanfeng zhang

321

parent 37d0565a
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class='w-11/12 mx-auto mt-6'> <div class='w-11/12 mx-auto mt-6'>
<div class='collection-list'> <div class='collection-list'>
<div v-if="collectionList.length>0"> <div v-if="collectionList.length>0">
<app-collectionCard :colletionData='i' v-for="i in collectionList" :key="i.id" class='mt-3' @click.native="goDetail(i.id)"></app-collectionCard> <app-collectionCard v-for="i in collectionList" :colletionData='i' :key="i.id" class='mt-3' @click.native="goDetail(i.id)"></app-collectionCard>
</div> </div>
<div v-else class="mt-12"> <div v-else class="mt-12">
<van-empty image="/img/empty.png" description="没有找到更多内容"/> <van-empty image="/img/empty.png" description="没有找到更多内容"/>
...@@ -25,6 +25,8 @@ export default Vue.extend({ ...@@ -25,6 +25,8 @@ export default Vue.extend({
}, },
async created(){ async created(){
this.collectionList = await this.$service.nftService.getCollection() this.collectionList = await this.$service.nftService.getCollection()
console.log(this.collectionList);
}, },
components:{ components:{
'Layout-Child':()=>import('@/layout/Child.vue'), 'Layout-Child':()=>import('@/layout/Child.vue'),
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
</div> </div>
</div> </div>
</van-action-sheet> </van-action-sheet>
<div class="nft-cardBox w-11/12 mx-auto mt-6"> <div class="nft-cardBox w-11/12 mx-auto mt-6">
<div <div
class="nft-card w-full bg-cardBG2 bg-cover bg-no-repeat text-font-white px-5 py-3 rounded-md" class="nft-card w-full bg-cardBG2 bg-cover bg-no-repeat text-font-white px-5 py-3 rounded-md"
......
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