fix
BIN
src/assets/market/filter-left/组51@2x.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
src/assets/market/filter-left/组52@2x.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
src/assets/market/filter-left/组53@2x.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
src/assets/market/filter-left/组54@2x.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
src/assets/market/hero/hero-details/hero-details_01.png
Normal file
After Width: | Height: | Size: 775 KiB |
BIN
src/assets/market/hero/hero-details/hero-details_02.png
Normal file
After Width: | Height: | Size: 758 KiB |
BIN
src/assets/market/hero/hero-details/hero-details_03.png
Normal file
After Width: | Height: | Size: 754 KiB |
BIN
src/assets/market/hero/hero-details/hero-details_04.png
Normal file
After Width: | Height: | Size: 782 KiB |
BIN
src/assets/market/hero/hero-details/hero-details_05.png
Normal file
After Width: | Height: | Size: 495 KiB |
BIN
src/assets/market/hero/hero-details/hero-details_06.png
Normal file
After Width: | Height: | Size: 622 KiB |
BIN
src/assets/market/hero/hero-details/hero-details_07.png
Normal file
After Width: | Height: | Size: 800 KiB |
BIN
src/assets/market/hero/hero-details/hero-details_08.png
Normal file
After Width: | Height: | Size: 536 KiB |
BIN
src/assets/market/hero/hero-details/hero-details_09.png
Normal file
After Width: | Height: | Size: 614 KiB |
BIN
src/assets/market/hero/hero-details/hero-details_10.png
Normal file
After Width: | Height: | Size: 721 KiB |
@ -5,7 +5,9 @@
|
|||||||
@searchClear="searchClear"
|
@searchClear="searchClear"
|
||||||
@heroLevelChange="heroLevelChange"
|
@heroLevelChange="heroLevelChange"
|
||||||
@handSelect="handSelect"
|
@handSelect="handSelect"
|
||||||
|
@heroSearch="heroSearch"
|
||||||
:value="value"
|
:value="value"
|
||||||
|
:heroValue="heroValue"
|
||||||
:jobList="jobList"
|
:jobList="jobList"
|
||||||
@jobStatus="jobStatus"
|
@jobStatus="jobStatus"
|
||||||
:selectValue="selectValue"
|
:selectValue="selectValue"
|
||||||
@ -39,7 +41,7 @@ import Weaponfilter from "@/components/market/filters/Weaponfilter";
|
|||||||
import Chipfilter from "@/components/market/filters/Chipfilter";
|
import Chipfilter from "@/components/market/filters/Chipfilter";
|
||||||
import Piecefilter from "@/components/market/filters/Piecefilter";
|
import Piecefilter from "@/components/market/filters/Piecefilter";
|
||||||
export default {
|
export default {
|
||||||
props: ["nftType", "value", "isType", "options", "selectValue", "jobList"],
|
props: ["nftType", "value", "isType", "options", "selectValue", "jobList",'heroValue'],
|
||||||
components: {
|
components: {
|
||||||
Herofilter,
|
Herofilter,
|
||||||
Chipfilter,
|
Chipfilter,
|
||||||
@ -65,6 +67,10 @@ export default {
|
|||||||
console.log(levelSlider, "levelSlider2");
|
console.log(levelSlider, "levelSlider2");
|
||||||
this.$emit("heroLevelChange", levelSlider);
|
this.$emit("heroLevelChange", levelSlider);
|
||||||
},
|
},
|
||||||
|
heroSearch(value) {
|
||||||
|
console.log(value,'-==-=0');
|
||||||
|
this.$emit("heroSearch",value);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -4,9 +4,10 @@
|
|||||||
<div class="search-input">
|
<div class="search-input">
|
||||||
<el-input
|
<el-input
|
||||||
prefix-icon="el-icon-search"
|
prefix-icon="el-icon-search"
|
||||||
v-model="hero"
|
v-model="value"
|
||||||
:maxlength="24"
|
:maxlength="24"
|
||||||
:autofocus="true"
|
:autofocus="true"
|
||||||
|
@input="search"
|
||||||
placeholder="Search Name or Tokenid"
|
placeholder="Search Name or Tokenid"
|
||||||
></el-input>
|
></el-input>
|
||||||
</div>
|
</div>
|
||||||
@ -18,10 +19,42 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "SearchInput",
|
name: "SearchInput",
|
||||||
props: ["hero"],
|
props: ["heroValue"],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
time: null,
|
||||||
|
value: '',
|
||||||
|
};
|
||||||
|
},
|
||||||
|
// watch: {
|
||||||
|
// heroValue(val) {
|
||||||
|
// this.value = val;
|
||||||
|
// },
|
||||||
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
searchClear() {
|
searchClear() {
|
||||||
this.$emit("searchClear", this.hero);
|
this.$emit("searchClear", this.value);
|
||||||
|
},
|
||||||
|
search() {
|
||||||
|
|
||||||
|
this.$emit("heroSearch",this.value);
|
||||||
|
console.log(this.value,'dsfsdfs1');
|
||||||
|
// clearTimeout(this.timer);
|
||||||
|
// this.timer = setTimeout(() => {
|
||||||
|
// // 执行搜索请求
|
||||||
|
// console.log(this.value);
|
||||||
|
// }, 1000); // 设置时间
|
||||||
|
},
|
||||||
|
disable(fn, delay) {
|
||||||
|
let timer = null;
|
||||||
|
return function () {
|
||||||
|
if (timer) {
|
||||||
|
clearTimeout(timer);
|
||||||
|
timer = setTimeout(fn, delay);
|
||||||
|
} else {
|
||||||
|
timer = setTimeout(fn, delay);
|
||||||
|
}
|
||||||
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -2,7 +2,11 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="filtertop">
|
<div class="filtertop">
|
||||||
<div class="filter"></div>
|
<div class="filter"></div>
|
||||||
<SearchInput :hero="hero" @searchClear="searchClear" />
|
<SearchInput
|
||||||
|
:heroValue="heroValue"
|
||||||
|
@searchClear="searchClear"
|
||||||
|
@heroSearch="heroSearch"
|
||||||
|
/>
|
||||||
<PropertySelect
|
<PropertySelect
|
||||||
:options="options"
|
:options="options"
|
||||||
:selectValue="selectValue"
|
:selectValue="selectValue"
|
||||||
@ -95,7 +99,7 @@ import SearchInput from "../SearchInput";
|
|||||||
import PriceFilter from "../PriceFilter.vue";
|
import PriceFilter from "../PriceFilter.vue";
|
||||||
import PropertySelect from "../PropertySelect.vue";
|
import PropertySelect from "../PropertySelect.vue";
|
||||||
export default {
|
export default {
|
||||||
props: ["value", "isType", "options", "selectValue",'jobList'],
|
props: ["value", "isType", "options", "selectValue", "jobList", "heroValue"],
|
||||||
components: {
|
components: {
|
||||||
Slider,
|
Slider,
|
||||||
PriceFilter,
|
PriceFilter,
|
||||||
@ -111,10 +115,14 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
jobStatus(item){
|
jobStatus(item) {
|
||||||
this.$emit("jobStatus", item);
|
this.$emit("jobStatus", item);
|
||||||
},
|
},
|
||||||
|
heroSearch(value) {
|
||||||
|
console.log(value,'-==-=3');
|
||||||
|
this.$emit("heroSearch",value);
|
||||||
|
|
||||||
|
},
|
||||||
searchClear(hero) {
|
searchClear(hero) {
|
||||||
// this.hero = "";
|
// this.hero = "";
|
||||||
},
|
},
|
||||||
@ -130,8 +138,8 @@ export default {
|
|||||||
this.$emit("handSelect", value);
|
this.$emit("handSelect", value);
|
||||||
},
|
},
|
||||||
heroLevelChange(levelSlider) {
|
heroLevelChange(levelSlider) {
|
||||||
console.log(levelSlider, "levelSlider");
|
console.log(levelSlider, "levelSlider");
|
||||||
this.$emit("heroLevelChange", levelSlider);
|
this.$emit("heroLevelChange", levelSlider);
|
||||||
},
|
},
|
||||||
levelonChange(newVal2) {
|
levelonChange(newVal2) {
|
||||||
console.log(newVal2, "scale2");
|
console.log(newVal2, "scale2");
|
||||||
|
@ -1,13 +1,22 @@
|
|||||||
export const formatAddress = function(address) {
|
export const formatAddress = function (address) {
|
||||||
if (address.length >= 10) {
|
if (address.length >= 10) {
|
||||||
return (
|
return (
|
||||||
address.substring(0, 6) +
|
address.substring(0, 6) + "......" + address.substring(address.length - 4)
|
||||||
"......" +
|
);
|
||||||
address.substring(address.length - 4)
|
} else if (address.length > 0 && address.length < 10) {
|
||||||
);
|
return address;
|
||||||
} else if (address.length > 0 && address.length < 10) {
|
} else {
|
||||||
return address;
|
return "-";
|
||||||
} else {
|
}
|
||||||
return "-";
|
};
|
||||||
}
|
export const debounce = function (foo, delay) {
|
||||||
}
|
let timer;
|
||||||
|
return function () {
|
||||||
|
if (timer) clearTimeout(timer);
|
||||||
|
timer = setTimeout(() => {
|
||||||
|
// 暂时理解不了(this,arguments)指向改变的问题
|
||||||
|
foo.call(this, arguments);
|
||||||
|
// 不输入延迟 则默认 1000 ms
|
||||||
|
}, delay || 1000);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@ -6,12 +6,14 @@
|
|||||||
<FilterLeft
|
<FilterLeft
|
||||||
@filter-show="showFilter"
|
@filter-show="showFilter"
|
||||||
@searchClear="searchClear"
|
@searchClear="searchClear"
|
||||||
|
@heroSearch="heroSearch"
|
||||||
@handSelect="handSelect"
|
@handSelect="handSelect"
|
||||||
@sliderChange="sliderChange"
|
@sliderChange="sliderChange"
|
||||||
@heroLevelChange="heroLevelChange"
|
@heroLevelChange="heroLevelChange"
|
||||||
:nft-type="nftType"
|
:nft-type="nftType"
|
||||||
:isType="currentTab"
|
:isType="currentTab"
|
||||||
:value="value"
|
:value="value"
|
||||||
|
:heroValue="heroValue"
|
||||||
:jobList="jobList"
|
:jobList="jobList"
|
||||||
@jobStatus="jobStatus"
|
@jobStatus="jobStatus"
|
||||||
:selectValue="selectValue"
|
:selectValue="selectValue"
|
||||||
@ -122,6 +124,8 @@ export default class MyNft extends Vue {
|
|||||||
nftType = 1;
|
nftType = 1;
|
||||||
nftState = 0;
|
nftState = 0;
|
||||||
value = 7;
|
value = 7;
|
||||||
|
timer: any = null;
|
||||||
|
heroValue = "";
|
||||||
selectValue = "all";
|
selectValue = "all";
|
||||||
showOrderStatus = false;
|
showOrderStatus = false;
|
||||||
private filters = ["All Items", "Normal", "Selling", "Renting"];
|
private filters = ["All Items", "Normal", "Selling", "Renting"];
|
||||||
@ -215,6 +219,15 @@ export default class MyNft extends Vue {
|
|||||||
get boxProxyAddress() {
|
get boxProxyAddress() {
|
||||||
return CONTRACT_ADDRESS[AppModule.chainId].nftProxy;
|
return CONTRACT_ADDRESS[AppModule.chainId].nftProxy;
|
||||||
}
|
}
|
||||||
|
heroSearch(value: string) {
|
||||||
|
clearTimeout(this.timer);
|
||||||
|
this.timer = setTimeout(() => {
|
||||||
|
// 执行搜索请求
|
||||||
|
console.log(value, "-==-=");
|
||||||
|
this.searchFilters = value;
|
||||||
|
this.getHeroNftList(this.currentPage);
|
||||||
|
}, 1000); // 设置时间
|
||||||
|
}
|
||||||
searchClear(hero: string) {
|
searchClear(hero: string) {
|
||||||
console.log(hero, "herio2020");
|
console.log(hero, "herio2020");
|
||||||
}
|
}
|
||||||
@ -239,7 +252,6 @@ export default class MyNft extends Vue {
|
|||||||
this.getHeroNftList(this.currentPage);
|
this.getHeroNftList(this.currentPage);
|
||||||
}
|
}
|
||||||
heroLevelChange(levelSlider: any) {
|
heroLevelChange(levelSlider: any) {
|
||||||
|
|
||||||
this.lvFilter = levelSlider;
|
this.lvFilter = levelSlider;
|
||||||
this.getHeroNftList(this.currentPage);
|
this.getHeroNftList(this.currentPage);
|
||||||
// this.$emit("heroLevelChange", levelSlider);
|
// this.$emit("heroLevelChange", levelSlider);
|
||||||
|