This commit is contained in:
huangjinming 2023-01-17 19:04:04 +08:00
parent ce30106cca
commit 9e5bde826b
28 changed files with 92 additions and 93 deletions

View File

@ -139,7 +139,7 @@ export default {
? this.piece.s_currency ? this.piece.s_currency
: this.data.s_currency, : this.data.s_currency,
price: this.piece.s_price ? this.piece.s_price : this.data.s_price, 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"); console.log(data, "beginApproveBuy");
try { try {
@ -147,7 +147,7 @@ export default {
const nftres = await this.chainManager.bc.beginApproveBuy( const nftres = await this.chainManager.bc.beginApproveBuy(
this.piece.s_currency ? this.piece.s_currency : this.data.s_currency, this.piece.s_currency ? this.piece.s_currency : this.data.s_currency,
this.piece.s_price ? this.piece.s_price : this.data.s_price, 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"); console.log(nftres, "beginApproveBuy");
if (nftres.status == true) { if (nftres.status == true) {
@ -171,7 +171,7 @@ export default {
this.showLoading(); this.showLoading();
const nftres = await this.chainManager.bc.beginBuy( const nftres = await this.chainManager.bc.beginBuy(
this.piece.o_link ? this.piece.o_link : this.data.o_link, 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) { if (nftres.status == true) {
this.hideLoading(); this.hideLoading();

View File

@ -193,7 +193,7 @@ export default {
this.showLoading() this.showLoading()
const nftres = await this.chainManager.bc.beginCancelOrder( const nftres = await this.chainManager.bc.beginCancelOrder(
this.data.o_link, this.data.o_link,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.$emit("handMessage", 1); this.$emit("handMessage", 1);

View File

@ -343,7 +343,7 @@ export default {
this.showLoading() this.showLoading()
const nftres = await this.chainManager.bc.beginCancelOrder( const nftres = await this.chainManager.bc.beginCancelOrder(
this.data.o_link, this.data.o_link,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
console.log(nftres, "beginSell"); console.log(nftres, "beginSell");
if (nftres.status == true) { if (nftres.status == true) {

View File

@ -3,7 +3,7 @@
<HeroFilter <HeroFilter
v-if="nftType - 1 == 0" v-if="nftType - 1 == 0"
@heroLevelChange="heroLevelChange" @heroLevelChange="heroLevelChange"
@heroQuilityChange="heroQuilityChange" @heroQualityChange="heroQualityChange"
@heroDurabilityChange="heroDurabilityChange" @heroDurabilityChange="heroDurabilityChange"
@handSelect="handSelect" @handSelect="handSelect"
@heroSearch="heroSearch" @heroSearch="heroSearch"
@ -25,7 +25,7 @@
@weaponSearch="weaponSearch" @weaponSearch="weaponSearch"
@handWeaponSelect="handWeaponSelect" @handWeaponSelect="handWeaponSelect"
@weaponLevelChange="weaponLevelChange" @weaponLevelChange="weaponLevelChange"
@weaponQuilityChange="weaponQuilityChange" @weaponQualityChange="weaponQualityChange"
@weaponDurabilityChange="weaponDurabilityChange" @weaponDurabilityChange="weaponDurabilityChange"
@handPriceMax="handPriceMax" @handPriceMax="handPriceMax"
@handPriceMin="handPriceMin" @handPriceMin="handPriceMin"
@ -117,8 +117,8 @@ export default {
heroLevelChange(levelSlider) { heroLevelChange(levelSlider) {
this.$emit("heroLevelChange", levelSlider); this.$emit("heroLevelChange", levelSlider);
}, },
heroQuilityChange(Quility) { heroQualityChange(Quality) {
this.$emit("heroQuilityChange", Quility); this.$emit("heroQualityChange", Quality);
}, },
heroDurabilityChange(Durability) { heroDurabilityChange(Durability) {
this.$emit("heroDurabilityChange", Durability); this.$emit("heroDurabilityChange", Durability);
@ -133,8 +133,8 @@ export default {
handWeaponSelect(value) { handWeaponSelect(value) {
this.$emit("handWeaponSelect", value); this.$emit("handWeaponSelect", value);
}, },
weaponQuilityChange(value) { weaponQualityChange(value) {
this.$emit("weaponQuilityChange", value); this.$emit("weaponQualityChange", value);
}, },
weaponLevelChange(value) { weaponLevelChange(value) {
this.$emit("weaponLevelChange", value); this.$emit("weaponLevelChange", value);

View File

@ -84,7 +84,7 @@ export default {
const nftres = await this.chainManager.bc.beginApproveBuy( const nftres = await this.chainManager.bc.beginApproveBuy(
this.data.s_currency, this.data.s_currency,
this.data.s_price, this.data.s_price,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.isApprove = true; this.isApprove = true;
@ -104,7 +104,7 @@ export default {
this.showLoading(); this.showLoading();
const nftres = await this.chainManager.bc.beginBuy( const nftres = await this.chainManager.bc.beginBuy(
this.data.o_link, this.data.o_link,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.hideLoading(); this.hideLoading();

View File

@ -109,7 +109,7 @@
</div> </div>
<div> <div>
{{ {{
hero.detail.rand_attr[0].val hero.detail
? hero.detail.rand_attr[0].val >= 100 ? hero.detail.rand_attr[0].val >= 100
? parseInt(hero.detail.rand_attr[0].val * 1) ? parseInt(hero.detail.rand_attr[0].val * 1)
: (hero.detail.rand_attr[0].val * 1).toFixed(2) : (hero.detail.rand_attr[0].val * 1).toFixed(2)
@ -130,7 +130,7 @@
</div> </div>
<div> <div>
{{ {{
hero.detail.rand_attr[1].val hero.detail
? hero.detail.rand_attr[1].val >= 100 ? hero.detail.rand_attr[1].val >= 100
? parseInt(hero.detail.rand_attr[1].val * 1) ? parseInt(hero.detail.rand_attr[1].val * 1)
: (hero.detail.rand_attr[1].val * 1).toFixed(2) : (hero.detail.rand_attr[1].val * 1).toFixed(2)
@ -152,7 +152,7 @@
</div> </div>
<div> <div>
{{ {{
hero.detail.rand_attr[2].val hero.detail
? hero.detail.rand_attr[2].val >= 100 ? hero.detail.rand_attr[2].val >= 100
? parseInt(hero.detail.rand_attr[2].val * 1) ? parseInt(hero.detail.rand_attr[2].val * 1)
: (hero.detail.rand_attr[2].val * 1).toFixed(2) : (hero.detail.rand_attr[2].val * 1).toFixed(2)
@ -173,7 +173,7 @@
</div> </div>
<div> <div>
{{ {{
hero.detail.rand_attr[4].val hero.detail
? (hero.detail.rand_attr[4].val * 1 * 100).toFixed(2) ? (hero.detail.rand_attr[4].val * 1 * 100).toFixed(2)
: "0" : "0"
}}% }}%
@ -192,7 +192,7 @@
</div> </div>
<div> <div>
{{ {{
hero.detail.rand_attr[5].val hero.detail
? (hero.detail.rand_attr[5].val * 1 * 100).toFixed(2) ? (hero.detail.rand_attr[5].val * 1 * 100).toFixed(2)
: "0" : "0"
}}% }}%
@ -211,7 +211,7 @@
</div> </div>
<div> <div>
{{ {{
hero.detail.rand_attr[6].val hero.detail
? (hero.detail.rand_attr[6].val * 1 * 100).toFixed(2) ? (hero.detail.rand_attr[6].val * 1 * 100).toFixed(2)
: "0" : "0"
}}% }}%
@ -230,7 +230,7 @@
</div> </div>
<div> <div>
{{ {{
hero.detail.rand_attr[7].val hero.detail
? (hero.detail.rand_attr[7].val * 1 * 100).toFixed(2) ? (hero.detail.rand_attr[7].val * 1 * 100).toFixed(2)
: "0" : "0"
}}% }}%
@ -277,7 +277,7 @@
<div class="mynft" v-if="isType === 'mynft'"> <div class="mynft" v-if="isType === 'mynft'">
<div class="for-rent-btn" v-if="hero.o_link > 0"> <div class="for-rent-btn" v-if="hero.o_link > 0">
<div class="adjust" @click="handPutShow(hero)"></div> <div class="adjust" @click="handPutShow(hero)"></div>
<div class="remove" @click="handremove"></div> <div class="remove" @click="handRemove"></div>
</div> </div>
<div v-else> <div v-else>
<div class="rent"></div> <div class="rent"></div>
@ -396,12 +396,12 @@ export default {
handBuyShow() { handBuyShow() {
this.$emit("handBuyShow"); this.$emit("handBuyShow");
}, },
async handremove() { async handRemove() {
try { try {
this.showLoading(); this.showLoading();
const nftres = await this.chainManager.bc.beginCancelOrder( const nftres = await this.chainManager.bc.beginCancelOrder(
this.hero.o_link, this.hero.o_link,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.$emit("handMessage", 1); this.$emit("handMessage", 1);

View File

@ -115,7 +115,6 @@ export default {
item_id: null, item_id: null,
}, },
}, },
piecedata: {},
loadingInstance: null, loadingInstance: null,
dialogVisible: false, dialogVisible: false,
visible: this.isShow, visible: this.isShow,
@ -180,7 +179,7 @@ export default {
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].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.$emit("handMessage", 1); this.$emit("handMessage", 1);

View File

@ -177,7 +177,7 @@ export default {
const nftres = await this.chainManager.bc.beginUpdatePrice( const nftres = await this.chainManager.bc.beginUpdatePrice(
this.type == "piece" ? this.piece.o_link : this.data.o_link, this.type == "piece" ? this.piece.o_link : this.data.o_link,
this.shell.price, this.shell.price,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.hideLoading(); this.hideLoading();
@ -222,7 +222,7 @@ export default {
: this.data.detail.token_id, : this.data.detail.token_id,
this.nft_Token, this.nft_Token,
this.type == "hero" || this.type == "weapon" ? false : true, this.type == "hero" || this.type == "weapon" ? false : true,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.isApprove = true; this.isApprove = true;
@ -271,7 +271,7 @@ export default {
: this.data.detail.token_id, : this.data.detail.token_id,
this.piece ? this.cunout : 1, this.piece ? this.cunout : 1,
this.shell.price, this.shell.price,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.hideLoading(); this.hideLoading();

View File

@ -114,7 +114,7 @@ export default {
const nftres = await this.chainManager.bc.beginApproveBuy( const nftres = await this.chainManager.bc.beginApproveBuy(
this.data.s_currency, this.data.s_currency,
this.data.s_price, this.data.s_price,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.isApprove = true; this.isApprove = true;
@ -133,7 +133,7 @@ export default {
this.showLoading(); this.showLoading();
const nftres = await this.chainManager.bc.beginBuy( const nftres = await this.chainManager.bc.beginBuy(
this.data.o_link, this.data.o_link,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.hideLoading(); this.hideLoading();

View File

@ -35,7 +35,7 @@
</div> </div>
<div class="level-filter"> <div class="level-filter">
<div class="level-item"> <div class="level-item">
<div class="btn-bg">Quility</div> <div class="btn-bg">Quality</div>
<div class="level-slider"> <div class="level-slider">
<div> <div>
<Slider <Slider

View File

@ -35,12 +35,12 @@
</div> </div>
<div class="level-filter"> <div class="level-filter">
<div class="level-item"> <div class="level-item">
<div class="btn-bg">Quility</div> <div class="btn-bg">Quality</div>
<div class="level-slider"> <div class="level-slider">
<div> <div>
<Slider <Slider
:max="15" :max="15"
@onChange="heroQuilityChange" @onChange="heroQualityChange"
:min="0" :min="0"
:value="value" :value="value"
></Slider> ></Slider>
@ -151,8 +151,8 @@ export default {
handSelect(value) { handSelect(value) {
this.$emit("handSelect", value); this.$emit("handSelect", value);
}, },
heroQuilityChange(Quility) { heroQualityChange(Quality) {
this.$emit("heroQuilityChange", Quility); this.$emit("heroQualityChange", Quality);
}, },
heroLevelChange(levelSlider) { heroLevelChange(levelSlider) {
this.$emit("heroLevelChange", levelSlider); this.$emit("heroLevelChange", levelSlider);

View File

@ -13,12 +13,12 @@
/> />
<div class="level-filter"> <div class="level-filter">
<div class="level-item"> <div class="level-item">
<div class="btn-bg">Quility</div> <div class="btn-bg">Quality</div>
<div class="level-slider"> <div class="level-slider">
<div> <div>
<Slider <Slider
:max="15" :max="15"
@onChange="weaponQuilityChange" @onChange="weaponQualityChange"
:min="0" :min="0"
:value="value" :value="value"
></Slider> ></Slider>
@ -172,8 +172,8 @@ export default {
// console.log(value); // console.log(value);
this.$emit("handWeaponSelect", value); this.$emit("handWeaponSelect", value);
}, },
weaponQuilityChange(value) { weaponQualityChange(value) {
this.$emit("weaponQuilityChange", value); this.$emit("weaponQualityChange", value);
}, },
weaponLevelChange(value) { weaponLevelChange(value) {
this.$emit("weaponLevelChange", value); this.$emit("weaponLevelChange", value);

View File

@ -58,7 +58,7 @@
</div> </div>
<ChipDialog <ChipDialog
:dialogVisible="dialogVisible" :dialogVisible="dialogVisible"
@on-close="chipDialoghide" @on-close="chipDialogHide"
@on-click="chipDialog" @on-click="chipDialog"
:type="type" :type="type"
:isBuy="isBuy" :isBuy="isBuy"
@ -76,7 +76,7 @@
:type="type" :type="type"
:isBuy="isBuy" :isBuy="isBuy"
:data="chip" :data="chip"
@on-close="chipDialoghide" @on-close="chipDialogHide"
@handMessage="handMessage" @handMessage="handMessage"
@getMarketNftList="getMarketNftList" @getMarketNftList="getMarketNftList"
@handMessageHide="handMessageHide" @handMessageHide="handMessageHide"
@ -88,7 +88,7 @@
:data="chip" :data="chip"
v-if="currencyTypeList" v-if="currencyTypeList"
:currencyTypeList="currencyTypeList" :currencyTypeList="currencyTypeList"
@on-close="chipDialoghide" @on-close="chipDialogHide"
@getMarketNftList="getMarketNftList" @getMarketNftList="getMarketNftList"
@handMessageHide="handMessageHide" @handMessageHide="handMessageHide"
:isPiecePut="isPiecePut" :isPiecePut="isPiecePut"
@ -127,7 +127,7 @@ export default {
}; };
}, },
methods: { methods: {
chipDialoghide() { chipDialogHide() {
this.dialogVisible = false; this.dialogVisible = false;
}, },
formatPriceShow(price, decimals, fixed = 2) { formatPriceShow(price, decimals, fixed = 2) {

View File

@ -26,7 +26,7 @@
alt="" alt=""
/> />
<div class="hero-img"> <div class="hero-img">
<img width="214px" :src="imgeSrc" alt="" /> <img width="214px" :src="imageSrc" alt="" />
</div> </div>
<div class="hero-name"> <div class="hero-name">
{{ data.c_name ? data.c_name : data.detail.hero_name }} {{ data.c_name ? data.c_name : data.detail.hero_name }}
@ -86,7 +86,7 @@
</div> </div>
<HeroDialog <HeroDialog
:dialogVisible="dialogVisible" :dialogVisible="dialogVisible"
@on-close="handDialoghide" @on-close="handDialogHide"
:isTab="isTab" :isTab="isTab"
:isType="isType" :isType="isType"
:type="type" :type="type"
@ -112,7 +112,7 @@
@getMarketNftList="getMarketNftList" @getMarketNftList="getMarketNftList"
@handPutShow="handPutShow" @handPutShow="handPutShow"
@handPutHide="handPutHide" @handPutHide="handPutHide"
@on-close="handDialoghide" @on-close="handDialogHide"
@handMessage="handMessage" @handMessage="handMessage"
@handMessageHide="handMessageHide" @handMessageHide="handMessageHide"
></TheSellDialog> ></TheSellDialog>
@ -122,7 +122,7 @@
:data="data" :data="data"
@handMessage="handMessage" @handMessage="handMessage"
@handMessageHide="handMessageHide" @handMessageHide="handMessageHide"
@on-close="handDialoghide" @on-close="handDialogHide"
@getMarketNftList="getMarketNftList" @getMarketNftList="getMarketNftList"
@handBuyShow="handBuyShow" @handBuyShow="handBuyShow"
@handBuyHide="handBuyHide" @handBuyHide="handBuyHide"
@ -162,7 +162,7 @@ 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() { get imageSrc() {
if (this.data.item_id) { if (this.data.item_id) {
return require(`@/assets/market/hero/${this.data.item_id}.png`); return require(`@/assets/market/hero/${this.data.item_id}.png`);
} else { } else {
@ -185,8 +185,8 @@ export default class HeroNft extends Vue {
this.isTab = hide; this.isTab = hide;
} }
@Watch("data.detail.quality") @Watch("data.detail.quality")
haldQuality(neWvalue: any, oldValue: any) { haldQuality(neWValue: any, oldValue: any) {
this.quality = neWvalue; this.quality = neWValue;
} }
created() { created() {
if (this.qualityNumber > 0 && this.qualityNumber <= 5) { if (this.qualityNumber > 0 && this.qualityNumber <= 5) {
@ -229,7 +229,7 @@ export default class HeroNft extends Vue {
this.dialogVisible = true; this.dialogVisible = true;
} }
handDialoghide(data: boolean) { handDialogHide(data: boolean) {
this.dialogVisible = data; this.dialogVisible = data;
} }
getMarketNftList() { getMarketNftList() {

View File

@ -20,7 +20,7 @@
</div> </div>
<div class="level-filter"> <div class="level-filter">
<div class="level-item"> <div class="level-item">
<div class="btn-bg">Quility</div> <div class="btn-bg">Quality</div>
<div class="level-slider"> <div class="level-slider">
<div class="slider"> <div class="slider">
<Slider <Slider

View File

@ -170,7 +170,7 @@ export default {
this.showLoading() this.showLoading()
const nftres = await this.chainManager.bc.beginCancelOrder( const nftres = await this.chainManager.bc.beginCancelOrder(
this.chip.o_link, this.chip.o_link,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.$emit("handMessage", 1); this.$emit("handMessage", 1);

View File

@ -363,7 +363,7 @@ export default {
this.showLoading(); this.showLoading();
const nftres = await this.chainManager.bc.beginCancelOrder( const nftres = await this.chainManager.bc.beginCancelOrder(
this.hero.o_link, this.hero.o_link,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.$emit("handMessage", 1); this.$emit("handMessage", 1);

View File

@ -19,14 +19,14 @@
</div> </div>
<div class="level-filter"> <div class="level-filter">
<div class="level-item"> <div class="level-item">
<div class="btn-bg">Quility</div> <div class="btn-bg">Quality</div>
<div class="level-slider"> <div class="level-slider">
<div class="slider"> <div class="slider">
<Slider <Slider
:min="0" :min="0"
:max="15" :max="15"
v-model="Quility" v-model="Quality"
@change="heroQuilityChange" @change="heroQualityChange"
></Slider> ></Slider>
</div> </div>
<div class="slider-number"> <div class="slider-number">
@ -117,7 +117,7 @@ export default {
hero: "", hero: "",
Level: 0, Level: 0,
durability: 0, durability: 0,
Quility: 0, Quality: 0,
}; };
}, },
mounted() { mounted() {
@ -145,8 +145,8 @@ export default {
heroLevelChange(value) { heroLevelChange(value) {
this.$emit("heroLevelChange", value); this.$emit("heroLevelChange", value);
}, },
heroQuilityChange(value) { heroQualityChange(value) {
this.$emit("heroQuilityChange", value); this.$emit("heroQualityChange", value);
}, },
heroDurabilityChange(value) { heroDurabilityChange(value) {
this.$emit("heroDurabilityChange", value); this.$emit("heroDurabilityChange", value);

View File

@ -142,7 +142,7 @@ export default {
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].marketAddress
); );
// console.log(nftres, "beginSell"); // console.log(nftres, "beginSell");
if (nftres.status == true) { if (nftres.status == true) {

View File

@ -106,7 +106,7 @@ export default {
const nftres = await this.chainManager.bc.beginApproveBuy( const nftres = await this.chainManager.bc.beginApproveBuy(
this.piece.s_currency, this.piece.s_currency,
this.piece.s_price, this.piece.s_price,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.isApprove = true; this.isApprove = true;
@ -126,7 +126,7 @@ export default {
this.showLoading(); this.showLoading();
const nftres = await this.chainManager.bc.beginBuy( const nftres = await this.chainManager.bc.beginBuy(
this.piece.o_link, this.piece.o_link,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.hideLoading(); this.hideLoading();

View File

@ -187,7 +187,7 @@ export default {
const nftres = await this.chainManager.bc.beginUpdatePrice( const nftres = await this.chainManager.bc.beginUpdatePrice(
this.piece.o_link, this.piece.o_link,
this.shell.price, this.shell.price,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.hideLoading(); this.hideLoading();
@ -230,7 +230,7 @@ export default {
this.piece.detail.token_id, this.piece.detail.token_id,
this.nft_Token, this.nft_Token,
this.type == "hero" || this.type == "weapon" ? false : true, this.type == "hero" || this.type == "weapon" ? false : true,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.isApprove = true; this.isApprove = true;
@ -271,7 +271,7 @@ export default {
this.piece.detail.token_id, this.piece.detail.token_id,
this.type == "piece" ? this.cunout : 1, this.type == "piece" ? this.cunout : 1,
this.shell.price, this.shell.price,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
if (nftres.status == true) { if (nftres.status == true) {
this.hideLoading(); this.hideLoading();

View File

@ -8,14 +8,14 @@
</div> </div>
<div class="level-filter"> <div class="level-filter">
<div class="level-item"> <div class="level-item">
<div class="btn-bg">Quility</div> <div class="btn-bg">Quality</div>
<div class="level-slider"> <div class="level-slider">
<div class="slider"> <div class="slider">
<Slider <Slider
:min="0" :min="0"
:max="15" :max="15"
v-model="value" v-model="value"
@change="weaponQuilityChange" @change="weaponQualityChange"
></Slider> ></Slider>
</div> </div>
<div class="slider-number"> <div class="slider-number">
@ -107,8 +107,8 @@ export default {
handWeaponSelect(value) { handWeaponSelect(value) {
this.$emit("handWeaponSelect", value); this.$emit("handWeaponSelect", value);
}, },
weaponQuilityChange(value) { weaponQualityChange(value) {
this.$emit("weaponQuilityChange", value); this.$emit("weaponQualityChange", value);
}, },
weaponLevelChange(value) { weaponLevelChange(value) {
this.$emit("weaponLevelChange", value); this.$emit("weaponLevelChange", value);

View File

@ -309,7 +309,7 @@ export default {
this.showLoading() this.showLoading()
const nftres = await this.chainManager.bc.beginCancelOrder( const nftres = await this.chainManager.bc.beginCancelOrder(
this.weapon.o_link, this.weapon.o_link,
CONTRACT_ADDRESS[AppModule.chainId].marketDddress CONTRACT_ADDRESS[AppModule.chainId].marketAddress
); );
console.log(nftres, "beginSell"); console.log(nftres, "beginSell");
if (nftres.status == true) { if (nftres.status == true) {

View File

@ -71,7 +71,7 @@ export const CONTRACT_ADDRESS:{[key: number]: any} = {
weapon: "0x2612Af3A521c2df9EAF28422Ca335b04AdF3ac66", weapon: "0x2612Af3A521c2df9EAF28422Ca335b04AdF3ac66",
chip: "0x26b4AFb60d6C903165150C6F0AA14F8016bE4aec", chip: "0x26b4AFb60d6C903165150C6F0AA14F8016bE4aec",
piece: "0x0E696947A06550DEf604e82C26fd9E493e576337", piece: "0x0E696947A06550DEf604e82C26fd9E493e576337",
marketDddress: "0xFC628dd79137395F3C9744e33b1c5DE554D94882", marketAddress: "0xFC628dd79137395F3C9744e33b1c5DE554D94882",
}, },
80001: { 80001: {
cec: '0xfeFc3aab779863c1624eE008aba485c53805dCeb', cec: '0xfeFc3aab779863c1624eE008aba485c53805dCeb',
@ -82,6 +82,6 @@ export const CONTRACT_ADDRESS:{[key: number]: any} = {
weapon: "0x2F2Ed1c403cB7156617449795dE1CB47A0302a25", weapon: "0x2F2Ed1c403cB7156617449795dE1CB47A0302a25",
chip: "0x73482411443E87CAC124C12A10B34e9Aaa2De168", chip: "0x73482411443E87CAC124C12A10B34e9Aaa2De168",
piece: "0xFc21A863bFb4E4534B246078772e2074e076f0a7", piece: "0xFc21A863bFb4E4534B246078772e2074e076f0a7",
marketDddress: "0x806eA3301c2bA2a3C710D97931a6C0Fe00E45B33" marketAddress: "0x806eA3301c2bA2a3C710D97931a6C0Fe00E45B33"
}, },
} }

View File

@ -12,10 +12,10 @@
@jobStatus="jobStatus" @jobStatus="jobStatus"
@pieceStatus="pieceStatus" @pieceStatus="pieceStatus"
@heroLevelChange="heroLevelChange" @heroLevelChange="heroLevelChange"
@heroQuilityChange="heroQuilityChange" @heroQualityChange="heroQualityChange"
@heroDurabilityChange="heroDurabilityChange" @heroDurabilityChange="heroDurabilityChange"
@weaponSearch="weaponSearch" @weaponSearch="weaponSearch"
@weaponQuilityChange="weaponQuilityChange" @weaponQualityChange="weaponQualityChange"
@weaponLevelChange="weaponLevelChange" @weaponLevelChange="weaponLevelChange"
@weaponDurabilityChange="weaponDurabilityChange" @weaponDurabilityChange="weaponDurabilityChange"
@handWeaponSelect="handWeaponSelect" @handWeaponSelect="handWeaponSelect"
@ -533,8 +533,8 @@ export default class Market extends Vue {
this.getMarketNftList(); this.getMarketNftList();
// this.$emit("heroLevelChange", levelSlider); // this.$emit("heroLevelChange", levelSlider);
} }
heroQuilityChange(Quility: any) { heroQualityChange(Quality: any) {
this.qualityFilter = Quility; this.qualityFilter = Quality;
this.getMarketNftList(); this.getMarketNftList();
} }
heroDurabilityChange(durability: any) { heroDurabilityChange(durability: any) {
@ -549,8 +549,8 @@ export default class Market extends Vue {
this.searchFilters = value; this.searchFilters = value;
this.debounce(); this.debounce();
} }
weaponQuilityChange(Quility: any) { weaponQualityChange(Quality: any) {
this.qualityFilter = Quility; this.qualityFilter = Quality;
this.getMarketNftList(); this.getMarketNftList();
} }
weaponLevelChange(value: any) { weaponLevelChange(value: any) {

View File

@ -10,10 +10,10 @@
@jobStatus="jobStatus" @jobStatus="jobStatus"
@pieceStatus="pieceStatus" @pieceStatus="pieceStatus"
@heroLevelChange="heroLevelChange" @heroLevelChange="heroLevelChange"
@heroQuilityChange="heroQuilityChange" @heroQualityChange="heroQualityChange"
@heroDurabilityChange="heroDurabilityChange" @heroDurabilityChange="heroDurabilityChange"
@weaponSearch="weaponSearch" @weaponSearch="weaponSearch"
@weaponQuilityChange="weaponQuilityChange" @weaponQualityChange="weaponQualityChange"
@weaponLevelChange="weaponLevelChange" @weaponLevelChange="weaponLevelChange"
@weaponDurabilityChange="weaponDurabilityChange" @weaponDurabilityChange="weaponDurabilityChange"
@handWeaponSelect="handWeaponSelect" @handWeaponSelect="handWeaponSelect"
@ -573,8 +573,8 @@ export default class MyNft extends Vue {
this.getMyNftList(this.starts); this.getMyNftList(this.starts);
// this.$emit("heroLevelChange", levelSlider); // this.$emit("heroLevelChange", levelSlider);
} }
heroQuilityChange(Quility: any) { heroQualityChange(Quality: any) {
this.qualityFilter = Quility; this.qualityFilter = Quality;
this.getMyNftList(this.starts); this.getMyNftList(this.starts);
} }
heroDurabilityChange(durability: any) { heroDurabilityChange(durability: any) {
@ -589,8 +589,8 @@ export default class MyNft extends Vue {
this.searchFilters = value; this.searchFilters = value;
this.debounce(); this.debounce();
} }
weaponQuilityChange(Quility: any) { weaponQualityChange(Quality: any) {
this.qualityFilter = Quility; this.qualityFilter = Quality;
this.getMyNftList(this.starts); this.getMyNftList(this.starts);
} }
weaponLevelChange(value: any) { weaponLevelChange(value: any) {

View File

@ -7,13 +7,13 @@
@jobStatus="jobStatus" @jobStatus="jobStatus"
@handHeroSelect="handHeroSelect" @handHeroSelect="handHeroSelect"
@heroLevelChange="heroLevelChange" @heroLevelChange="heroLevelChange"
@heroQuilityChange="heroQuilityChange" @heroQualityChange="heroQualityChange"
@heroDurabilityChange="heroDurabilityChange" @heroDurabilityChange="heroDurabilityChange"
@handPriceFilter="handPriceFilter" @handPriceFilter="handPriceFilter"
@handPriceMax="handPriceMax" @handPriceMax="handPriceMax"
@handPriceMin="handPriceMin" @handPriceMin="handPriceMin"
@handWeaponSelect="handWeaponSelect" @handWeaponSelect="handWeaponSelect"
@weaponQuilityChange="weaponQuilityChange" @weaponQualityChange="weaponQualityChange"
@weaponLevelChange="weaponLevelChange" @weaponLevelChange="weaponLevelChange"
@weaponDurabilityChange="weaponDurabilityChange" @weaponDurabilityChange="weaponDurabilityChange"
@handChipSelect="handChipSelect" @handChipSelect="handChipSelect"
@ -508,7 +508,7 @@ export default {
this.lvFilter = value; this.lvFilter = value;
this.getMarketNftList(); this.getMarketNftList();
}, },
heroQuilityChange(value) { heroQualityChange(value) {
this.qualityFilter = value; this.qualityFilter = value;
this.getMarketNftList(); this.getMarketNftList();
}, },
@ -530,7 +530,7 @@ export default {
this.searchFilters = value; this.searchFilters = value;
this.getMarketNftList(); this.getMarketNftList();
}, },
weaponQuilityChange(value) { weaponQualityChange(value) {
this.qualityFilter = value; this.qualityFilter = value;
this.getMarketNftList(); this.getMarketNftList();
}, },

View File

@ -7,10 +7,10 @@
@jobStatus="jobStatus" @jobStatus="jobStatus"
@handHeroSelect="handHeroSelect" @handHeroSelect="handHeroSelect"
@heroLevelChange="heroLevelChange" @heroLevelChange="heroLevelChange"
@heroQuilityChange="heroQuilityChange" @heroQualityChange="heroQualityChange"
@heroDurabilityChange="heroDurabilityChange" @heroDurabilityChange="heroDurabilityChange"
@handWeaponSelect="handWeaponSelect" @handWeaponSelect="handWeaponSelect"
@weaponQuilityChange="weaponQuilityChange" @weaponQualityChange="weaponQualityChange"
@weaponLevelChange="weaponLevelChange" @weaponLevelChange="weaponLevelChange"
@weaponDurabilityChange="weaponDurabilityChange" @weaponDurabilityChange="weaponDurabilityChange"
@handChipSelect="handChipSelect" @handChipSelect="handChipSelect"
@ -503,7 +503,7 @@ export default {
this.lvFilter = value; this.lvFilter = value;
this.getMyNftList(); this.getMyNftList();
}, },
heroQuilityChange(value) { heroQualityChange(value) {
this.qualityFilter = value; this.qualityFilter = value;
this.getMyNftList(); this.getMyNftList();
}, },
@ -525,7 +525,7 @@ export default {
this.searchFilters = value; this.searchFilters = value;
this.getMyNftList(); this.getMyNftList();
}, },
weaponQuilityChange(value) { weaponQualityChange(value) {
this.qualityFilter = value; this.qualityFilter = value;
this.getMyNftList(); this.getMyNftList();
}, },