This commit is contained in:
huangjinming 2023-01-12 19:30:19 +08:00
parent a734659ede
commit 942cd8610b
11 changed files with 116 additions and 35 deletions

View File

@ -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>

View File

@ -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");

View File

@ -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);

View File

@ -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();

View File

@ -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>
@ -356,8 +355,8 @@ export default {
}, },
watch: { watch: {
dialogVisible(val) { dialogVisible(val) {
this.visible = val this.visible = val;
} },
}, },
methods: { methods: {
closeMyself(hide) { closeMyself(hide) {
@ -415,7 +414,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) {
this.hideLoading(); this.hideLoading();

View File

@ -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();

View File

@ -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);
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);
} }
console.log(nftres, "beginSell"); console.log(nftres, "beginSell");
} catch (err) { } catch (err) {

View File

@ -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"

View File

@ -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"
@ -234,16 +238,15 @@ export default class HeroNft extends Vue {
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;

View File

@ -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);

View File

@ -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"
@ -192,7 +196,7 @@ export default {
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;