nieyuge 2 years ago
parent
commit
9cd8f8393a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/view/nft/card.vue

+ 5 - 1
src/view/nft/card.vue

@@ -13,7 +13,7 @@
         <div class="content">
             <img :src="saleData.windowImagePath" />
         </div>
-        <div class="buy">
+        <div class="buy" @click="buy">
             <button>Buy NFT</button>
         </div>
     </div>
@@ -65,6 +65,10 @@ const share = () => {
     })
 }
 
+const buy = () => {
+    console.log(1111, saleData.value.nftProjectId)
+}
+
 onBeforeMount(() => {
     getSaleInfo()
 })