Commit 05f79193 authored by hanfeng zhang's avatar hanfeng zhang

321

parent 9fcd9963
<template>
<div
class="cell flex justify-between py-3 px-2 overflow-hidden"
class="cell flex justify-between py-3 px-2 text-sm overflow-hidden"
:class="
boxType === 'border'
? ' border-b border-font-gray border-opacity-25'
......@@ -8,7 +8,7 @@
"
>
<div class="left flex items-center flex-row-reverse">
<div class="px-2 text-sm text-font-dark-blue">
<div class="px-2 pr-5 text-xs text-font-dark-blue">
{{ text }}
</div>
<app-icon
......@@ -34,6 +34,7 @@
<input
v-model="inputValue"
type="text"
maxlength="16"
class="bg-transparent"
:placeholder="placeholder"
@input="cellOnChange"
......
......@@ -44,8 +44,8 @@
v-model="createNFT.value_des"
name="des"
id="nft-des"
cols="30"
maxlength="1000"
cols="10"
maxlength="500"
:placeholder="fromText.desPlaceholder"
rows="10"
class="
......@@ -334,6 +334,7 @@ export default Vue.extend({
fileHash: "",
fileName: "",
file: undefined,
coverName: ''
});
},
computed: {
......
......@@ -36,7 +36,7 @@
size="24px"
class="p-5 bg-table-light-blue shadow-md rounded-full"
></app-icon> -->
<img :src="i.icon" alt="">
<img :src="i.icon" alt="" @click="appOnclick(i.action)">
</div>
<div class="text-xs mt-3 text-font-white">
{{ i.text }}
......
......@@ -6,7 +6,9 @@
>
<div class="w-full flex items-start justify-between mb-12">
<div>我的NFT(个)</div>
<div></div>
<div>
<img :src="qrcode" class='w-14'>
</div>
</div>
<div class="flex items-end justify-between flex-wrap">
<div class="text-3xl">{{ balance }}</div>
......@@ -48,6 +50,8 @@ export default Vue.extend({
listData: {},
currentCategory: 1,
balance: 0,
qrcode:'',
srcData:'' as any
};
},
async created() {
......@@ -55,6 +59,10 @@ export default Vue.extend({
},
async mounted() {
let data = await this.$service.nftService.getMyList();
this.qrcode = data.qrCode;
console.log(this.qrcode);
this.balance = data.size;
await this.$service.nftService
.getMyList(this.currentCategory)
......@@ -76,6 +84,7 @@ export default Vue.extend({
this.listData = res.list;
});
},
goDetail(id: any) {
this.$router.push({ name: "Nftdetail", params: { id: id } });
},
......
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