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