fix
This commit is contained in:
parent
fe14e64573
commit
f540cedd0e
@ -4,19 +4,21 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="piece-left">
|
<div class="piece-left">
|
||||||
<img
|
<img
|
||||||
v-if="piece.c_id"
|
v-if="piece.token_id"
|
||||||
width="214px"
|
|
||||||
:src="
|
|
||||||
require('@/assets/market/piece/details/' + piece.c_id + '_full.png')
|
|
||||||
"
|
|
||||||
alt=""
|
|
||||||
/>
|
|
||||||
<img
|
|
||||||
v-else-if="piece.item_id"
|
|
||||||
width="214px"
|
width="214px"
|
||||||
:src="
|
:src="
|
||||||
require('@/assets/market/piece/details/' +
|
require('@/assets/market/piece/details/' +
|
||||||
piece.detail.item_id +
|
piece.token_id +
|
||||||
|
'_full.png')
|
||||||
|
"
|
||||||
|
alt=""
|
||||||
|
/>
|
||||||
|
<img
|
||||||
|
v-else
|
||||||
|
width="214px"
|
||||||
|
:src="
|
||||||
|
require('@/assets/market/piece/details/' +
|
||||||
|
id +
|
||||||
'_full.png')
|
'_full.png')
|
||||||
"
|
"
|
||||||
alt=""
|
alt=""
|
||||||
@ -24,7 +26,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="piece-right">
|
<div class="piece-right">
|
||||||
<div class="piece-right-top">
|
<div class="piece-right-top">
|
||||||
<!-- <div class="token-lable">TOKEN ID</div> -->
|
<!-- <div class="token-lable">{{ id }}</div> -->
|
||||||
<div class="token-id">#{{ piece.token_id }}</div>
|
<div class="token-id">#{{ piece.token_id }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="piece-right-bottom">
|
<div class="piece-right-bottom">
|
||||||
@ -127,10 +129,15 @@ export default {
|
|||||||
components: {},
|
components: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
piece: "",
|
piece: {
|
||||||
|
detail: {
|
||||||
|
item_id: null,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
piecedata: {},
|
||||||
loadingInstance: null,
|
loadingInstance: null,
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
visible:this.isShow,
|
visible: this.isShow,
|
||||||
chainManager: new ChainManager(),
|
chainManager: new ChainManager(),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -139,7 +146,20 @@ export default {
|
|||||||
this.visible = val;
|
this.visible = val;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
console.log(this.piece.detail.item_id, "this.piece.detail.item_id");
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
id() {
|
||||||
|
if (this.piece?.detail?.item_id) {
|
||||||
|
return this.piece.detail.item_id;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// id(){
|
||||||
|
// if(this.data.info.item_id){
|
||||||
|
// return this.data.info.item_id
|
||||||
|
// }
|
||||||
|
// },
|
||||||
time() {
|
time() {
|
||||||
if (this.piece.modifytime) {
|
if (this.piece.modifytime) {
|
||||||
return formatSelect(this.piece.modifytime);
|
return formatSelect(this.piece.modifytime);
|
||||||
@ -169,8 +189,12 @@ export default {
|
|||||||
return formatPrice(price, decimals, fixed);
|
return formatPrice(price, decimals, fixed);
|
||||||
},
|
},
|
||||||
init(data) {
|
init(data) {
|
||||||
|
// this.$nextTick(() => {
|
||||||
|
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
this.piece = data;
|
this.piece = data;
|
||||||
|
// this.piecedata = data;
|
||||||
|
// });
|
||||||
},
|
},
|
||||||
handPutShow() {
|
handPutShow() {
|
||||||
this.$emit("handPutShow", this.piece);
|
this.$emit("handPutShow", this.piece);
|
||||||
@ -197,7 +221,7 @@ export default {
|
|||||||
if (nftres.status == true) {
|
if (nftres.status == true) {
|
||||||
this.$emit("handMessage", 1);
|
this.$emit("handMessage", 1);
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$emit("handMessageHide");
|
this.$emit("handMessageHide");
|
||||||
this.$emit("closeTip", false);
|
this.$emit("closeTip", false);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -81,6 +81,7 @@
|
|||||||
@showTip="showTip"
|
@showTip="showTip"
|
||||||
:isType="isType"
|
:isType="isType"
|
||||||
:isShow="isShow"
|
:isShow="isShow"
|
||||||
|
v-if="isShow"
|
||||||
:isPiecePut="isPiecePut"
|
:isPiecePut="isPiecePut"
|
||||||
:isBuy="isBuy"
|
:isBuy="isBuy"
|
||||||
@handBuyShow="handBuyShow"
|
@handBuyShow="handBuyShow"
|
||||||
@ -88,7 +89,7 @@
|
|||||||
@handPutShow="handPutShow"
|
@handPutShow="handPutShow"
|
||||||
@handPutHide="handPutHide"
|
@handPutHide="handPutHide"
|
||||||
@handMessage="handMessage"
|
@handMessage="handMessage"
|
||||||
@handMessageHide="handMessageHide"
|
@handMessageHide="handMessageHide"
|
||||||
></PieceDialog>
|
></PieceDialog>
|
||||||
<TheSell
|
<TheSell
|
||||||
ref="selldialog"
|
ref="selldialog"
|
||||||
@ -151,10 +152,12 @@ export default {
|
|||||||
return formatPrice(price, decimals, fixed);
|
return formatPrice(price, decimals, fixed);
|
||||||
},
|
},
|
||||||
showTip(data) {
|
showTip(data) {
|
||||||
this.isShow = true;
|
if (data.detail.item_id) {
|
||||||
this.$nextTick(() => {
|
this.isShow = true;
|
||||||
this.$refs.dialog.init(data);
|
this.$nextTick(() => {
|
||||||
});
|
this.$refs.dialog.init(data);
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handPutShow(piece) {
|
handPutShow(piece) {
|
||||||
this.isPiecePut = true;
|
this.isPiecePut = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user