rename nftbapp

This commit is contained in:
elegant651
2020-03-25 13:49:36 +09:00
parent 5ad3b5d2de
commit 8072a65374
51 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
<template>
<div>
<v-form class="form" ref="form">
<v-text-field
v-model="tokenid"
></v-text-field>
<v-text-field
v-model="auction.auctionTitle"
placeholder="e.g. My NFT"
label="Auction title"
persistent-hint
></v-text-field>
<v-text-field
v-model="auction.price"
placeholder="e.g. 1"
label="Price"
persistent-hint
></v-text-field>
<v-btn @click="createAuction()" outline color="teal">Create Auction</v-btn>
</v-form>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
props: ['tokenid', 'metadata'],
data() {
return {
auction: {
auctionTitle: '',
price: null
},
}
},
computed: {
...mapGetters('wallet', [
'klaytn',
])
},
async mounted() {
},
methods: {
async createAuction() {
if(!this.tokenid) {
alert("Check for tokenId")
return
}
this.klaytn.createAuction(this.tokenid, this.auction.auctionTitle, this.metadata, auction.price, (receipt) => {
alert(`Creation completed...! (#${receipt.blockNumber} ,${receipt.transactionHash})`)
}, error => {
alert(error)
})
}
}
}
</script>