![]()
@@ -46,6 +48,7 @@
:isBuy="isBuy"
ref="buydialog"
@handMessage="handMessage"
+ @handMessageHide="handMessageHide"
@handBuyShow="handBuyShow"
@handBuyHide="handBuyHide"
>
@@ -100,7 +103,6 @@ export default {
},
handleClick(data) {
this.Visiable = true;
-
},
closeTip() {
this.isShow = false;
@@ -108,7 +110,6 @@ export default {
handPutShow(data) {
this.isPiecePut = true;
this.$nextTick(() => {
-
this.$refs.selldialog.init(data);
});
},
@@ -118,7 +119,6 @@ export default {
handBuyShow(data) {
this.isBuy = true;
this.$nextTick(() => {
-
this.$refs.buydialog.init(data);
});
},
@@ -131,6 +131,13 @@ export default {
console.log("chegn");
});
},
+ handMessageHide() {
+ this.$nextTick(() => {
+ this.$nextTick(() => {
+ this.$refs.message.close();
+ });
+ });
+ },
},
};
diff --git a/src/components/mobile/main/MessageBox.vue b/src/components/mobile/main/MessageBox.vue
index bf70fd1..b9a34e0 100644
--- a/src/components/mobile/main/MessageBox.vue
+++ b/src/components/mobile/main/MessageBox.vue
@@ -34,14 +34,11 @@ export default {
},
methods: {
closeTip() {
- // 分发自定义事件(事件名: closeTip)
- // this.$emit("closeTip");
this.dialogVisible = false;
},
open(type) {
this.dialogVisible = true;
this.msgType = type;
- console.log("type", type, this.dialogVisible);
},
handMessage() {},
},
diff --git a/src/components/mobile/main/PieceList.vue b/src/components/mobile/main/PieceList.vue
index 348904d..d6089e7 100644
--- a/src/components/mobile/main/PieceList.vue
+++ b/src/components/mobile/main/PieceList.vue
@@ -75,6 +75,7 @@
:currencyTypeList="currencyTypeList"
ref="selldialog"
@handMessage="handMessage"
+ @handMessageHide="handMessageHide"
@handPutShow="handPutShow"
@handPutHide="handPutHide"
>
@@ -83,6 +84,7 @@
:isBuy="isBuy"
ref="buydialog"
@handMessage="handMessage"
+ @handMessageHide="handMessageHide"
@handBuyShow="handBuyShow"
@handBuyHide="handBuyHide"
>
@@ -111,19 +113,23 @@ export default {
methods: {
chipDialoghide() {
this.dialogVisible = false;
- console.log("ChipDialoghide");
},
formatPriceShow(price, decimals, fixed = 2) {
return formatPrice(price, decimals, fixed);
},
chipDialog() {
this.dialogVisible = true;
- console.log("ChipDialog");
},
handMessage() {
this.$nextTick(() => {
this.$refs.message.open(1);
- console.log("chegn");
+ });
+ },
+ handMessageHide() {
+ this.$nextTick(() => {
+ this.$nextTick(() => {
+ this.$refs.message.close();
+ });
});
},
showTip(data) {
diff --git a/src/components/mobile/main/TheSellDialog.vue b/src/components/mobile/main/TheSellDialog.vue
index 53b32e2..1aee273 100644
--- a/src/components/mobile/main/TheSellDialog.vue
+++ b/src/components/mobile/main/TheSellDialog.vue
@@ -158,15 +158,12 @@ export default {
},
methods: {
closeTip() {
- // 分发自定义事件(事件名: closeTip)
- // this.$emit("closeTip");
this.detailVisible = false;
this.shell.price =''
},
init(data) {
this.detailVisible = true;
this.piece = data;
- // console.log(data, "dfgdg");
},
handReduce() {
if (this.cunout > 1) {
diff --git a/src/components/mobile/main/WeaponFilter.vue b/src/components/mobile/main/WeaponFilter.vue
index 3ee638b..d99baab 100644
--- a/src/components/mobile/main/WeaponFilter.vue
+++ b/src/components/mobile/main/WeaponFilter.vue
@@ -89,13 +89,10 @@ export default {
value: 0,
};
},
- mounted() {
- // document.getElementsByClassName("el-slider__button")[0].childNodes[0].nodeValue = "跳转";
- },
+
methods: {
searchClear() {
this.hero = "";
- // this.$emit('searchClear')
},
priceFilter() {
this.priceMin = "";
diff --git a/src/components/mobile/main/WeaponList.vue b/src/components/mobile/main/WeaponList.vue
index e7ff9f5..7220ece 100644
--- a/src/components/mobile/main/WeaponList.vue
+++ b/src/components/mobile/main/WeaponList.vue
@@ -6,7 +6,7 @@
@click="showTip(weapon)"
:key="i"
>
-
+
![]()
@@ -45,11 +46,12 @@
:type="type"
:isBuy="isBuy"
ref="buydialog"
- @handMessage="handMessage"
+ @handMessage="handMessage"
+ @handMessageHide="handMessageHide"
@handBuyShow="handBuyShow"
@handBuyHide="handBuyHide"
>
-
+
@@ -58,7 +60,7 @@ import WeaponModal from "./WeaponModal.vue";
import WeaponItem from "./WeaponItem.vue";
import TheSellDialog from "./TheSellDialog.vue";
import TheBuyDialog from "./TheBuyDialog.vue";
-import MessageBox from './MessageBox.vue'
+import MessageBox from "./MessageBox.vue";
export default {
props: ["nftList", "isType", "currencyTypeList"],
components: {
@@ -98,6 +100,13 @@ export default {
this.$refs.message.open(1);
});
},
+ handMessageHide() {
+ this.$nextTick(() => {
+ this.$nextTick(() => {
+ this.$refs.message.close();
+ });
+ });
+ },
handPutHide() {
this.isPiecePut = false;
},
diff --git a/src/components/mobile/main/WeaponSellTop.vue b/src/components/mobile/main/WeaponSellTop.vue
index 21813f5..526e22f 100644
--- a/src/components/mobile/main/WeaponSellTop.vue
+++ b/src/components/mobile/main/WeaponSellTop.vue
@@ -86,8 +86,6 @@ formatPriceShow(price, decimals, fixed = 2) {
padding-bottom: 11px;
.item-top {
width: 100%;
- // display: flex;
- // justify-content: space-between;
.piece-weapon-left {
width: 395px;
height: 183px;