fix
This commit is contained in:
parent
f540cedd0e
commit
b598f60426
@ -30,7 +30,7 @@ export default class extends mixins(ResizeMixin) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
created() {
|
created() {
|
||||||
console.log("main app created");
|
// console.log("main app created");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -67,7 +67,7 @@ export default class ChainModal extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cardClicked(id: number) {
|
cardClicked(id: number) {
|
||||||
console.log('card clicked: ', id)
|
// console.log('card clicked: ', id)
|
||||||
this.confirmFun && this.confirmFun(id)
|
this.confirmFun && this.confirmFun(id)
|
||||||
this.hideModal()
|
this.hideModal()
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ export default class extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toPage(index: number) {
|
toPage(index: number) {
|
||||||
console.log('toPage:', index)
|
// console.log('toPage:', index)
|
||||||
this.slide.goToPage(index, 0)
|
this.slide.goToPage(index, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,8 +35,8 @@ export default class extends Vue {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.cardList.length = 0;
|
this.cardList.length = 0;
|
||||||
console.log("nftDatas change");
|
// console.log("nftDatas change");
|
||||||
console.log(this.nftDatas);
|
// console.log(this.nftDatas);
|
||||||
for (const data of this.nftDatas) {
|
for (const data of this.nftDatas) {
|
||||||
this.cardList.push(data);
|
this.cardList.push(data);
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ export default class extends Vue {
|
|||||||
inputChange(event: KeyboardEvent) {
|
inputChange(event: KeyboardEvent) {
|
||||||
if (event.keyCode === 13 || event.which === 13) {
|
if (event.keyCode === 13 || event.which === 13) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
console.log(this.currentPage)
|
// console.log(this.currentPage)
|
||||||
this.toPage(this.currentPage)
|
this.toPage(this.currentPage)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -147,7 +147,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
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: {
|
computed: {
|
||||||
id() {
|
id() {
|
||||||
@ -204,20 +204,17 @@ export default {
|
|||||||
},
|
},
|
||||||
handBuyShow() {
|
handBuyShow() {
|
||||||
this.$emit("handBuyShow", this.piece);
|
this.$emit("handBuyShow", this.piece);
|
||||||
console.log("handBuyShow");
|
// console.log("handBuyShow");
|
||||||
},
|
},
|
||||||
async handRemove() {
|
async handRemove() {
|
||||||
console.log(
|
|
||||||
this.piece.o_link,
|
|
||||||
CONTRACT_ADDRESS[AppModule.chainId].marketDddress
|
|
||||||
);
|
|
||||||
try {
|
try {
|
||||||
this.showLoading();
|
this.showLoading();
|
||||||
const nftres = await this.chainManager.bc.beginCancelOrder(
|
const nftres = await this.chainManager.bc.beginCancelOrder(
|
||||||
this.piece.o_link,
|
this.piece.o_link,
|
||||||
CONTRACT_ADDRESS[AppModule.chainId].marketDddress
|
CONTRACT_ADDRESS[AppModule.chainId].marketDddress
|
||||||
);
|
);
|
||||||
console.log(nftres, "beginSell");
|
// console.log(nftres, "beginSell");
|
||||||
if (nftres.status == true) {
|
if (nftres.status == true) {
|
||||||
this.$emit("handMessage", 1);
|
this.$emit("handMessage", 1);
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
|
@ -79,7 +79,7 @@ export default class extends Vue {
|
|||||||
// return this.nftList;
|
// return this.nftList;
|
||||||
// }
|
// }
|
||||||
created() {
|
created() {
|
||||||
console.log(this.nftList, "nftlist1");
|
// console.log(this.nftList, "nftlist1");
|
||||||
}
|
}
|
||||||
private sorts = ["None", "Latest", "Cheapest Item", "Most Expensive"];
|
private sorts = ["None", "Latest", "Cheapest Item", "Most Expensive"];
|
||||||
showFilter() {
|
showFilter() {
|
||||||
@ -87,10 +87,10 @@ export default class extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sortChange(id: number) {
|
sortChange(id: number) {
|
||||||
console.log("sort change: ", id);
|
// console.log("sort change: ", id);
|
||||||
}
|
}
|
||||||
handclick(){
|
handclick(){
|
||||||
console.log(this.nftList, "nftlist1");
|
// console.log(this.nftList, "nftlist1");
|
||||||
}
|
}
|
||||||
getMarketNftList(){
|
getMarketNftList(){
|
||||||
this.$emit('getMarketNftList')
|
this.$emit('getMarketNftList')
|
||||||
|
@ -204,7 +204,7 @@ export default {
|
|||||||
if (b == null) return 1;
|
if (b == null) return 1;
|
||||||
return (b.idx || 0) - (a.idx || 0);
|
return (b.idx || 0) - (a.idx || 0);
|
||||||
});
|
});
|
||||||
console.log(list);
|
// console.log(list);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeTip() {
|
closeTip() {
|
||||||
|
@ -139,7 +139,6 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
chipStatus(item) {
|
chipStatus(item) {
|
||||||
console.log(item, "chipStatus");
|
|
||||||
this.$emit("chipStatus", item);
|
this.$emit("chipStatus", item);
|
||||||
},
|
},
|
||||||
sliderChange() {
|
sliderChange() {
|
||||||
|
@ -161,7 +161,7 @@ export default {
|
|||||||
this.$emit("heroDurabilityChange", Durability);
|
this.$emit("heroDurabilityChange", Durability);
|
||||||
},
|
},
|
||||||
levelonChange(newVal2) {
|
levelonChange(newVal2) {
|
||||||
console.log(newVal2, "scale2");
|
// console.log(newVal2, "scale2");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -26,18 +26,13 @@
|
|||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
<div class="hero-img">
|
<div class="hero-img">
|
||||||
<img
|
<img width="214px" :src="imgeSrc" alt="" />
|
||||||
v-if="data.item_id"
|
<!-- <img
|
||||||
width="214px"
|
|
||||||
:src="require('@/assets/market/hero/' + data.item_id + '.png')"
|
|
||||||
alt=""
|
|
||||||
/>
|
|
||||||
<img
|
|
||||||
v-if="data.c_id"
|
v-if="data.c_id"
|
||||||
width="214px"
|
width="214px"
|
||||||
:src="require('@/assets/market/hero/' + data.c_id + '.png')"
|
:src="imgeSrc"
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/> -->
|
||||||
<!-- <img width="214px" :src="data.details.image" alt="" /> -->
|
<!-- <img width="214px" :src="data.details.image" alt="" /> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="hero-name">
|
<div class="hero-name">
|
||||||
@ -173,7 +168,13 @@ export default class HeroNft extends Vue {
|
|||||||
{ Image: require("@/assets/market/hero/star02.png") },
|
{ Image: require("@/assets/market/hero/star02.png") },
|
||||||
];
|
];
|
||||||
starList: any[] = [];
|
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) {
|
fillZero(str: number | string) {
|
||||||
var realNum;
|
var realNum;
|
||||||
if (str < 10) {
|
if (str < 10) {
|
||||||
@ -244,8 +245,6 @@ export default class HeroNft extends Vue {
|
|||||||
this.isPiecePut = true;
|
this.isPiecePut = true;
|
||||||
}
|
}
|
||||||
handPutHide() {
|
handPutHide() {
|
||||||
console.log("handPutHide,策划功能成功");
|
|
||||||
|
|
||||||
this.isPiecePut = false;
|
this.isPiecePut = false;
|
||||||
}
|
}
|
||||||
handBuyShow() {
|
handBuyShow() {
|
||||||
@ -263,16 +262,13 @@ export default class HeroNft extends Vue {
|
|||||||
let msg: any = this.$refs.message;
|
let msg: any = this.$refs.message;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
msg.close();
|
msg.close();
|
||||||
console.log("msg2024");
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
handMessage(number: any) {
|
handMessage(number: any) {
|
||||||
console.log("msg");
|
|
||||||
let msg: any = this.$refs.message;
|
let msg: any = this.$refs.message;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
msg.open(number);
|
msg.open(number);
|
||||||
console.log("msg2023");
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -187,6 +187,7 @@ export default {
|
|||||||
qualityNumber() {
|
qualityNumber() {
|
||||||
return this.weapon.detail.quality;
|
return this.weapon.detail.quality;
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
chipDialogHide() {
|
chipDialogHide() {
|
||||||
|
@ -232,7 +232,7 @@ export default class WalletPanel extends Vue {
|
|||||||
if (currentData) {
|
if (currentData) {
|
||||||
const cec = await this.chainManager.getBalance(currentData.cec, this.currentNet)
|
const cec = await this.chainManager.getBalance(currentData.cec, this.currentNet)
|
||||||
const ceg = await this.chainManager.getBalance(currentData.ceg, 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 updateCoinData = (i: number, amount: number) => {
|
||||||
const cecData = this.coinList[i]
|
const cecData = this.coinList[i]
|
||||||
cecData.amount = formatPrice(amount, 18)
|
cecData.amount = formatPrice(amount, 18)
|
||||||
@ -245,7 +245,7 @@ export default class WalletPanel extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async onCardClicked(data: ICoinData) {
|
async onCardClicked(data: ICoinData) {
|
||||||
console.log('on coin card clicked: ', data)
|
// console.log('on coin card clicked: ', data)
|
||||||
let value = 0
|
let value = 0
|
||||||
try {
|
try {
|
||||||
value = await this.pickAmount({
|
value = await this.pickAmount({
|
||||||
|
@ -141,11 +141,11 @@ export default {
|
|||||||
init(data) {
|
init(data) {
|
||||||
this.detailVisible = true;
|
this.detailVisible = true;
|
||||||
this.piece = data;
|
this.piece = data;
|
||||||
console.log(data, "dfgdg");
|
// console.log(data, "dfgdg");
|
||||||
},
|
},
|
||||||
|
|
||||||
async handMessage() {
|
async handMessage() {
|
||||||
console.log(this.piece, "this.price======");
|
// console.log(this.piece, "this.price======");
|
||||||
if (this.piece.selling > 0) {
|
if (this.piece.selling > 0) {
|
||||||
try {
|
try {
|
||||||
const nftres = await this.chainManager.bc.beginUpdatePrice(
|
const nftres = await this.chainManager.bc.beginUpdatePrice(
|
||||||
@ -153,7 +153,7 @@ export default {
|
|||||||
this.prices,
|
this.prices,
|
||||||
CONTRACT_ADDRESS[AppModule.chainId].marketDddress
|
CONTRACT_ADDRESS[AppModule.chainId].marketDddress
|
||||||
);
|
);
|
||||||
console.log(nftres, "beginSell");
|
// console.log(nftres, "beginSell");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log("query order status error", err);
|
console.log("query order status error", err);
|
||||||
}
|
}
|
||||||
@ -182,7 +182,7 @@ export default {
|
|||||||
marketAddress: CONTRACT_ADDRESS[AppModule.chainId].address,
|
marketAddress: CONTRACT_ADDRESS[AppModule.chainId].address,
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(shellData, "shellData");
|
// console.log(shellData, "shellData");
|
||||||
this.showLoading();
|
this.showLoading();
|
||||||
const nftres = await this.chainManager.bc.beginNftSell(
|
const nftres = await this.chainManager.bc.beginNftSell(
|
||||||
this.nft_Token,
|
this.nft_Token,
|
||||||
@ -195,7 +195,7 @@ export default {
|
|||||||
if (nftres.status == true) {
|
if (nftres.status == true) {
|
||||||
this.showLoading();
|
this.showLoading();
|
||||||
}
|
}
|
||||||
console.log(nftres, "beginSell");
|
// console.log(nftres, "beginSell");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log("query order status error", err);
|
console.log("query order status error", err);
|
||||||
this.showLoading();
|
this.showLoading();
|
||||||
|
@ -120,7 +120,7 @@ export default class extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
closeMe() {
|
closeMe() {
|
||||||
console.log('info close')
|
// console.log('info close')
|
||||||
this.$emit('dialog-show', false)
|
this.$emit('dialog-show', false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,10 @@ export interface INftAttr{
|
|||||||
owner?: string
|
owner?: string
|
||||||
}
|
}
|
||||||
export interface ISpineData {
|
export interface ISpineData {
|
||||||
|
[x: string]: string
|
||||||
|
item_id: any
|
||||||
|
item_id: any
|
||||||
|
item_id: any
|
||||||
details: any
|
details: any
|
||||||
id?: string
|
id?: string
|
||||||
skelName?: string
|
skelName?: string
|
||||||
|
@ -656,8 +656,6 @@ export default class MyNft extends Vue {
|
|||||||
if (res) {
|
if (res) {
|
||||||
const page = res;
|
const page = res;
|
||||||
this.totalPage = page.total || 1;
|
this.totalPage = page.total || 1;
|
||||||
console.log(this.totalPage, "this.totalPage");
|
|
||||||
|
|
||||||
this.pageSize = page.page_size || 10;
|
this.pageSize = page.page_size || 10;
|
||||||
this.starts = page.start;
|
this.starts = page.start;
|
||||||
this.currentPage = page.start / page.page_size + 1;
|
this.currentPage = page.start / page.page_size + 1;
|
||||||
|
@ -614,7 +614,7 @@ export default {
|
|||||||
if (res) {
|
if (res) {
|
||||||
const page = res;
|
const page = res;
|
||||||
this.totalPage = page.total || 1;
|
this.totalPage = page.total || 1;
|
||||||
console.log(this.totalPage, "this.totalPage");
|
// console.log(this.totalPage, "this.totalPage");
|
||||||
this.pageSize = page.page_size || 10;
|
this.pageSize = page.page_size || 10;
|
||||||
this.starts = page.start;
|
this.starts = page.start;
|
||||||
this.currentPage = page.start / page.page_size + 1;
|
this.currentPage = page.start / page.page_size + 1;
|
||||||
|
@ -44,7 +44,7 @@ export default class MobileNft extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
infoShowStatusChange(val: boolean) {
|
infoShowStatusChange(val: boolean) {
|
||||||
console.log('infoShowStatusChange: ', val)
|
// console.log('infoShowStatusChange: ', val)
|
||||||
this.infoShow = val
|
this.infoShow = val
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ export default class NativeLogin extends Vue {
|
|||||||
|
|
||||||
async mounted() {
|
async mounted() {
|
||||||
const act = this.$route.query.a
|
const act = this.$route.query.a
|
||||||
console.log('act: ', act)
|
// console.log('act: ', act)
|
||||||
await this.chainManager.init()
|
await this.chainManager.init()
|
||||||
switch (act) {
|
switch (act) {
|
||||||
case 'login':
|
case 'login':
|
||||||
@ -46,7 +46,7 @@ export default class NativeLogin extends Vue {
|
|||||||
token: UserModule.token,
|
token: UserModule.token,
|
||||||
nonce: AppModule.nonce
|
nonce: AppModule.nonce
|
||||||
}
|
}
|
||||||
console.log(data)
|
// console.log(data)
|
||||||
self.response(data)
|
self.response(data)
|
||||||
}
|
}
|
||||||
if (this.logined) {
|
if (this.logined) {
|
||||||
@ -57,7 +57,7 @@ export default class NativeLogin extends Vue {
|
|||||||
await this.chainManager.login()
|
await this.chainManager.login()
|
||||||
responseSuccess()
|
responseSuccess()
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err)
|
// console.log(err)
|
||||||
const data: any = {
|
const data: any = {
|
||||||
act: 'login',
|
act: 'login',
|
||||||
errcode: 1,
|
errcode: 1,
|
||||||
|
@ -64,7 +64,7 @@ export default class MobileTokenomic extends Vue {
|
|||||||
]
|
]
|
||||||
|
|
||||||
tabChange(val:string) {
|
tabChange(val:string) {
|
||||||
console.log('tag change: ', val)
|
// console.log('tag change: ', val)
|
||||||
this.activeTab = val
|
this.activeTab = val
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user