diff --git a/src/App.vue b/src/App.vue index 852fcb3..41edfaa 100644 --- a/src/App.vue +++ b/src/App.vue @@ -30,7 +30,7 @@ export default class extends mixins(ResizeMixin) { }); }; created() { - console.log("main app created"); + // console.log("main app created"); } } diff --git a/src/components/core/ChainModal.vue b/src/components/core/ChainModal.vue index 68f3417..27fbd94 100644 --- a/src/components/core/ChainModal.vue +++ b/src/components/core/ChainModal.vue @@ -67,7 +67,7 @@ export default class ChainModal extends Vue { } cardClicked(id: number) { - console.log('card clicked: ', id) + // console.log('card clicked: ', id) this.confirmFun && this.confirmFun(id) this.hideModal() } diff --git a/src/components/index/TopSection.vue b/src/components/index/TopSection.vue index 47ab85d..ea102d3 100644 --- a/src/components/index/TopSection.vue +++ b/src/components/index/TopSection.vue @@ -67,7 +67,7 @@ export default class extends Vue { } toPage(index: number) { - console.log('toPage:', index) + // console.log('toPage:', index) this.slide.goToPage(index, 0) } diff --git a/src/components/market/NftList.vue b/src/components/market/NftList.vue index d85c080..05fca13 100644 --- a/src/components/market/NftList.vue +++ b/src/components/market/NftList.vue @@ -35,8 +35,8 @@ export default class extends Vue { return; } this.cardList.length = 0; - console.log("nftDatas change"); - console.log(this.nftDatas); + // console.log("nftDatas change"); + // console.log(this.nftDatas); for (const data of this.nftDatas) { this.cardList.push(data); } diff --git a/src/components/market/Pagination.vue b/src/components/market/Pagination.vue index 915a84a..9d099db 100644 --- a/src/components/market/Pagination.vue +++ b/src/components/market/Pagination.vue @@ -50,7 +50,7 @@ export default class extends Vue { inputChange(event: KeyboardEvent) { if (event.keyCode === 13 || event.which === 13) { event.preventDefault() - console.log(this.currentPage) + // console.log(this.currentPage) this.toPage(this.currentPage) } } diff --git a/src/components/market/Piecedialog.vue b/src/components/market/Piecedialog.vue index e662b6b..5682ac5 100644 --- a/src/components/market/Piecedialog.vue +++ b/src/components/market/Piecedialog.vue @@ -147,7 +147,7 @@ export default { }, }, created() { - console.log(this.piece.detail.item_id, "this.piece.detail.item_id"); + // console.log(this.piece.detail.item_id, "this.piece.detail.item_id"); }, computed: { id() { @@ -204,20 +204,17 @@ export default { }, handBuyShow() { this.$emit("handBuyShow", this.piece); - console.log("handBuyShow"); + // console.log("handBuyShow"); }, async handRemove() { - console.log( - this.piece.o_link, - CONTRACT_ADDRESS[AppModule.chainId].marketDddress - ); + try { this.showLoading(); const nftres = await this.chainManager.bc.beginCancelOrder( this.piece.o_link, CONTRACT_ADDRESS[AppModule.chainId].marketDddress ); - console.log(nftres, "beginSell"); + // console.log(nftres, "beginSell"); if (nftres.status == true) { this.$emit("handMessage", 1); this.hideLoading(); diff --git a/src/components/market/SearchResult.vue b/src/components/market/SearchResult.vue index 5a47bfc..9743dad 100644 --- a/src/components/market/SearchResult.vue +++ b/src/components/market/SearchResult.vue @@ -79,7 +79,7 @@ export default class extends Vue { // return this.nftList; // } created() { - console.log(this.nftList, "nftlist1"); + // console.log(this.nftList, "nftlist1"); } private sorts = ["None", "Latest", "Cheapest Item", "Most Expensive"]; showFilter() { @@ -87,10 +87,10 @@ export default class extends Vue { } sortChange(id: number) { - console.log("sort change: ", id); + // console.log("sort change: ", id); } handclick(){ - console.log(this.nftList, "nftlist1"); + // console.log(this.nftList, "nftlist1"); } getMarketNftList(){ this.$emit('getMarketNftList') diff --git a/src/components/market/WeaponMosaicChip.vue b/src/components/market/WeaponMosaicChip.vue index 87fddf4..129e8f3 100644 --- a/src/components/market/WeaponMosaicChip.vue +++ b/src/components/market/WeaponMosaicChip.vue @@ -204,7 +204,7 @@ export default { if (b == null) return 1; return (b.idx || 0) - (a.idx || 0); }); - console.log(list); + // console.log(list); }, methods: { closeTip() { diff --git a/src/components/market/filters/Chipfilter.vue b/src/components/market/filters/Chipfilter.vue index 5a5f266..5fae951 100644 --- a/src/components/market/filters/Chipfilter.vue +++ b/src/components/market/filters/Chipfilter.vue @@ -139,7 +139,6 @@ export default { methods: { chipStatus(item) { - console.log(item, "chipStatus"); this.$emit("chipStatus", item); }, sliderChange() { diff --git a/src/components/market/filters/Herofilter.vue b/src/components/market/filters/Herofilter.vue index 4432efe..1aa18dc 100644 --- a/src/components/market/filters/Herofilter.vue +++ b/src/components/market/filters/Herofilter.vue @@ -161,7 +161,7 @@ export default { this.$emit("heroDurabilityChange", Durability); }, levelonChange(newVal2) { - console.log(newVal2, "scale2"); + // console.log(newVal2, "scale2"); }, }, }; diff --git a/src/components/market/nft/HeroNft.vue b/src/components/market/nft/HeroNft.vue index 00de214..087a4b3 100644 --- a/src/components/market/nft/HeroNft.vue +++ b/src/components/market/nft/HeroNft.vue @@ -26,18 +26,13 @@ alt="" />
- - +
@@ -173,7 +168,13 @@ export default class HeroNft extends Vue { { Image: require("@/assets/market/hero/star02.png") }, ]; starList: any[] = []; - + get imgeSrc() { + if (this.data.item_id) { + return require(`@/assets/market/hero/${this.data.item_id}.png`); + } else { + return require(`@/assets/market/hero/${this.data.c_id}.png`); + } + } fillZero(str: number | string) { var realNum; if (str < 10) { @@ -244,8 +245,6 @@ export default class HeroNft extends Vue { this.isPiecePut = true; } handPutHide() { - console.log("handPutHide,策划功能成功"); - this.isPiecePut = false; } handBuyShow() { @@ -263,16 +262,13 @@ export default class HeroNft extends Vue { let msg: any = this.$refs.message; this.$nextTick(() => { msg.close(); - console.log("msg2024"); }); }); } handMessage(number: any) { - console.log("msg"); let msg: any = this.$refs.message; this.$nextTick(() => { msg.open(number); - console.log("msg2023"); }); } } diff --git a/src/components/market/nft/WeaponList.vue b/src/components/market/nft/WeaponList.vue index 1553fd5..cca6008 100644 --- a/src/components/market/nft/WeaponList.vue +++ b/src/components/market/nft/WeaponList.vue @@ -187,6 +187,7 @@ export default { qualityNumber() { return this.weapon.detail.quality; }, + }, methods: { chipDialogHide() { diff --git a/src/components/market/wallet/WalletPanel.vue b/src/components/market/wallet/WalletPanel.vue index 093e36e..7a15fd7 100644 --- a/src/components/market/wallet/WalletPanel.vue +++ b/src/components/market/wallet/WalletPanel.vue @@ -232,7 +232,7 @@ export default class WalletPanel extends Vue { if (currentData) { const cec = await this.chainManager.getBalance(currentData.cec, this.currentNet) const ceg = await this.chainManager.getBalance(currentData.ceg, this.currentNet) - console.log(formatPrice(cec, 18), formatPrice(ceg, 18)) + // console.log(formatPrice(cec, 18), formatPrice(ceg, 18)) const updateCoinData = (i: number, amount: number) => { const cecData = this.coinList[i] cecData.amount = formatPrice(amount, 18) @@ -245,7 +245,7 @@ export default class WalletPanel extends Vue { } async onCardClicked(data: ICoinData) { - console.log('on coin card clicked: ', data) + // console.log('on coin card clicked: ', data) let value = 0 try { value = await this.pickAmount({ diff --git a/src/components/mobile/main/TheSellDialog.vue b/src/components/mobile/main/TheSellDialog.vue index 7afea85..7e3ce5d 100644 --- a/src/components/mobile/main/TheSellDialog.vue +++ b/src/components/mobile/main/TheSellDialog.vue @@ -141,11 +141,11 @@ export default { init(data) { this.detailVisible = true; this.piece = data; - console.log(data, "dfgdg"); + // console.log(data, "dfgdg"); }, async handMessage() { - console.log(this.piece, "this.price======"); + // console.log(this.piece, "this.price======"); if (this.piece.selling > 0) { try { const nftres = await this.chainManager.bc.beginUpdatePrice( @@ -153,7 +153,7 @@ export default { this.prices, CONTRACT_ADDRESS[AppModule.chainId].marketDddress ); - console.log(nftres, "beginSell"); + // console.log(nftres, "beginSell"); } catch (err) { console.log("query order status error", err); } @@ -182,7 +182,7 @@ export default { marketAddress: CONTRACT_ADDRESS[AppModule.chainId].address, }; - console.log(shellData, "shellData"); + // console.log(shellData, "shellData"); this.showLoading(); const nftres = await this.chainManager.bc.beginNftSell( this.nft_Token, @@ -195,7 +195,7 @@ export default { if (nftres.status == true) { this.showLoading(); } - console.log(nftres, "beginSell"); + // console.log(nftres, "beginSell"); } catch (err) { console.log("query order status error", err); this.showLoading(); diff --git a/src/components/nft/NftInfo.vue b/src/components/nft/NftInfo.vue index 9c6979c..0866597 100644 --- a/src/components/nft/NftInfo.vue +++ b/src/components/nft/NftInfo.vue @@ -120,7 +120,7 @@ export default class extends Vue { } closeMe() { - console.log('info close') + // console.log('info close') this.$emit('dialog-show', false) } } diff --git a/src/utils/SpineRender.ts b/src/utils/SpineRender.ts index 5447a83..ae72074 100644 --- a/src/utils/SpineRender.ts +++ b/src/utils/SpineRender.ts @@ -12,6 +12,10 @@ export interface INftAttr{ owner?: string } export interface ISpineData { + [x: string]: string + item_id: any + item_id: any + item_id: any details: any id?: string skelName?: string diff --git a/src/views/desktop/MyNft.vue b/src/views/desktop/MyNft.vue index ee3a97d..5b48cc6 100644 --- a/src/views/desktop/MyNft.vue +++ b/src/views/desktop/MyNft.vue @@ -656,8 +656,6 @@ export default class MyNft extends Vue { if (res) { const page = res; this.totalPage = page.total || 1; - console.log(this.totalPage, "this.totalPage"); - this.pageSize = page.page_size || 10; this.starts = page.start; this.currentPage = page.start / page.page_size + 1; diff --git a/src/views/mobile/MyNft.vue b/src/views/mobile/MyNft.vue index 0d58755..08ca125 100644 --- a/src/views/mobile/MyNft.vue +++ b/src/views/mobile/MyNft.vue @@ -614,7 +614,7 @@ export default { if (res) { const page = res; this.totalPage = page.total || 1; - console.log(this.totalPage, "this.totalPage"); + // console.log(this.totalPage, "this.totalPage"); this.pageSize = page.page_size || 10; this.starts = page.start; this.currentPage = page.start / page.page_size + 1; diff --git a/src/views/mobile/NFT.vue b/src/views/mobile/NFT.vue index 3dbf389..02f3c54 100644 --- a/src/views/mobile/NFT.vue +++ b/src/views/mobile/NFT.vue @@ -44,7 +44,7 @@ export default class MobileNft extends Vue { } infoShowStatusChange(val: boolean) { - console.log('infoShowStatusChange: ', val) + // console.log('infoShowStatusChange: ', val) this.infoShow = val } } diff --git a/src/views/mobile/NativeLogin.vue b/src/views/mobile/NativeLogin.vue index 4e3caaf..bbdb6f4 100644 --- a/src/views/mobile/NativeLogin.vue +++ b/src/views/mobile/NativeLogin.vue @@ -23,7 +23,7 @@ export default class NativeLogin extends Vue { async mounted() { const act = this.$route.query.a - console.log('act: ', act) + // console.log('act: ', act) await this.chainManager.init() switch (act) { case 'login': @@ -46,7 +46,7 @@ export default class NativeLogin extends Vue { token: UserModule.token, nonce: AppModule.nonce } - console.log(data) + // console.log(data) self.response(data) } if (this.logined) { @@ -57,7 +57,7 @@ export default class NativeLogin extends Vue { await this.chainManager.login() responseSuccess() } catch (err) { - console.log(err) + // console.log(err) const data: any = { act: 'login', errcode: 1, diff --git a/src/views/mobile/Tokenomic.vue b/src/views/mobile/Tokenomic.vue index 28da50b..807c0a8 100644 --- a/src/views/mobile/Tokenomic.vue +++ b/src/views/mobile/Tokenomic.vue @@ -64,7 +64,7 @@ export default class MobileTokenomic extends Vue { ] tabChange(val:string) { - console.log('tag change: ', val) + // console.log('tag change: ', val) this.activeTab = val } }