diff --git a/src/components/market/ChipBuyDialog.vue b/src/components/market/ChipBuyDialog.vue index 1f7d70c..c31f045 100644 --- a/src/components/market/ChipBuyDialog.vue +++ b/src/components/market/ChipBuyDialog.vue @@ -139,7 +139,7 @@ export default { ? this.piece.s_currency : this.data.s_currency, price: this.piece.s_price ? this.piece.s_price : this.data.s_price, - marketDddress: CONTRACT_ADDRESS[AppModule.chainId].marketDddress, + marketAddress: CONTRACT_ADDRESS[AppModule.chainId].marketAddress, }; console.log(data, "beginApproveBuy"); try { @@ -147,7 +147,7 @@ export default { const nftres = await this.chainManager.bc.beginApproveBuy( this.piece.s_currency ? this.piece.s_currency : this.data.s_currency, this.piece.s_price ? this.piece.s_price : this.data.s_price, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); console.log(nftres, "beginApproveBuy"); if (nftres.status == true) { @@ -171,7 +171,7 @@ export default { this.showLoading(); const nftres = await this.chainManager.bc.beginBuy( this.piece.o_link ? this.piece.o_link : this.data.o_link, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.hideLoading(); diff --git a/src/components/market/Chipdialog.vue b/src/components/market/Chipdialog.vue index cf2e119..5a8cce9 100644 --- a/src/components/market/Chipdialog.vue +++ b/src/components/market/Chipdialog.vue @@ -193,7 +193,7 @@ export default { this.showLoading() const nftres = await this.chainManager.bc.beginCancelOrder( this.data.o_link, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.$emit("handMessage", 1); diff --git a/src/components/market/Dundialog.vue b/src/components/market/Dundialog.vue index fbc0b8b..d4c92d2 100644 --- a/src/components/market/Dundialog.vue +++ b/src/components/market/Dundialog.vue @@ -343,7 +343,7 @@ export default { this.showLoading() const nftres = await this.chainManager.bc.beginCancelOrder( this.data.o_link, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); console.log(nftres, "beginSell"); if (nftres.status == true) { diff --git a/src/components/market/FilterLeft.vue b/src/components/market/FilterLeft.vue index 9bbecaf..d240c41 100644 --- a/src/components/market/FilterLeft.vue +++ b/src/components/market/FilterLeft.vue @@ -3,7 +3,7 @@
{{ - hero.detail.rand_attr[0].val + hero.detail ? hero.detail.rand_attr[0].val >= 100 ? parseInt(hero.detail.rand_attr[0].val * 1) : (hero.detail.rand_attr[0].val * 1).toFixed(2) @@ -130,7 +130,7 @@
{{ - hero.detail.rand_attr[1].val + hero.detail ? hero.detail.rand_attr[1].val >= 100 ? parseInt(hero.detail.rand_attr[1].val * 1) : (hero.detail.rand_attr[1].val * 1).toFixed(2) @@ -152,7 +152,7 @@
{{ - hero.detail.rand_attr[2].val + hero.detail ? hero.detail.rand_attr[2].val >= 100 ? parseInt(hero.detail.rand_attr[2].val * 1) : (hero.detail.rand_attr[2].val * 1).toFixed(2) @@ -173,7 +173,7 @@
{{ - hero.detail.rand_attr[4].val + hero.detail ? (hero.detail.rand_attr[4].val * 1 * 100).toFixed(2) : "0" }}% @@ -192,7 +192,7 @@
{{ - hero.detail.rand_attr[5].val + hero.detail ? (hero.detail.rand_attr[5].val * 1 * 100).toFixed(2) : "0" }}% @@ -211,7 +211,7 @@
{{ - hero.detail.rand_attr[6].val + hero.detail ? (hero.detail.rand_attr[6].val * 1 * 100).toFixed(2) : "0" }}% @@ -230,7 +230,7 @@
{{ - hero.detail.rand_attr[7].val + hero.detail ? (hero.detail.rand_attr[7].val * 1 * 100).toFixed(2) : "0" }}% @@ -277,7 +277,7 @@
-
+
@@ -396,12 +396,12 @@ export default { handBuyShow() { this.$emit("handBuyShow"); }, - async handremove() { + async handRemove() { try { this.showLoading(); const nftres = await this.chainManager.bc.beginCancelOrder( this.hero.o_link, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.$emit("handMessage", 1); diff --git a/src/components/market/Piecedialog.vue b/src/components/market/Piecedialog.vue index 6536a37..7f7b7f2 100644 --- a/src/components/market/Piecedialog.vue +++ b/src/components/market/Piecedialog.vue @@ -115,7 +115,6 @@ export default { item_id: null, }, }, - piecedata: {}, loadingInstance: null, dialogVisible: false, visible: this.isShow, @@ -180,7 +179,7 @@ export default { this.showLoading(); const nftres = await this.chainManager.bc.beginCancelOrder( this.piece.o_link, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.$emit("handMessage", 1); diff --git a/src/components/market/TheSellDialog.vue b/src/components/market/TheSellDialog.vue index 69ac28a..d2ca9ea 100644 --- a/src/components/market/TheSellDialog.vue +++ b/src/components/market/TheSellDialog.vue @@ -177,7 +177,7 @@ export default { const nftres = await this.chainManager.bc.beginUpdatePrice( this.type == "piece" ? this.piece.o_link : this.data.o_link, this.shell.price, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.hideLoading(); @@ -222,7 +222,7 @@ export default { : this.data.detail.token_id, this.nft_Token, this.type == "hero" || this.type == "weapon" ? false : true, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.isApprove = true; @@ -271,7 +271,7 @@ export default { : this.data.detail.token_id, this.piece ? this.cunout : 1, this.shell.price, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.hideLoading(); diff --git a/src/components/market/WeaponBuyDialog.vue b/src/components/market/WeaponBuyDialog.vue index 0e1fe23..a428406 100644 --- a/src/components/market/WeaponBuyDialog.vue +++ b/src/components/market/WeaponBuyDialog.vue @@ -114,7 +114,7 @@ export default { const nftres = await this.chainManager.bc.beginApproveBuy( this.data.s_currency, this.data.s_price, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.isApprove = true; @@ -133,7 +133,7 @@ export default { this.showLoading(); const nftres = await this.chainManager.bc.beginBuy( this.data.o_link, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.hideLoading(); diff --git a/src/components/market/filters/Chipfilter.vue b/src/components/market/filters/Chipfilter.vue index 5fae951..7bf5c12 100644 --- a/src/components/market/filters/Chipfilter.vue +++ b/src/components/market/filters/Chipfilter.vue @@ -35,7 +35,7 @@
-
Quility
+
Quality
-
Quility
+
Quality
@@ -151,8 +151,8 @@ export default { handSelect(value) { this.$emit("handSelect", value); }, - heroQuilityChange(Quility) { - this.$emit("heroQuilityChange", Quility); + heroQualityChange(Quality) { + this.$emit("heroQualityChange", Quality); }, heroLevelChange(levelSlider) { this.$emit("heroLevelChange", levelSlider); diff --git a/src/components/market/filters/Weaponfilter.vue b/src/components/market/filters/Weaponfilter.vue index 1f44994..c2d0ba1 100644 --- a/src/components/market/filters/Weaponfilter.vue +++ b/src/components/market/filters/Weaponfilter.vue @@ -13,12 +13,12 @@ />
-
Quility
+
Quality
@@ -172,8 +172,8 @@ export default { // console.log(value); this.$emit("handWeaponSelect", value); }, - weaponQuilityChange(value) { - this.$emit("weaponQuilityChange", value); + weaponQualityChange(value) { + this.$emit("weaponQualityChange", value); }, weaponLevelChange(value) { this.$emit("weaponLevelChange", value); diff --git a/src/components/market/nft/Chip.vue b/src/components/market/nft/Chip.vue index b82a537..0350805 100644 --- a/src/components/market/nft/Chip.vue +++ b/src/components/market/nft/Chip.vue @@ -58,7 +58,7 @@
- +
{{ data.c_name ? data.c_name : data.detail.hero_name }} @@ -86,7 +86,7 @@
@@ -122,7 +122,7 @@ :data="data" @handMessage="handMessage" @handMessageHide="handMessageHide" - @on-close="handDialoghide" + @on-close="handDialogHide" @getMarketNftList="getMarketNftList" @handBuyShow="handBuyShow" @handBuyHide="handBuyHide" @@ -162,7 +162,7 @@ export default class HeroNft extends Vue { { Image: require("@/assets/market/hero/star02.png") }, ]; starList: any[] = []; - get imgeSrc() { + get imageSrc() { if (this.data.item_id) { return require(`@/assets/market/hero/${this.data.item_id}.png`); } else { @@ -185,8 +185,8 @@ export default class HeroNft extends Vue { this.isTab = hide; } @Watch("data.detail.quality") - haldQuality(neWvalue: any, oldValue: any) { - this.quality = neWvalue; + haldQuality(neWValue: any, oldValue: any) { + this.quality = neWValue; } created() { if (this.qualityNumber > 0 && this.qualityNumber <= 5) { @@ -229,7 +229,7 @@ export default class HeroNft extends Vue { this.dialogVisible = true; } - handDialoghide(data: boolean) { + handDialogHide(data: boolean) { this.dialogVisible = data; } getMarketNftList() { diff --git a/src/components/mobile/main/ChipFilter.vue b/src/components/mobile/main/ChipFilter.vue index 76cd996..dc15608 100644 --- a/src/components/mobile/main/ChipFilter.vue +++ b/src/components/mobile/main/ChipFilter.vue @@ -20,7 +20,7 @@
-
Quility
+
Quality
-
Quility
+
Quality
@@ -117,7 +117,7 @@ export default { hero: "", Level: 0, durability: 0, - Quility: 0, + Quality: 0, }; }, mounted() { @@ -145,8 +145,8 @@ export default { heroLevelChange(value) { this.$emit("heroLevelChange", value); }, - heroQuilityChange(value) { - this.$emit("heroQuilityChange", value); + heroQualityChange(value) { + this.$emit("heroQualityChange", value); }, heroDurabilityChange(value) { this.$emit("heroDurabilityChange", value); diff --git a/src/components/mobile/main/PieceModal.vue b/src/components/mobile/main/PieceModal.vue index faa0a09..0a5599c 100644 --- a/src/components/mobile/main/PieceModal.vue +++ b/src/components/mobile/main/PieceModal.vue @@ -142,7 +142,7 @@ export default { this.showLoading(); const nftres = await this.chainManager.bc.beginCancelOrder( this.piece.o_link, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); // console.log(nftres, "beginSell"); if (nftres.status == true) { diff --git a/src/components/mobile/main/TheBuyDialog.vue b/src/components/mobile/main/TheBuyDialog.vue index 95dd181..c5d3af6 100644 --- a/src/components/mobile/main/TheBuyDialog.vue +++ b/src/components/mobile/main/TheBuyDialog.vue @@ -106,7 +106,7 @@ export default { const nftres = await this.chainManager.bc.beginApproveBuy( this.piece.s_currency, this.piece.s_price, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.isApprove = true; @@ -126,7 +126,7 @@ export default { this.showLoading(); const nftres = await this.chainManager.bc.beginBuy( this.piece.o_link, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.hideLoading(); diff --git a/src/components/mobile/main/TheSellDialog.vue b/src/components/mobile/main/TheSellDialog.vue index 2ccd1ca..7ebce0d 100644 --- a/src/components/mobile/main/TheSellDialog.vue +++ b/src/components/mobile/main/TheSellDialog.vue @@ -187,7 +187,7 @@ export default { const nftres = await this.chainManager.bc.beginUpdatePrice( this.piece.o_link, this.shell.price, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.hideLoading(); @@ -230,7 +230,7 @@ export default { this.piece.detail.token_id, this.nft_Token, this.type == "hero" || this.type == "weapon" ? false : true, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.isApprove = true; @@ -271,7 +271,7 @@ export default { this.piece.detail.token_id, this.type == "piece" ? this.cunout : 1, this.shell.price, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); if (nftres.status == true) { this.hideLoading(); diff --git a/src/components/mobile/main/WeaponFilter.vue b/src/components/mobile/main/WeaponFilter.vue index 41412dd..3ee638b 100644 --- a/src/components/mobile/main/WeaponFilter.vue +++ b/src/components/mobile/main/WeaponFilter.vue @@ -8,14 +8,14 @@
-
Quility
+
Quality
@@ -107,8 +107,8 @@ export default { handWeaponSelect(value) { this.$emit("handWeaponSelect", value); }, - weaponQuilityChange(value) { - this.$emit("weaponQuilityChange", value); + weaponQualityChange(value) { + this.$emit("weaponQualityChange", value); }, weaponLevelChange(value) { this.$emit("weaponLevelChange", value); diff --git a/src/components/mobile/main/WeaponModal.vue b/src/components/mobile/main/WeaponModal.vue index 153047b..2f697c1 100644 --- a/src/components/mobile/main/WeaponModal.vue +++ b/src/components/mobile/main/WeaponModal.vue @@ -309,7 +309,7 @@ export default { this.showLoading() const nftres = await this.chainManager.bc.beginCancelOrder( this.weapon.o_link, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress + CONTRACT_ADDRESS[AppModule.chainId].marketAddress ); console.log(nftres, "beginSell"); if (nftres.status == true) { diff --git a/src/configs/config_chain.ts b/src/configs/config_chain.ts index 22227c2..443be21 100644 --- a/src/configs/config_chain.ts +++ b/src/configs/config_chain.ts @@ -71,7 +71,7 @@ export const CONTRACT_ADDRESS:{[key: number]: any} = { weapon: "0x2612Af3A521c2df9EAF28422Ca335b04AdF3ac66", chip: "0x26b4AFb60d6C903165150C6F0AA14F8016bE4aec", piece: "0x0E696947A06550DEf604e82C26fd9E493e576337", - marketDddress: "0xFC628dd79137395F3C9744e33b1c5DE554D94882", + marketAddress: "0xFC628dd79137395F3C9744e33b1c5DE554D94882", }, 80001: { cec: '0xfeFc3aab779863c1624eE008aba485c53805dCeb', @@ -82,6 +82,6 @@ export const CONTRACT_ADDRESS:{[key: number]: any} = { weapon: "0x2F2Ed1c403cB7156617449795dE1CB47A0302a25", chip: "0x73482411443E87CAC124C12A10B34e9Aaa2De168", piece: "0xFc21A863bFb4E4534B246078772e2074e076f0a7", - marketDddress: "0x806eA3301c2bA2a3C710D97931a6C0Fe00E45B33" + marketAddress: "0x806eA3301c2bA2a3C710D97931a6C0Fe00E45B33" }, } diff --git a/src/views/desktop/Market.vue b/src/views/desktop/Market.vue index 78349cb..a2ad639 100644 --- a/src/views/desktop/Market.vue +++ b/src/views/desktop/Market.vue @@ -12,10 +12,10 @@ @jobStatus="jobStatus" @pieceStatus="pieceStatus" @heroLevelChange="heroLevelChange" - @heroQuilityChange="heroQuilityChange" + @heroQualityChange="heroQualityChange" @heroDurabilityChange="heroDurabilityChange" @weaponSearch="weaponSearch" - @weaponQuilityChange="weaponQuilityChange" + @weaponQualityChange="weaponQualityChange" @weaponLevelChange="weaponLevelChange" @weaponDurabilityChange="weaponDurabilityChange" @handWeaponSelect="handWeaponSelect" @@ -533,8 +533,8 @@ export default class Market extends Vue { this.getMarketNftList(); // this.$emit("heroLevelChange", levelSlider); } - heroQuilityChange(Quility: any) { - this.qualityFilter = Quility; + heroQualityChange(Quality: any) { + this.qualityFilter = Quality; this.getMarketNftList(); } heroDurabilityChange(durability: any) { @@ -549,8 +549,8 @@ export default class Market extends Vue { this.searchFilters = value; this.debounce(); } - weaponQuilityChange(Quility: any) { - this.qualityFilter = Quility; + weaponQualityChange(Quality: any) { + this.qualityFilter = Quality; this.getMarketNftList(); } weaponLevelChange(value: any) { diff --git a/src/views/desktop/MyNft.vue b/src/views/desktop/MyNft.vue index 66dc9b2..c13a04b 100644 --- a/src/views/desktop/MyNft.vue +++ b/src/views/desktop/MyNft.vue @@ -10,10 +10,10 @@ @jobStatus="jobStatus" @pieceStatus="pieceStatus" @heroLevelChange="heroLevelChange" - @heroQuilityChange="heroQuilityChange" + @heroQualityChange="heroQualityChange" @heroDurabilityChange="heroDurabilityChange" @weaponSearch="weaponSearch" - @weaponQuilityChange="weaponQuilityChange" + @weaponQualityChange="weaponQualityChange" @weaponLevelChange="weaponLevelChange" @weaponDurabilityChange="weaponDurabilityChange" @handWeaponSelect="handWeaponSelect" @@ -573,8 +573,8 @@ export default class MyNft extends Vue { this.getMyNftList(this.starts); // this.$emit("heroLevelChange", levelSlider); } - heroQuilityChange(Quility: any) { - this.qualityFilter = Quility; + heroQualityChange(Quality: any) { + this.qualityFilter = Quality; this.getMyNftList(this.starts); } heroDurabilityChange(durability: any) { @@ -589,8 +589,8 @@ export default class MyNft extends Vue { this.searchFilters = value; this.debounce(); } - weaponQuilityChange(Quility: any) { - this.qualityFilter = Quility; + weaponQualityChange(Quality: any) { + this.qualityFilter = Quality; this.getMyNftList(this.starts); } weaponLevelChange(value: any) { diff --git a/src/views/mobile/Market.vue b/src/views/mobile/Market.vue index 0235514..a8ce5fa 100644 --- a/src/views/mobile/Market.vue +++ b/src/views/mobile/Market.vue @@ -7,13 +7,13 @@ @jobStatus="jobStatus" @handHeroSelect="handHeroSelect" @heroLevelChange="heroLevelChange" - @heroQuilityChange="heroQuilityChange" + @heroQualityChange="heroQualityChange" @heroDurabilityChange="heroDurabilityChange" @handPriceFilter="handPriceFilter" @handPriceMax="handPriceMax" @handPriceMin="handPriceMin" @handWeaponSelect="handWeaponSelect" - @weaponQuilityChange="weaponQuilityChange" + @weaponQualityChange="weaponQualityChange" @weaponLevelChange="weaponLevelChange" @weaponDurabilityChange="weaponDurabilityChange" @handChipSelect="handChipSelect" @@ -508,7 +508,7 @@ export default { this.lvFilter = value; this.getMarketNftList(); }, - heroQuilityChange(value) { + heroQualityChange(value) { this.qualityFilter = value; this.getMarketNftList(); }, @@ -530,7 +530,7 @@ export default { this.searchFilters = value; this.getMarketNftList(); }, - weaponQuilityChange(value) { + weaponQualityChange(value) { this.qualityFilter = value; this.getMarketNftList(); }, diff --git a/src/views/mobile/MyNft.vue b/src/views/mobile/MyNft.vue index 4089e3f..f5bbfa8 100644 --- a/src/views/mobile/MyNft.vue +++ b/src/views/mobile/MyNft.vue @@ -7,10 +7,10 @@ @jobStatus="jobStatus" @handHeroSelect="handHeroSelect" @heroLevelChange="heroLevelChange" - @heroQuilityChange="heroQuilityChange" + @heroQualityChange="heroQualityChange" @heroDurabilityChange="heroDurabilityChange" @handWeaponSelect="handWeaponSelect" - @weaponQuilityChange="weaponQuilityChange" + @weaponQualityChange="weaponQualityChange" @weaponLevelChange="weaponLevelChange" @weaponDurabilityChange="weaponDurabilityChange" @handChipSelect="handChipSelect" @@ -503,7 +503,7 @@ export default { this.lvFilter = value; this.getMyNftList(); }, - heroQuilityChange(value) { + heroQualityChange(value) { this.qualityFilter = value; this.getMyNftList(); }, @@ -525,7 +525,7 @@ export default { this.searchFilters = value; this.getMyNftList(); }, - weaponQuilityChange(value) { + weaponQualityChange(value) { this.qualityFilter = value; this.getMyNftList(); },