diff --git a/src/components/baruser/CreditLists.vue b/src/components/baruser/CreditLists.vue index 13c6980..795ee0a 100644 --- a/src/components/baruser/CreditLists.vue +++ b/src/components/baruser/CreditLists.vue @@ -1,55 +1,90 @@ diff --git a/src/plugins/restService.js b/src/plugins/restService.js index f66b65e..15a1e01 100644 --- a/src/plugins/restService.js +++ b/src/plugins/restService.js @@ -11,6 +11,12 @@ class Service { login(loginData) { return axios.post(this.url+'login', {...loginData}) } + getUserBar(token) { + return axios.get(this.url+'bar', {headers: {Token: token}}) + } + addAmountBar(token, data) { + return axios.post(this.url+'baradd', ...data, {headers: {Token: token}}) + } } const httpClient = new Service("http://192.168.5.118:5000/") diff --git a/src/views/BarView.vue b/src/views/BarView.vue index deb8c9b..a9cf34c 100644 --- a/src/views/BarView.vue +++ b/src/views/BarView.vue @@ -1,33 +1,61 @@