This commit is contained in:
huangjinming 2023-01-13 16:39:03 +08:00
parent f540cedd0e
commit b598f60426
21 changed files with 45 additions and 50 deletions

View File

@ -30,7 +30,7 @@ export default class extends mixins(ResizeMixin) {
});
};
created() {
console.log("main app created");
// console.log("main app created");
}
}
</script>

View File

@ -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()
}

View File

@ -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)
}

View File

@ -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);
}

View File

@ -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)
}
}

View File

@ -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();

View File

@ -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')

View File

@ -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() {

View File

@ -139,7 +139,6 @@ export default {
methods: {
chipStatus(item) {
console.log(item, "chipStatus");
this.$emit("chipStatus", item);
},
sliderChange() {

View File

@ -161,7 +161,7 @@ export default {
this.$emit("heroDurabilityChange", Durability);
},
levelonChange(newVal2) {
console.log(newVal2, "scale2");
// console.log(newVal2, "scale2");
},
},
};

View File

@ -26,18 +26,13 @@
alt=""
/>
<div class="hero-img">
<img
v-if="data.item_id"
width="214px"
:src="require('@/assets/market/hero/' + data.item_id + '.png')"
alt=""
/>
<img
<img width="214px" :src="imgeSrc" alt="" />
<!-- <img
v-if="data.c_id"
width="214px"
:src="require('@/assets/market/hero/' + data.c_id + '.png')"
:src="imgeSrc"
alt=""
/>
/> -->
<!-- <img width="214px" :src="data.details.image" alt="" /> -->
</div>
<div class="hero-name">
@ -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");
});
}
}

View File

@ -187,6 +187,7 @@ export default {
qualityNumber() {
return this.weapon.detail.quality;
},
},
methods: {
chipDialogHide() {

View File

@ -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({

View File

@ -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();

View File

@ -120,7 +120,7 @@ export default class extends Vue {
}
closeMe() {
console.log('info close')
// console.log('info close')
this.$emit('dialog-show', false)
}
}

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -44,7 +44,7 @@ export default class MobileNft extends Vue {
}
infoShowStatusChange(val: boolean) {
console.log('infoShowStatusChange: ', val)
// console.log('infoShowStatusChange: ', val)
this.infoShow = val
}
}

View File

@ -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,

View File

@ -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
}
}