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 class="userinfo">
<div>History:</div>
<div>#3006985843100103 (NFTLink)</div>
<!-- <div>History:</div>
<div>#3006985843100103 (NFTLink)</div> -->
</div>
</div>
</template>

View File

@ -191,6 +191,15 @@ export default {
this.$emit("getMarketNftList");
},1000)
}, 1000);
}else{
setTimeout(() => {
this.$emit("handMessageHide");
this.closeTip();
this.$emit("closeTip",false);
setTimeout(()=>{
this.$emit("getMarketNftList");
},1000)
}, 1000);
}
}
console.log(nftres, "beginBuy");

View File

@ -76,8 +76,8 @@
<div>{{ time }} UTC</div>
</div>
<div class="owner-history">
<div>History :</div>
<div>#3006985843100103 (NFTLink)</div>
<!-- <div>History :</div>
<div>#3006985843100103 (NFTLink)</div> -->
</div>
</div>
</div>
@ -208,6 +208,13 @@ export default {
if (nftres.status == true) {
this.$emit("handMessage", 1);
this.hideLoading();
setTimeout(() => {
this.$emit("handMessageHide");
this.$emit("on-close");
setTimeout(() => {
this.$emit("getMarketNftList");
}, 1000);
}, 1000);
}
} catch (err) {
console.log("query order status error", err);

View File

@ -352,6 +352,13 @@ export default {
this.$emit("handMessage", 1);
this.hideLoading();
setTimeout(() => {
this.$emit("handMessageHide");
this.$emit("on-close");
setTimeout(() => {
this.$emit("getMarketNftList");
}, 1000);
}, 1000);
}
} catch (err) {
this.hideLoading();

View File

@ -54,8 +54,7 @@
<div class="hill">
<div class="hill-content">
<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> -->
</div>
<div>
@ -349,16 +348,16 @@ export default {
isTabs: false,
type: "hero",
orderId: 6,
visible:this.dialogVisible,
visible: this.dialogVisible,
loadingInstance: null,
chainManager: new ChainManager(),
};
},
watch:{
dialogVisible(val){
this.visible = val
}
},
watch: {
dialogVisible(val) {
this.visible = val;
},
},
methods: {
closeMyself(hide) {
this.$emit("on-close", hide);
@ -412,10 +411,16 @@ export default {
CONTRACT_ADDRESS[AppModule.chainId].marketDddress
);
console.log(nftres, "beginSell");
if (nftres.status == true) {
if (nftres.status == true) {
this.$emit("handMessage", 1);
this.hideLoading();
setTimeout(() => {
this.$emit("handMessageHide");
this.$emit("on-close");
setTimeout(() => {
this.$emit("getMarketNftList");
}, 1000);
}, 1000);
}
} catch (err) {
this.hideLoading();
@ -540,7 +545,7 @@ export default {
color: #ffffff;
}
.token-id {
margin-top: 36px;
margin-top: 36px;
width: 345px;
height: 41px;
font-size: 30px;
@ -654,7 +659,7 @@ export default {
.price-number {
line-height: 89px;
margin-left: 78px;
margin-right:10px;
margin-right: 10px;
}
}
.mynft {

View File

@ -64,8 +64,8 @@
<div>{{ time }} UTC</div>
</div> -->
<div class="owner-history">
<div>History :</div>
<div>#3006985843100103 (NFTLink)</div>
<!-- <div>History :</div>
<div>#3006985843100103 (NFTLink)</div> -->
</div>
</div>
</div>
@ -197,6 +197,13 @@ export default {
if (nftres.status == true) {
this.$emit("handMessage", 1);
this.hideLoading();
setTimeout(() => {
this.$emit("handMessageHide");
this.$emit("closeTip", false);
setTimeout(() => {
this.$emit("getMarketNftList");
}, 1000);
}, 1000);
}
} catch (err) {
this.hideLoading();

View File

@ -178,7 +178,16 @@ export default {
if (nftres.status == true) {
this.hideLoading();
this.$emit("handMessage", 1);
setTimeout(() => {
this.$emit("handMessageHide");
this.closeTip();
this.type == "piece"
? this.$emit("closeTip", false)
: this.$emit("on-close");
setTimeout(() => {
this.$emit("getMarketNftList");
}, 1000);
}, 1000);
}
} catch (err) {
this.hideLoading();
@ -285,7 +294,17 @@ export default {
if (nftres.status == true) {
this.hideLoading();
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");
} catch (err) {

View File

@ -67,6 +67,7 @@
@handBuyShow="handBuyShow"
@handBuyHide="handBuyHide"
@handMessage="handMessage"
@handMessageHide="handMessageHide"
:data="chip"
:isType="isType"
:isPiecePut="isPiecePut"
@ -87,6 +88,9 @@
:data="chip"
v-if="currencyTypeList"
:currencyTypeList="currencyTypeList"
@on-close="chipDialoghide"
@getMarketNftList="getMarketNftList"
@handMessageHide="handMessageHide"
:isPiecePut="isPiecePut"
@handMessage="handMessage"
@handPutShow="handPutShow"

View File

@ -105,6 +105,7 @@
:isBuy="isBuy"
@handBuyShow="handBuyShow"
@handBuyHide="handBuyHide"
@handMessageHide="handMessageHide"
@handMessage="handMessage"
@closeTip="closeTip"
@showTip="showTip"
@ -120,9 +121,12 @@
:data="data"
v-if="currencyTypeList"
:currencyTypeList="currencyTypeList"
@getMarketNftList="getMarketNftList"
@handPutShow="handPutShow"
@handPutHide="handPutHide"
@on-close="handDialoghide"
@handMessage="handMessage"
@handMessageHide="handMessageHide"
></TheSellDialog>
<HeroBuyDialog
:type="type"
@ -233,17 +237,16 @@ export default class HeroNft extends Vue {
handDialoghide(data: boolean) {
this.dialogVisible = data;
}
getMarketNftList(){
this.$emit('getMarketNftList')
getMarketNftList() {
this.$emit("getMarketNftList");
}
handPutShow() {
this.isPiecePut = true;
}
handPutHide() {
console.log('handPutHide,策划功能成功');
console.log("handPutHide,策划功能成功");
this.isPiecePut = false;
}
handBuyShow() {
this.isBuy = true;

View File

@ -88,6 +88,7 @@
@handPutShow="handPutShow"
@handPutHide="handPutHide"
@handMessage="handMessage"
@handMessageHide="handMessageHide"
></PieceDialog>
<TheSell
ref="selldialog"
@ -95,7 +96,10 @@
:isPiecePut="isPiecePut"
v-if="isType == 'mynft' && currencyTypeList.length > 0"
:currencyTypeList="currencyTypeList"
@closeTip="closeTip"
@getMarketNftList="getMarketNftList"
@handMessage="handMessage"
@handMessageHide="handMessageHide"
@handPutShow="handPutShow"
@handPutHide="handPutHide"
/>
@ -104,7 +108,10 @@
ref="buydialog"
:isBuy="isBuy"
v-if="isType !== 'mynft'"
@closeTip="closeTip"
@getMarketNftList="getMarketNftList"
@handMessage="handMessage"
@handMessageHide="handMessageHide"
@handBuyShow="handBuyShow"
@handBuyHide="handBuyHide"
></ChipBuyDialog>
@ -155,7 +162,9 @@ export default {
this.$refs.selldialog.init(piece);
});
},
getMarketNftList() {
this.$emit("getMarketNftList");
},
handPutHide() {
this.isPiecePut = false;
},
@ -168,6 +177,13 @@ export default {
handBuyHide(handBuyHide) {
this.isBuy = handBuyHide;
},
handMessageHide() {
this.$nextTick(() => {
this.$nextTick(() => {
this.$refs.message.close();
});
});
},
handMessage(typeNumber) {
this.$nextTick(() => {
this.$refs.message.open(typeNumber);
@ -305,8 +321,8 @@ export default {
width: 97px;
height: 40px;
}
.rent-olink{
width:80px ;
.rent-olink {
width: 80px;
text-align: right;
line-height: 40px;
font-size: 18px;

View File

@ -90,6 +90,7 @@
@handPutShow="handPutShow"
@handPutHide="handPutHide"
@handMessage="handMessage"
@handMessageHide="handMessageHide"
></DunDialog>
<TheSellDialog
:type="type"
@ -97,9 +98,12 @@
v-if="currencyTypeList"
:currencyTypeList="currencyTypeList"
:isPiecePut="isPiecePut"
@getMarketNftList="getMarketNftList"
@handMessageHide="handMessageHide"
@handMessage="handMessage"
@handPutShow="handPutShow"
@handPutHide="handPutHide"
@on-close="chipDialogHide"
></TheSellDialog>
<TheBuyDialog
:type="type"
@ -191,9 +195,9 @@ export default {
formatPriceShow(price, decimals, fixed = 2) {
return formatPrice(price, decimals, fixed);
},
getMarketNftList(){
this.$emit('getMarketNftList')
},
getMarketNftList() {
this.$emit("getMarketNftList");
},
chipDialog() {
this.dialogVisible = true;
},
@ -218,12 +222,12 @@ export default {
});
},
handMessageHide() {
this.$nextTick(() => {
this.$nextTick(() => {
this.$refs.message.close();
this.$nextTick(() => {
this.$refs.message.close();
});
});
});
},
},
handBuyHide() {
this.isBuy = false;
},
@ -363,7 +367,7 @@ export default {
width: 135px;
height: 40px;
}
.rent-olink{
.rent-olink {
text-align: right;
width: 135px;
margin-right: 60px;