From 328819c97b659a494b42d7a61c6fc68e4f9d8204 Mon Sep 17 00:00:00 2001 From: chenlong Date: Thu, 14 Sep 2023 11:51:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/pet.js | 15 +++++++++++++++ components/FooterNav/components/index.scss | 1 + pages/AboutUs/AboutUs.vue | 21 +++++++++++++++++++-- pages/Index/components/UserPage/index.vue | 8 ++++---- pages/Index/index.vue | 6 +++--- pages/Pet/index.vue | 7 ++++++- pages/PetDetail/index.vue | 13 +++++++++---- pages/UserOrderPage/index.vue | 5 +++++ 8 files changed, 62 insertions(+), 14 deletions(-) diff --git a/api/pet.js b/api/pet.js index 989e7cc..f94615d 100644 --- a/api/pet.js +++ b/api/pet.js @@ -57,4 +57,19 @@ export function editPet(data){ method:'post', data:data }) +} + +/** + * 删除宠物 + * @param id + * @returns {Promise | Promise} + */ +export function delPet(id){ + return request({ + url:'user/pet-delete', + method:'post', + data:{ + id:id + } + }) } \ No newline at end of file diff --git a/components/FooterNav/components/index.scss b/components/FooterNav/components/index.scss index b0d9d5f..0c5bbf9 100644 --- a/components/FooterNav/components/index.scss +++ b/components/FooterNav/components/index.scss @@ -17,6 +17,7 @@ .foot-nav-button-group{ width:100%; height:100%; + justify-content: space-around; padding:{ left:33rpx; right:33rpx; diff --git a/pages/AboutUs/AboutUs.vue b/pages/AboutUs/AboutUs.vue index 953d5fe..65b56b7 100644 --- a/pages/AboutUs/AboutUs.vue +++ b/pages/AboutUs/AboutUs.vue @@ -1,13 +1,30 @@