-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[zis] add products for categories excepts phones
- Loading branch information
ZIS
committed
Aug 11, 2021
1 parent
ca89a4b
commit 1ffe93a
Showing
23 changed files
with
269 additions
and
1,779 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
import product10111 from '~/api/mock/products/product11/product10111.json' | ||
import product10112 from '~/api/mock/products/product11/product10112.json' | ||
import product10113 from '~~/api/mock/products/product11/product10113.json' | ||
import product10114 from '~/api/mock/products/product11/product10114.json' | ||
// import { getCategoryProducts } from '../../mock' | ||
import product10111 from '~/api/mock/products/product10/product10111.json' | ||
import product10112 from '~/api/mock/products/product10/product10112.json' | ||
import product10113 from '~/api/mock/products/product10/product10113.json' | ||
import product10114 from '~/api/mock/products/product10/product10114.json' | ||
import product10121 from '~/api/mock/products/product10/product10121.json' | ||
import product10122 from '~/api/mock/products/product10/product10122.json' | ||
import product10123 from '~/api/mock/products/product10/product10123.json' | ||
import product10124 from '~/api/mock/products/product10/product10124.json' | ||
|
||
const products = [product10111, product10112, product10113, product10114] | ||
import product20001 from '~/api/mock/products/product20/product20001.json' | ||
import product20002 from '~/api/mock/products/product20/product20002.json' | ||
import product20003 from '~/api/mock/products/product20/product20003.json' | ||
import product20004 from '~/api/mock/products/product20/product20004.json' | ||
|
||
export function getCategoryProducts () { | ||
return products | ||
const products = [ | ||
product10111, | ||
product10112, | ||
product10113, | ||
product10114, | ||
product10121, | ||
product10122, | ||
product10123, | ||
product10124, | ||
product20001, | ||
product20002, | ||
product20003, | ||
product20004 | ||
] | ||
|
||
function getProductByCategoryId (id) { | ||
return products.filter(prod => prod.categoryId === id) | ||
} | ||
|
||
export function getCategoryProducts ({ categoryId }) { | ||
const categoryProducts = {} | ||
|
||
categoryProducts[categoryId] = getProductByCategoryId(categoryId) | ||
return categoryProducts | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...mock/products/product11/product10112.json → ...mock/products/product10/product10112.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"id":56225, | ||
"categoryId": 255, | ||
"name":{ | ||
"en":"Men\u2019s Fashionable Panjabi-HH005" | ||
}, | ||
|
1 change: 1 addition & 0 deletions
1
...mock/products/product11/product10113.json → ...mock/products/product10/product10113.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"id":56283, | ||
"categoryId": 255, | ||
"name":{ | ||
"en":"Men\u2019s Fashionable Panjabi-HH010" | ||
}, | ||
|
1 change: 1 addition & 0 deletions
1
...mock/products/product11/product10114.json → ...mock/products/product10/product10114.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"id":11402, | ||
"categoryId": 207, | ||
"name":{ | ||
"en":"Khero Khata Salfet Green", | ||
"bn":"\u0996\u09c7\u09b0\u09cb \u0996\u09be\u09a4\u09be - \u09b8\u09be\u09b2\u09ab\u09c7\u099f \u0997\u09cd\u09b0\u09bf\u09a8" | ||
}, | ||
"slug":"khero-khata-salfet-green", | ||
"variant_slug":null, | ||
"emi_tenures":[], | ||
"image_info":[ | ||
{ | ||
"url":"https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/25070\/product-11402.jpeg", | ||
"width":800, | ||
"srcset":"https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/25070\/responsive-images\/product-11402___medialibrary_original_800_600.jpeg 800w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/25070\/responsive-images\/product-11402___medialibrary_original_669_501.jpeg 669w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/25070\/responsive-images\/product-11402___medialibrary_original_560_420.jpeg 560w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/25070\/responsive-images\/product-11402___medialibrary_original_468_351.jpeg 468w", | ||
"thumbnail":"https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/25070\/responsive-images\/product-11402___medialibrary_original_468_351.jpeg" | ||
} | ||
], | ||
"coupon_details":null, | ||
"discounted_price":220, | ||
"unit_price":220, | ||
"available_qty":2, | ||
"out_of_stock":false, | ||
"varies_on":[ | ||
|
||
], | ||
"variant_count":0, | ||
"commission":null, | ||
"primary_variant_id":null, | ||
"offers":[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"id":11385, | ||
"categoryId": 207, | ||
"name":{ | ||
"en":"Khero Khata Vinci-Monalisa", | ||
"bn":"\u0996\u09c7\u09b0\u09cb \u0996\u09be\u09a4\u09be - \u09ad\u09bf\u099e\u09cd\u099a\u09bf \u09ae\u09cb\u09a8\u09be\u09b2\u09bf\u09b8\u09be" | ||
}, | ||
"slug":"khero-khata-vinci-monalisa", | ||
"variant_slug":null, | ||
"emi_tenures":[], | ||
"image_info":[ | ||
{ | ||
"url":"https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/49720\/product-11385.jpeg", | ||
"width":800, | ||
"srcset":"https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/49720\/responsive-images\/product-11385___medialibrary_original_800_600.jpeg 800w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/49720\/responsive-images\/product-11385___medialibrary_original_669_501.jpeg 669w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/49720\/responsive-images\/product-11385___medialibrary_original_560_420.jpeg 560w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/49720\/responsive-images\/product-11385___medialibrary_original_468_351.jpeg 468w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/49720\/responsive-images\/product-11385___medialibrary_original_391_293.jpeg 391w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/49720\/responsive-images\/product-11385___medialibrary_original_327_245.jpeg 327w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/49720\/responsive-images\/product-11385___medialibrary_original_274_205.jpeg 274w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/49720\/responsive-images\/product-11385___medialibrary_original_229_171.jpeg 229w", | ||
"thumbnail":"https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/49720\/responsive-images\/product-11385___medialibrary_original_468_351.jpeg" | ||
} | ||
], | ||
"coupon_details":null, | ||
"discounted_price":90, | ||
"unit_price":90, | ||
"available_qty":2, | ||
"out_of_stock":false, | ||
"varies_on":[], | ||
"variant_count":0, | ||
"commission":null, | ||
"primary_variant_id":null, | ||
"offers":[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"id":1407, | ||
"categoryId": 207, | ||
"name":{ | ||
"en":"Khero Khata 26 March Terracota", | ||
"bn":"\u0996\u09c7\u09b0\u09cb \u0996\u09be\u09a4\u09be - \u09e8\u09ec \u09ae\u09be\u09b0\u09cd\u099a \u099f\u09c7\u09b0\u09be\u0995\u09cb\u099f\u09be" | ||
}, | ||
"slug":"khero-khata-26-march-terracota", | ||
"variant_slug":null, | ||
"emi_tenures":[], | ||
"image_info":[ | ||
{ | ||
"url":"https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2878\/product-1407.jpg", | ||
"width":800, | ||
"srcset":"https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2878\/responsive-images\/product-1407___medialibrary_original_800_600.jpg 800w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2878\/responsive-images\/product-1407___medialibrary_original_669_501.jpg 669w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2878\/responsive-images\/product-1407___medialibrary_original_560_420.jpg 560w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2878\/responsive-images\/product-1407___medialibrary_original_468_351.jpg 468w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2878\/responsive-images\/product-1407___medialibrary_original_391_293.jpg 391w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2878\/responsive-images\/product-1407___medialibrary_original_327_245.jpg 327w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2878\/responsive-images\/product-1407___medialibrary_original_274_205.jpg 274w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2878\/responsive-images\/product-1407___medialibrary_original_229_171.jpg 229w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2878\/responsive-images\/product-1407___medialibrary_original_192_144.jpg 192w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2878\/responsive-images\/product-1407___medialibrary_original_160_120.jpg 160w", | ||
"thumbnail":"https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2878\/responsive-images\/product-1407___medialibrary_original_468_351.jpg" | ||
} | ||
], | ||
"coupon_details":null, | ||
"discounted_price":350, | ||
"unit_price":350, | ||
"available_qty":2, | ||
"out_of_stock":false, | ||
"varies_on":[], | ||
"variant_count":0, | ||
"commission":null, | ||
"primary_variant_id":null, | ||
"offers":[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"id":1416, | ||
"categoryId": 207, | ||
"name":{ | ||
"en":"Khero Khata-Tareq Masud", | ||
"bn":"\u0996\u09c7\u09b0\u09cb \u0996\u09be\u09a4\u09be- \u09a4\u09be\u09b0\u09c7\u0995 \u09ae\u09be\u09b8\u09c1\u09a6" | ||
}, | ||
"slug":"kharu-khata-tareq-masud", | ||
"variant_slug":null, | ||
"emi_tenures":[], | ||
"image_info":[ | ||
{ | ||
"url":"https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2887\/product-1416.jpg", | ||
"width":800, | ||
"srcset":"https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2887\/responsive-images\/product-1416___medialibrary_original_800_600.jpg 800w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2887\/responsive-images\/product-1416___medialibrary_original_669_501.jpg 669w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2887\/responsive-images\/product-1416___medialibrary_original_560_420.jpg 560w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2887\/responsive-images\/product-1416___medialibrary_original_468_351.jpg 468w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2887\/responsive-images\/product-1416___medialibrary_original_391_293.jpg 391w, https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2887\/responsive-images\/product-1416___medialibrary_original_327_245.jpg 327w", | ||
"thumbnail":"https:\/\/d1zk0te1r027w9.cloudfront.net\/storage\/media\/2887\/responsive-images\/product-1416___medialibrary_original_468_351.jpg" | ||
} | ||
], | ||
"coupon_details":null, | ||
"discounted_price":180, | ||
"unit_price":180, | ||
"available_qty":7, | ||
"out_of_stock":false, | ||
"varies_on":[], | ||
"variant_count":0, | ||
"commission":null, | ||
"primary_variant_id":null, | ||
"offers":[] | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.