fix
This commit is contained in:
parent
a734659ede
commit
942cd8610b
@ -10,8 +10,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="userinfo">
|
<div class="userinfo">
|
||||||
<div>History:</div>
|
<!-- <div>History:</div>
|
||||||
<div>#3006985843100103 (NFTLink)</div>
|
<div>#3006985843100103 (NFTLink)</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -191,6 +191,15 @@ export default {
|
|||||||
this.$emit("getMarketNftList");
|
this.$emit("getMarketNftList");
|
||||||
},1000)
|
},1000)
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
}else{
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$emit("handMessageHide");
|
||||||
|
this.closeTip();
|
||||||
|
this.$emit("closeTip",false);
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.$emit("getMarketNftList");
|
||||||
|
},1000)
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(nftres, "beginBuy");
|
console.log(nftres, "beginBuy");
|
||||||
|
@ -76,8 +76,8 @@
|
|||||||
<div>{{ time }} UTC</div>
|
<div>{{ time }} UTC</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="owner-history">
|
<div class="owner-history">
|
||||||
<div>History :</div>
|
<!-- <div>History :</div>
|
||||||
<div>#3006985843100103 (NFTLink)</div>
|
<div>#3006985843100103 (NFTLink)</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -208,6 +208,13 @@ export default {
|
|||||||
if (nftres.status == true) {
|
if (nftres.status == true) {
|
||||||
this.$emit("handMessage", 1);
|
this.$emit("handMessage", 1);
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$emit("handMessageHide");
|
||||||
|
this.$emit("on-close");
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$emit("getMarketNftList");
|
||||||
|
}, 1000);
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log("query order status error", err);
|
console.log("query order status error", err);
|
||||||
|
@ -352,6 +352,13 @@ export default {
|
|||||||
|
|
||||||
this.$emit("handMessage", 1);
|
this.$emit("handMessage", 1);
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$emit("handMessageHide");
|
||||||
|
this.$emit("on-close");
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$emit("getMarketNftList");
|
||||||
|
}, 1000);
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
<div class="hill">
|
<div class="hill">
|
||||||
<div class="hill-content">
|
<div class="hill-content">
|
||||||
<div class="hill-name">
|
<div class="hill-name">
|
||||||
{{ hero.c_name ? hero.c_name : hero.detail.hero_name
|
{{ hero.c_name ? hero.c_name : hero.detail.hero_name }}
|
||||||
}}
|
|
||||||
<!-- <span class="name">Name</span> -->
|
<!-- <span class="name">Name</span> -->
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@ -349,16 +348,16 @@ export default {
|
|||||||
isTabs: false,
|
isTabs: false,
|
||||||
type: "hero",
|
type: "hero",
|
||||||
orderId: 6,
|
orderId: 6,
|
||||||
visible:this.dialogVisible,
|
visible: this.dialogVisible,
|
||||||
loadingInstance: null,
|
loadingInstance: null,
|
||||||
chainManager: new ChainManager(),
|
chainManager: new ChainManager(),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch:{
|
watch: {
|
||||||
dialogVisible(val){
|
dialogVisible(val) {
|
||||||
this.visible = val
|
this.visible = val;
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeMyself(hide) {
|
closeMyself(hide) {
|
||||||
this.$emit("on-close", hide);
|
this.$emit("on-close", hide);
|
||||||
@ -412,10 +411,16 @@ export default {
|
|||||||
CONTRACT_ADDRESS[AppModule.chainId].marketDddress
|
CONTRACT_ADDRESS[AppModule.chainId].marketDddress
|
||||||
);
|
);
|
||||||
console.log(nftres, "beginSell");
|
console.log(nftres, "beginSell");
|
||||||
if (nftres.status == true) {
|
if (nftres.status == true) {
|
||||||
this.$emit("handMessage", 1);
|
this.$emit("handMessage", 1);
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$emit("handMessageHide");
|
||||||
|
this.$emit("on-close");
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$emit("getMarketNftList");
|
||||||
|
}, 1000);
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
@ -540,7 +545,7 @@ export default {
|
|||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
.token-id {
|
.token-id {
|
||||||
margin-top: 36px;
|
margin-top: 36px;
|
||||||
width: 345px;
|
width: 345px;
|
||||||
height: 41px;
|
height: 41px;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
@ -654,7 +659,7 @@ export default {
|
|||||||
.price-number {
|
.price-number {
|
||||||
line-height: 89px;
|
line-height: 89px;
|
||||||
margin-left: 78px;
|
margin-left: 78px;
|
||||||
margin-right:10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mynft {
|
.mynft {
|
||||||
|
@ -64,8 +64,8 @@
|
|||||||
<div>{{ time }} UTC</div>
|
<div>{{ time }} UTC</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div class="owner-history">
|
<div class="owner-history">
|
||||||
<div>History :</div>
|
<!-- <div>History :</div>
|
||||||
<div>#3006985843100103 (NFTLink)</div>
|
<div>#3006985843100103 (NFTLink)</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -197,6 +197,13 @@ export default {
|
|||||||
if (nftres.status == true) {
|
if (nftres.status == true) {
|
||||||
this.$emit("handMessage", 1);
|
this.$emit("handMessage", 1);
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$emit("handMessageHide");
|
||||||
|
this.$emit("closeTip", false);
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$emit("getMarketNftList");
|
||||||
|
}, 1000);
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
|
@ -178,7 +178,16 @@ export default {
|
|||||||
if (nftres.status == true) {
|
if (nftres.status == true) {
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
this.$emit("handMessage", 1);
|
this.$emit("handMessage", 1);
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$emit("handMessageHide");
|
||||||
this.closeTip();
|
this.closeTip();
|
||||||
|
this.type == "piece"
|
||||||
|
? this.$emit("closeTip", false)
|
||||||
|
: this.$emit("on-close");
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$emit("getMarketNftList");
|
||||||
|
}, 1000);
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
@ -285,7 +294,17 @@ export default {
|
|||||||
if (nftres.status == true) {
|
if (nftres.status == true) {
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
this.$emit("handMessage", 1);
|
this.$emit("handMessage", 1);
|
||||||
this.closeTip();
|
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$emit("handMessageHide");
|
||||||
|
this.closeTip();
|
||||||
|
this.type == "piece"
|
||||||
|
? this.$emit("closeTip", false)
|
||||||
|
: this.$emit("on-close");
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$emit("getMarketNftList");
|
||||||
|
}, 1000);
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
console.log(nftres, "beginSell");
|
console.log(nftres, "beginSell");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
@ -67,6 +67,7 @@
|
|||||||
@handBuyShow="handBuyShow"
|
@handBuyShow="handBuyShow"
|
||||||
@handBuyHide="handBuyHide"
|
@handBuyHide="handBuyHide"
|
||||||
@handMessage="handMessage"
|
@handMessage="handMessage"
|
||||||
|
@handMessageHide="handMessageHide"
|
||||||
:data="chip"
|
:data="chip"
|
||||||
:isType="isType"
|
:isType="isType"
|
||||||
:isPiecePut="isPiecePut"
|
:isPiecePut="isPiecePut"
|
||||||
@ -87,6 +88,9 @@
|
|||||||
:data="chip"
|
:data="chip"
|
||||||
v-if="currencyTypeList"
|
v-if="currencyTypeList"
|
||||||
:currencyTypeList="currencyTypeList"
|
:currencyTypeList="currencyTypeList"
|
||||||
|
@on-close="chipDialoghide"
|
||||||
|
@getMarketNftList="getMarketNftList"
|
||||||
|
@handMessageHide="handMessageHide"
|
||||||
:isPiecePut="isPiecePut"
|
:isPiecePut="isPiecePut"
|
||||||
@handMessage="handMessage"
|
@handMessage="handMessage"
|
||||||
@handPutShow="handPutShow"
|
@handPutShow="handPutShow"
|
||||||
|
@ -105,6 +105,7 @@
|
|||||||
:isBuy="isBuy"
|
:isBuy="isBuy"
|
||||||
@handBuyShow="handBuyShow"
|
@handBuyShow="handBuyShow"
|
||||||
@handBuyHide="handBuyHide"
|
@handBuyHide="handBuyHide"
|
||||||
|
@handMessageHide="handMessageHide"
|
||||||
@handMessage="handMessage"
|
@handMessage="handMessage"
|
||||||
@closeTip="closeTip"
|
@closeTip="closeTip"
|
||||||
@showTip="showTip"
|
@showTip="showTip"
|
||||||
@ -120,9 +121,12 @@
|
|||||||
:data="data"
|
:data="data"
|
||||||
v-if="currencyTypeList"
|
v-if="currencyTypeList"
|
||||||
:currencyTypeList="currencyTypeList"
|
:currencyTypeList="currencyTypeList"
|
||||||
|
@getMarketNftList="getMarketNftList"
|
||||||
@handPutShow="handPutShow"
|
@handPutShow="handPutShow"
|
||||||
@handPutHide="handPutHide"
|
@handPutHide="handPutHide"
|
||||||
|
@on-close="handDialoghide"
|
||||||
@handMessage="handMessage"
|
@handMessage="handMessage"
|
||||||
|
@handMessageHide="handMessageHide"
|
||||||
></TheSellDialog>
|
></TheSellDialog>
|
||||||
<HeroBuyDialog
|
<HeroBuyDialog
|
||||||
:type="type"
|
:type="type"
|
||||||
@ -233,17 +237,16 @@ export default class HeroNft extends Vue {
|
|||||||
handDialoghide(data: boolean) {
|
handDialoghide(data: boolean) {
|
||||||
this.dialogVisible = data;
|
this.dialogVisible = data;
|
||||||
}
|
}
|
||||||
getMarketNftList(){
|
getMarketNftList() {
|
||||||
this.$emit('getMarketNftList')
|
this.$emit("getMarketNftList");
|
||||||
}
|
}
|
||||||
handPutShow() {
|
handPutShow() {
|
||||||
this.isPiecePut = true;
|
this.isPiecePut = true;
|
||||||
}
|
}
|
||||||
handPutHide() {
|
handPutHide() {
|
||||||
console.log('handPutHide,策划功能成功');
|
console.log("handPutHide,策划功能成功");
|
||||||
|
|
||||||
this.isPiecePut = false;
|
this.isPiecePut = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
handBuyShow() {
|
handBuyShow() {
|
||||||
this.isBuy = true;
|
this.isBuy = true;
|
||||||
|
@ -88,6 +88,7 @@
|
|||||||
@handPutShow="handPutShow"
|
@handPutShow="handPutShow"
|
||||||
@handPutHide="handPutHide"
|
@handPutHide="handPutHide"
|
||||||
@handMessage="handMessage"
|
@handMessage="handMessage"
|
||||||
|
@handMessageHide="handMessageHide"
|
||||||
></PieceDialog>
|
></PieceDialog>
|
||||||
<TheSell
|
<TheSell
|
||||||
ref="selldialog"
|
ref="selldialog"
|
||||||
@ -95,7 +96,10 @@
|
|||||||
:isPiecePut="isPiecePut"
|
:isPiecePut="isPiecePut"
|
||||||
v-if="isType == 'mynft' && currencyTypeList.length > 0"
|
v-if="isType == 'mynft' && currencyTypeList.length > 0"
|
||||||
:currencyTypeList="currencyTypeList"
|
:currencyTypeList="currencyTypeList"
|
||||||
|
@closeTip="closeTip"
|
||||||
|
@getMarketNftList="getMarketNftList"
|
||||||
@handMessage="handMessage"
|
@handMessage="handMessage"
|
||||||
|
@handMessageHide="handMessageHide"
|
||||||
@handPutShow="handPutShow"
|
@handPutShow="handPutShow"
|
||||||
@handPutHide="handPutHide"
|
@handPutHide="handPutHide"
|
||||||
/>
|
/>
|
||||||
@ -104,7 +108,10 @@
|
|||||||
ref="buydialog"
|
ref="buydialog"
|
||||||
:isBuy="isBuy"
|
:isBuy="isBuy"
|
||||||
v-if="isType !== 'mynft'"
|
v-if="isType !== 'mynft'"
|
||||||
|
@closeTip="closeTip"
|
||||||
|
@getMarketNftList="getMarketNftList"
|
||||||
@handMessage="handMessage"
|
@handMessage="handMessage"
|
||||||
|
@handMessageHide="handMessageHide"
|
||||||
@handBuyShow="handBuyShow"
|
@handBuyShow="handBuyShow"
|
||||||
@handBuyHide="handBuyHide"
|
@handBuyHide="handBuyHide"
|
||||||
></ChipBuyDialog>
|
></ChipBuyDialog>
|
||||||
@ -155,7 +162,9 @@ export default {
|
|||||||
this.$refs.selldialog.init(piece);
|
this.$refs.selldialog.init(piece);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
getMarketNftList() {
|
||||||
|
this.$emit("getMarketNftList");
|
||||||
|
},
|
||||||
handPutHide() {
|
handPutHide() {
|
||||||
this.isPiecePut = false;
|
this.isPiecePut = false;
|
||||||
},
|
},
|
||||||
@ -168,6 +177,13 @@ export default {
|
|||||||
handBuyHide(handBuyHide) {
|
handBuyHide(handBuyHide) {
|
||||||
this.isBuy = handBuyHide;
|
this.isBuy = handBuyHide;
|
||||||
},
|
},
|
||||||
|
handMessageHide() {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.message.close();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
handMessage(typeNumber) {
|
handMessage(typeNumber) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.message.open(typeNumber);
|
this.$refs.message.open(typeNumber);
|
||||||
@ -305,8 +321,8 @@ export default {
|
|||||||
width: 97px;
|
width: 97px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
.rent-olink{
|
.rent-olink {
|
||||||
width:80px ;
|
width: 80px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
@ -90,6 +90,7 @@
|
|||||||
@handPutShow="handPutShow"
|
@handPutShow="handPutShow"
|
||||||
@handPutHide="handPutHide"
|
@handPutHide="handPutHide"
|
||||||
@handMessage="handMessage"
|
@handMessage="handMessage"
|
||||||
|
@handMessageHide="handMessageHide"
|
||||||
></DunDialog>
|
></DunDialog>
|
||||||
<TheSellDialog
|
<TheSellDialog
|
||||||
:type="type"
|
:type="type"
|
||||||
@ -97,9 +98,12 @@
|
|||||||
v-if="currencyTypeList"
|
v-if="currencyTypeList"
|
||||||
:currencyTypeList="currencyTypeList"
|
:currencyTypeList="currencyTypeList"
|
||||||
:isPiecePut="isPiecePut"
|
:isPiecePut="isPiecePut"
|
||||||
|
@getMarketNftList="getMarketNftList"
|
||||||
|
@handMessageHide="handMessageHide"
|
||||||
@handMessage="handMessage"
|
@handMessage="handMessage"
|
||||||
@handPutShow="handPutShow"
|
@handPutShow="handPutShow"
|
||||||
@handPutHide="handPutHide"
|
@handPutHide="handPutHide"
|
||||||
|
@on-close="chipDialogHide"
|
||||||
></TheSellDialog>
|
></TheSellDialog>
|
||||||
<TheBuyDialog
|
<TheBuyDialog
|
||||||
:type="type"
|
:type="type"
|
||||||
@ -191,9 +195,9 @@ export default {
|
|||||||
formatPriceShow(price, decimals, fixed = 2) {
|
formatPriceShow(price, decimals, fixed = 2) {
|
||||||
return formatPrice(price, decimals, fixed);
|
return formatPrice(price, decimals, fixed);
|
||||||
},
|
},
|
||||||
getMarketNftList(){
|
getMarketNftList() {
|
||||||
this.$emit('getMarketNftList')
|
this.$emit("getMarketNftList");
|
||||||
},
|
},
|
||||||
chipDialog() {
|
chipDialog() {
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
},
|
},
|
||||||
@ -218,12 +222,12 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
handMessageHide() {
|
handMessageHide() {
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.message.close();
|
this.$nextTick(() => {
|
||||||
|
this.$refs.message.close();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
},
|
||||||
},
|
|
||||||
handBuyHide() {
|
handBuyHide() {
|
||||||
this.isBuy = false;
|
this.isBuy = false;
|
||||||
},
|
},
|
||||||
@ -363,7 +367,7 @@ export default {
|
|||||||
width: 135px;
|
width: 135px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
.rent-olink{
|
.rent-olink {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
width: 135px;
|
width: 135px;
|
||||||
margin-right: 60px;
|
margin-right: 60px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user