From 5467d910853ec6a1b5c89d240570684af4621030 Mon Sep 17 00:00:00 2001 From: Marselino Widis Date: Wed, 18 Jan 2023 15:40:08 +0700 Subject: [PATCH] feat: Items based on category voucher --- src/common/pages/Vouchers/style.scss | 1 + src/common/stores/item.js | 2 +- src/common/stores/vouchers.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/pages/Vouchers/style.scss b/src/common/pages/Vouchers/style.scss index ea06e1e..1465a77 100644 --- a/src/common/pages/Vouchers/style.scss +++ b/src/common/pages/Vouchers/style.scss @@ -14,6 +14,7 @@ display: flex; flex-direction: column; justify-content: center; + text-align: center; align-items: center; margin-bottom: 10px; cursor: pointer; diff --git a/src/common/stores/item.js b/src/common/stores/item.js index 338bc66..4fbfbc5 100644 --- a/src/common/stores/item.js +++ b/src/common/stores/item.js @@ -5,7 +5,7 @@ export class ItemStore extends BaseStore { @observable listImages = []; constructor(context) { super(context); - this.url = "items"; + this.url = "/categories/11936220-31f7-4f5e-8555-9110dbec4a5d/items"; } @action diff --git a/src/common/stores/vouchers.js b/src/common/stores/vouchers.js index e581ab8..dd307e5 100644 --- a/src/common/stores/vouchers.js +++ b/src/common/stores/vouchers.js @@ -26,7 +26,7 @@ export default class Vouchers { getList(){ console.log('res'); this.isLoading = true; - return this.http.get("items") + return this.http.get("categories/11936220-31f7-4f5e-8555-9110dbec4a5d/items") .then(res => { this.list = res.data; this.isLoading = false;