diff --git a/src/components/mobile/main/ChipFilter.vue b/src/components/mobile/main/ChipFilter.vue index 07443ed..b53b190 100644 --- a/src/components/mobile/main/ChipFilter.vue +++ b/src/components/mobile/main/ChipFilter.vue @@ -68,9 +68,9 @@ export default { return { hero: "", priceMin: "", - value2: 7, - value3: 7, - value: 7, + value2: 0, + value3: 0, + value: 0, priceMax: "", }; }, diff --git a/src/components/mobile/main/FilterTop.vue b/src/components/mobile/main/FilterTop.vue index 65852b4..a6b28ad 100644 --- a/src/components/mobile/main/FilterTop.vue +++ b/src/components/mobile/main/FilterTop.vue @@ -19,20 +19,32 @@ :jobList="jobList" :options="options" @jobStatus="jobStatus" + @handHeroSelect="handHeroSelect" + @heroLevelChange="heroLevelChange" + @heroQuilityChange="heroQuilityChange" + @heroDurabilityChange="heroDurabilityChange" + @handPriceFilter="handPriceFilter" + @handPriceMax="handPriceMax" + @handPriceMin="handPriceMin" + :priceMin="priceMin" + :priceMax="priceMax" v-if="nftType == 1 && nftNumber" class="filter-modal" > @@ -46,7 +58,18 @@ import WeaponFilter from "@/components/mobile/main/WeaponFilter.vue"; import ChipFilter from "@/components/mobile/main/ChipFilter.vue"; import PieceFilter from "@/components/mobile/main/PieceFilter.vue"; export default { - props: ["nftType", "jobList", "chipList", "pieceList", "options"], + props: [ + "nftType", + "jobList", + "chipList", + "pieceList", + "options", + "priceMin", + "priceMax", + 'weaponOptions', + 'chipOptions', + 'pieceOptions' + ], components: { HeroFilter, WeaponFilter, @@ -77,6 +100,24 @@ export default { handHeroSelect(value) { this.$emit("handHeroSelect", value); }, + heroLevelChange(value) { + this.$emit("heroLevelChange", value); + }, + heroQuilityChange(value) { + this.$emit("heroQuilityChange", value); + }, + heroDurabilityChange(value) { + this.$emit("heroDurabilityChange", value); + }, + handPriceFilter() { + this.$emit("handPriceFilter"); + }, + handPriceMax(value) { + this.$emit("handPriceMax", value); + }, + handPriceMin(value) { + this.$emit("handPriceMin", value); + }, }, }; diff --git a/src/components/mobile/main/Herofilter.vue b/src/components/mobile/main/Herofilter.vue index b2a745c..bd69fa5 100644 --- a/src/components/mobile/main/Herofilter.vue +++ b/src/components/mobile/main/Herofilter.vue @@ -22,7 +22,12 @@
Quility
- +
0
@@ -34,11 +39,16 @@
Level
- +
0
-
15
+
20
@@ -46,16 +56,29 @@
durability
- +
0
-
15
+
100%
-
+ +
+ + diff --git a/src/components/mobile/main/Slider.vue b/src/components/mobile/main/Slider.vue index 8b88061..dbdc216 100644 --- a/src/components/mobile/main/Slider.vue +++ b/src/components/mobile/main/Slider.vue @@ -2,7 +2,7 @@
- {{ slider }} + {{ max == 100 ? slider + "%" : slider }}
@@ -72,6 +72,7 @@ import Slider from "./Slider.vue"; import PropertySelect from "./PropertySelect.vue"; export default { + props:['weaponOptions'], components: { Slider, PropertySelect @@ -84,36 +85,7 @@ export default { value3: 7, value: 7, priceMax: "", - jobList: [ - { - id: 0, - jobname: "raider", - jobType: false, - jobImg: require("../../../assets/market/filter-left/raider.png"), - disImg: require("../../../assets/market/filter-left/raider-disabled.png"), - }, - { - id: 1, - jobname: "guardian", - jobType: true, - jobImg: require("../../../assets/market/filter-left/guardian.png"), - disImg: require("../../../assets/market/filter-left/guardian-disabled.png"), - }, - { - id: 2, - jobname: "machinist", - jobType: true, - jobImg: require("../../../assets/market/filter-left/machinist.png"), - disImg: require("../../../assets/market/filter-left/machinist-disabled.png"), - }, - { - id: 3, - jobname: "medic", - jobType: true, - jobImg: require("../../../assets/market/filter-left/medic.png"), - disImg: require("../../../assets/market/filter-left/medic-disabled.png"), - }, - ], + }; }, mounted() { @@ -134,8 +106,8 @@ export default { handclick() { this.$emit("hande"); }, - handHeroSelect() { - this.$emit("handHeroSelect"); + handWeaponSelect(value) { + this.$emit("handWeaponSelect",value); }, }, }; diff --git a/src/views/mobile/Market.vue b/src/views/mobile/Market.vue index 1f8e3a5..491c5c1 100644 --- a/src/views/mobile/Market.vue +++ b/src/views/mobile/Market.vue @@ -6,6 +6,17 @@ @handSearch="handSearch" @jobStatus="jobStatus" @handHeroSelect="handHeroSelect" + @heroLevelChange="heroLevelChange" + @heroQuilityChange="heroQuilityChange" + @heroDurabilityChange="heroDurabilityChange" + @handPriceFilter="handPriceFilter" + @handPriceMax="handPriceMax" + @handPriceMin="handPriceMin" + :priceMin="priceMin" + :priceMax="priceMax" + :weaponOptions="weaponOptions" + :pieceOptions="pieceOptions" + :chipOptions="chipOptions" :chipList="chipList" :pieceList="pieceList" :jobList="jobList" @@ -60,6 +71,8 @@ export default { nftList: [], debounce: null, priceFilter: "0|10000", + priceMin: 0, + priceMax: 10000, isFiters: false, totalPage: 1, pageSize: 10, @@ -154,6 +167,189 @@ export default { label: "Kurosawa", }, ], + weaponOptions: [ + { + value: null, + label: "All", + }, + { + value: "Submachine", + label: "Submachine", + }, + { + value: "Shotgun", + label: "Shotgun", + }, + + { + value: "Sniper", + label: "Sniper", + }, + + { + value: "Bazooka", + label: "Bazooka", + }, + + { + value: "Laser", + label: "Laser", + }, + { + value: "Freeze", + label: "Freeze", + }, + { + value: "Flame", + label: "Flame", + }, + ], + chipOptions: [ + { + value: null, + label: "All", + }, + { + value: "Life Source(H)", + label: "Life Source(H)", + }, + { + value: "Brutal force(H)", + label: "Brutal force(H)", + }, + + { + value: "Tree gurad(H)", + label: "Tree gurad(H)", + }, + + { + value: "Sniper eye(H)", + label: "Sniper eye(H)", + }, + + { + value: "Sniper heart(H)", + label: "Sniper heart(H)", + }, + { + value: "Limbo dodge(H)", + label: "Limbo dodge(H)", + }, + { + value: "Limbo pace(H)", + label: "Limbo pace(H)", + }, + { + value: "Level Green vibrant(H)", + label: "Level Green vibrant(H)", + }, + { + value: "Price Brutal force(w)", + label: "Price Brutal force(w)", + }, + { + value: "Sniper eye(W)", + label: "Sniper eye(W)", + }, + { + value: "Sniper heart(W)", + label: "Sniper heart(W)", + }, + { + value: "Blood sucker(w)", + label: "Blood sucker(w)", + }, + { + value: "Graceful draw(w)", + label: "Graceful draw(w)", + }, + { + value: "Bullet speed(W)", + label: "Bullet speed(W)", + }, + ], + pieceOptions: [ + { + value: null, + label: "All", + }, + { + value: "Testimonial", + label: "Testimonial", + }, + { + value: "Shoulder", + label: "Shoulder", + }, + + { + value: "Left Arm", + label: "Left Arm", + }, + + { + value: "Abdomen", + label: "Abdomen", + }, + + { + value: "Left Leg", + label: "Left Leg", + }, + { + value: "Weapon Head", + label: "Weapon Head", + }, + { + value: "Chest", + label: "Chest", + }, + { + value: "Right Arm", + label: "Right Arm", + }, + { + value: "Right Leg", + label: "Right Leg", + }, + { + value: "Blueprint", + label: "Blueprint", + }, + { + value: "Sight", + label: "Sight", + }, + { + value: "Stock", + label: "Stock", + }, + { + value: "Trigger", + label: "Trigger", + }, + { + value: "Ammo", + label: "Ammo", + }, + { + value: "Bolt", + label: "Bolt", + }, + { + value: "Barrel", + label: "Barrel", + }, + { + value: "Grip", + label: "Grip", + }, + { + value: "Clip", + label: "Clip", + }, + ], jobList: [ { id: 0, @@ -275,6 +471,30 @@ export default { this.searchFilters = value; this.getHeroNftList(); }, + heroLevelChange(value) { + console.log(value, "value"); + this.lvFilter = value; + this.getHeroNftList(); + }, + heroQuilityChange(value) { + this.qualityFilter = value; + this.getHeroNftList(); + }, + heroDurabilityChange(value) { + console.log(value, "heroDurabilityChange"); + this.durabilityFilter = value; + this.getHeroNftList(); + }, + handPriceMax(value) { + this.priceMax = value; + }, + handPriceMin(value) { + this.priceMin = value; + }, + handPriceFilter() { + this.priceFilter = this.priceMin + "|" + this.priceMax; + this.getHeroNftList(); + }, async getHeroNftList(pageNo) { if (!AppModule.accountId) { return;