This commit is contained in:
huangjinming 2023-01-04 17:59:33 +08:00
parent e2c9a8ae3f
commit 6cd1520795
5 changed files with 188 additions and 11 deletions

View File

@ -9,7 +9,7 @@
/> />
</div> </div>
<div class="gen" v-if="data.info.is_genesis"> <div class="gen" v-if="data.info.is_genesis">
<img width="31px" src="../../assets/market/hero/gen.png" alt="" /> <img width="31px" src="../../../assets/market/hero/gen.png" alt="" />
</div> </div>
<!-- <div class="hero-name"> <!-- <div class="hero-name">
{{ data.c_name }} {{ data.c_name }}

View File

@ -34,6 +34,7 @@
:type="type" :type="type"
:isPiecePut="isPiecePut" :isPiecePut="isPiecePut"
ref="selldialog" ref="selldialog"
@handPutShow="handPutShow" @handPutShow="handPutShow"
@handPutHide="handPutHide" @handPutHide="handPutHide"
></TheSellDialog> ></TheSellDialog>
@ -43,9 +44,11 @@
:type="type" :type="type"
:isBuy="isBuy" :isBuy="isBuy"
ref="buydialog" ref="buydialog"
@handMessage="handMessage"
@handBuyShow="handBuyShow" @handBuyShow="handBuyShow"
@handBuyHide="handBuyHide" @handBuyHide="handBuyHide"
></TheBuyDialog> ></TheBuyDialog>
<MessageBox ref="message"></MessageBox>
</div> </div>
</template> </template>
@ -54,6 +57,7 @@ import HeroModal from "./HeroModal.vue";
import TheSellDialog from "./TheSellDialog.vue"; import TheSellDialog from "./TheSellDialog.vue";
import TheBuyDialog from "./TheBuyDialog.vue"; import TheBuyDialog from "./TheBuyDialog.vue";
import HeroItem from "./HeroItem"; import HeroItem from "./HeroItem";
import MessageBox from "./MessageBox";
export default { export default {
props: ["nftList", "isType"], props: ["nftList", "isType"],
components: { components: {
@ -61,6 +65,7 @@ export default {
TheBuyDialog, TheBuyDialog,
TheSellDialog, TheSellDialog,
HeroItem, HeroItem,
MessageBox
}, },
data() { data() {
return { return {
@ -127,6 +132,12 @@ export default {
handBuyHide() { handBuyHide() {
this.isBuy = false; this.isBuy = false;
}, },
handMessage() {
this.$nextTick(() => {
this.$refs.message.open(1);
console.log('chegn');
});
},
}, },
}; };
</script> </script>
@ -169,11 +180,10 @@ export default {
margin-top: 100px; margin-top: 100px;
margin-bottom: 70px; margin-bottom: 70px;
width: 378px; width: 378px;
img{ img {
width: 100%; width: 100%;
} }
} }
} }
} }
.type-img { .type-img {

View File

@ -1,13 +1,176 @@
<template> <template>
<div class="wmassageMask" v-if="dialogVisible == true" @touchmove.prevent>
<div class="messageMaskContent content">
<div class="container" v-show="msgType == 0">
<div class="title">Transfaction Failed</div>
<div class="wangning-img">
<img src="../../../assets/market/dialog/wangning.png" alt="" />
</div>
<div class="view">View in Poiygonscan</div>
<div class="confirm-btn">Confirm</div>
</div>
<div class="success-container" v-show="msgType == 1">
<div class="title">Transfaction Complete</div>
<div class="wangning-img">
<img src="../../../assets/market/dialog/success.png" alt="" />
</div>
<div class="view">View in Poiygonscan</div>
<div class="confirm-btn">Confirm</div>
</div>
<span @click="closeTip" class="close">
<img src="../../../assets/market/hero/cose.png" alt="" />
</span>
</div>
</div>
</template> </template>
<script> <script>
export default { export default {
data() {
} return {
dialogVisible: false,
msgType: null,
};
},
methods: {
closeTip() {
// (: closeTip)
// this.$emit("closeTip");
this.dialogVisible = false;
},
open(type) {
this.dialogVisible = true;
this.msgType = type;
console.log("type", type, this.dialogVisible);
},
handMessage() {},
},
};
</script> </script>
<style> <style lang="scss" scoped>
.wmassageMask {
position: fixed;
top: 0;
bottom: 0;
left: 0;
width: 100%;
background-color: rgba(20, 28, 34, 0.6);
z-index: 9999;
.content {
position: relative;
.close {
width: 75px;
height: 75px;
position: absolute;
cursor: pointer;
right: -74px;
top: -74px;
img {
width: 100%;
}
}
}
</style> .messageMaskContent {
position: absolute;
top: 257px;
left: 109px;
width: 864px;
height: 848px;
background: url("../../../assets/market/dialog/msg-bg.png") no-repeat;
background-size: 100% 100%;
.price-title {
margin-top: 30px;
font-size: 50px;
font-weight: bold;
padding-bottom: 29px;
text-align: center;
color: #ffffff;
}
}
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.title {
font-size: 43px;
margin-top: 76px;
// font-family: Bahnschrift;
font-weight: bold;
color: #ffffff;
}
.wangning-img {
width: 210px;
height: 210px;
margin-top: 85px;
margin-bottom: 65px;
img {
width: 100%;
}
}
.view {
font-size: 26px;
font-weight: 600;
text-decoration: underline;
color: #ffffff;
margin-bottom: 18px;
}
.confirm-btn {
text-align: center;
width: 644px;
height: 109px;
line-height: 109px;
background: #2bcced;
border: 3px solid rgba(133, 234, 255, 0.3);
border-radius: 37px;
font-size: 40px;
font-weight: 600;
color: #ffffff;
}
}
.success-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.title {
font-size: 43px;
margin-top: 76px;
// font-family: Bahnschrift;
font-weight: bold;
color: #ffffff;
}
.wangning-img {
width: 210px;
height: 210px;
margin-top: 85px;
margin-bottom: 65px;
img {
width: 100%;
}
}
.view {
font-size: 26px;
font-weight: 600;
text-decoration: underline;
color: #ffffff;
margin-bottom: 18px;
}
.confirm-btn {
text-align: center;
width: 644px;
height: 109px;
line-height: 109px;
background: #2bcced;
border: 3px solid rgba(133, 234, 255, 0.3);
border-radius: 37px;
font-size: 40px;
font-weight: 600;
color: #ffffff;
}
}
</style>

View File

@ -97,7 +97,9 @@ export default {
this.piece = data; this.piece = data;
console.log(data, "dfgdg"); console.log(data, "dfgdg");
}, },
handMessage() {}, handMessage() {
this.$emit("handMessage")
},
}, },
}; };
</script> </script>
@ -129,7 +131,7 @@ export default {
.messageMaskContent { .messageMaskContent {
position: absolute; position: absolute;
top: 342px; top: 342px;
left: 113px; left: 153px;
width: 756px; width: 756px;
height: 1021px; height: 1021px;
background: url("../../../assets/market/dialog/sell-mb-bg.png") no-repeat; background: url("../../../assets/market/dialog/sell-mb-bg.png") no-repeat;

View File

@ -126,7 +126,9 @@ export default {
this.piece = data; this.piece = data;
console.log(data, "dfgdg"); console.log(data, "dfgdg");
}, },
handMessage() {}, handMessage() {
},
}, },
}; };
</script> </script>