From 798d53c6113ae1285425d8c10a313b4dc775d71f Mon Sep 17 00:00:00 2001 From: sdaduanbilei-d1581 Date: Mon, 8 Dec 2025 15:06:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E5=8F=96=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/claim/index.js | 20 +++ src/api/flower/index.js | 2 +- src/api/index.js | 2 + src/views/flower/claim/components/edit.vue | 147 +++++++++++++++++++++ src/views/flower/claim/index.vue | 99 ++++++++++++++ src/views/flower/invite/index.vue | 42 ------ 6 files changed, 269 insertions(+), 43 deletions(-) create mode 100644 src/api/claim/index.js create mode 100644 src/views/flower/claim/components/edit.vue create mode 100644 src/views/flower/claim/index.vue delete mode 100644 src/views/flower/invite/index.vue diff --git a/src/api/claim/index.js b/src/api/claim/index.js new file mode 100644 index 0000000..fb1364e --- /dev/null +++ b/src/api/claim/index.js @@ -0,0 +1,20 @@ +import fetch from '../fetch.js' + +export default { + save(params) { + return fetch('/claim/add', params,'post','json') + }, + update(params) { + return fetch('/claim/update', params,'post','json') + }, + + list(params) { + return fetch('/claim/list', params,'post','json') + }, + + setImg(params) { + return fetch('/claim/uploadImg',params,'post','json') + }, + + +} diff --git a/src/api/flower/index.js b/src/api/flower/index.js index f217ebf..aeda942 100644 --- a/src/api/flower/index.js +++ b/src/api/flower/index.js @@ -25,7 +25,7 @@ export default { }, inviteList(params){ - return fetch('/personal/inviteCode/inviteRecords',params,'post','json') + return fetch('/personal/inviteCode/records',params,'post','json') } } diff --git a/src/api/index.js b/src/api/index.js index 9a98c3b..1a4b84e 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -13,6 +13,7 @@ import contractPay from '@/api/contract/pay.js' import notice from '@/api/notice/index.js' import flower from '@/api/flower/index.js' import badge from '@/api/badge/index.js' +import claim from '@/api/claim/index.js' export default { user, sys, @@ -29,4 +30,5 @@ export default { notice, flower, badge, + claim } diff --git a/src/views/flower/claim/components/edit.vue b/src/views/flower/claim/components/edit.vue new file mode 100644 index 0000000..9411c68 --- /dev/null +++ b/src/views/flower/claim/components/edit.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/src/views/flower/claim/index.vue b/src/views/flower/claim/index.vue new file mode 100644 index 0000000..b7814fc --- /dev/null +++ b/src/views/flower/claim/index.vue @@ -0,0 +1,99 @@ + + + + + \ No newline at end of file diff --git a/src/views/flower/invite/index.vue b/src/views/flower/invite/index.vue deleted file mode 100644 index ab659e2..0000000 --- a/src/views/flower/invite/index.vue +++ /dev/null @@ -1,42 +0,0 @@ - - - - - \ No newline at end of file