From fffecaa021b6f68c191bbab2eef1c78fc49fa375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E9=B9=8F?= Date: Sat, 8 Feb 2025 18:31:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=8D=A1=E7=89=87=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/card.js | 27 ++++ pages.json | 7 + pages/bindCard/bindCard.vue | 87 ++++++++++++ pages/cardDetail/cardDetail.vue | 65 +-------- pages/cardList/cardList.vue | 178 ++++++++++++++++--------- pages/createCard/createCard.vue | 188 ++++++++++++++++---------- static/images/icon_add_card.png | Bin 0 -> 45222 bytes stores/basic.js | 30 ++++- stores/bluetooth.js | 228 ++++++++++++++++++++++++++++---- 9 files changed, 588 insertions(+), 222 deletions(-) create mode 100644 pages/bindCard/bindCard.vue create mode 100755 static/images/icon_add_card.png diff --git a/api/card.js b/api/card.js index fea2f8d..d0d2385 100644 --- a/api/card.js +++ b/api/card.js @@ -10,3 +10,30 @@ export function getCardList(data) { data }) } + +// 删除卡片 +export function deleteCardRequest(data) { + return request({ + url: '/identityCard/delete', + method: 'POST', + data + }) +} + +// 检查卡片名称是否重复 +export function checkCardNameRequest(data) { + return request({ + url: '/identityCard/checkIdentityCardName', + method: 'POST', + data + }) +} + +// 添加卡片 +export function addCardRequest(data) { + return request({ + url: '/identityCard/add', + method: 'POST', + data + }) +} diff --git a/pages.json b/pages.json index 7e7d55a..086df60 100644 --- a/pages.json +++ b/pages.json @@ -156,6 +156,13 @@ "disableScroll": true } }, + { + "path": "pages/bindCard/bindCard", + "style": { + "navigationBarTitleText": "添加卡", + "disableScroll": true + } + }, { "path": "pages/cardDetail/cardDetail", "style": { diff --git a/pages/bindCard/bindCard.vue b/pages/bindCard/bindCard.vue new file mode 100644 index 0000000..cfb73cb --- /dev/null +++ b/pages/bindCard/bindCard.vue @@ -0,0 +1,87 @@ + + + + + diff --git a/pages/cardDetail/cardDetail.vue b/pages/cardDetail/cardDetail.vue index 647f4b3..e5ad46d 100644 --- a/pages/cardDetail/cardDetail.vue +++ b/pages/cardDetail/cardDetail.vue @@ -46,12 +46,14 @@ diff --git a/pages/cardList/cardList.vue b/pages/cardList/cardList.vue index 5bd3812..bdc006d 100644 --- a/pages/cardList/cardList.vue +++ b/pages/cardList/cardList.vue @@ -67,7 +67,7 @@ - 重置卡片 + 重置卡片 添加卡片 @@ -76,15 +76,16 @@