From 1e69bc4dbdeb91f6bfa54d0a7520e177ddab8289 Mon Sep 17 00:00:00 2001 From: jiangx <1457960500@qq.com> Date: Thu, 27 Apr 2023 17:18:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=9A=80=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=BD=A6=E7=89=8C=20=E8=BD=A6=E4=BD=8D=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=91=A8=E8=BE=B9=E4=BA=A4=E9=80=9A=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/offline/JSON/getParkingInfo.json | 17 +- src/base/Message/Message.vue | 5 +- src/components/CarInfo/CarInfo.vue | 139 ++++++++++++++ src/components/PlateInput/PlateInput.vue | 72 ++++++-- .../PlateKeyboard/PlateKeyboard.vue | 52 ++++-- src/components/Traffic/Traffic.vue | 5 + src/composables/useParkingKeyboard.ts | 11 +- src/http/api/parking/index.ts | 2 + src/types/parking.d.ts | 8 + src/views/Parking/Parking.vue | 172 +++++++++++++++++- 10 files changed, 438 insertions(+), 45 deletions(-) create mode 100644 src/components/CarInfo/CarInfo.vue create mode 100644 src/components/Traffic/Traffic.vue create mode 100644 src/types/parking.d.ts diff --git a/public/static/offline/JSON/getParkingInfo.json b/public/static/offline/JSON/getParkingInfo.json index 1c91df2..fe63202 100644 --- a/public/static/offline/JSON/getParkingInfo.json +++ b/public/static/offline/JSON/getParkingInfo.json @@ -1 +1,16 @@ -{"code":200,"msg":"操作成功","data":{"title":"泊车介绍","titleEn":"Parking information","content":"1月9日,中共中央总书记、国家主席、中央军委主席习近平在中国共产党第二十届中央纪律检查委员会第二次全体会议上发表重要讲话。李强、赵乐际、王沪宁、蔡奇、丁薛祥、李希出席会议。新华社记者 张领 摄\n二十届中央纪委二次全会公报强调,时刻保持解决大党独有难题的清醒和坚定,坚定不移推动健全全面从严治党体系我们党作为长期执政的马克思主义政党和世界上第一大政党,党的远大目标和历史使命,党的队伍的庞大规模和广泛分布,党面临的重大风险和严峻挑战,都决定了只有整体地而不是局部地、系统地而不是零碎地、持久地而不是短暂地、高标准地而不是一般化地全面从严治党,才能把我们党建设好。","contentEn":"Parking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking information","fileList":["/iotFile/2023/04/18/3EbfJy1GEkeIUtpK3AwWB.png"],"qrFileList":[{"name":"二维码","nameEn":"QR code","fileUrl":"/iotFile/2023/04/18/97JzNgLukcEbLdBDKhWj1.png"}]}} \ No newline at end of file +{ + "code": 200, + "msg": "操作成功", + "data": { + "title": "泊车介绍", + "titleEn": "Parking information", + "content": "1月9日,中共中央总书记、国家主席、中央军委主席习近平在中国共产党第二十届中央纪律检查委员会第二次全体会议上发表重要讲话。李强、赵乐际、王沪宁、蔡奇、丁薛祥、李希出席会议。新华社记者 张领 摄\n二十届中央纪委二次全会公报强调,时刻保持解决大党独有难题的清醒和坚定,坚定不移推动健全全面从严治党体系我们党作为长期执政的马克思主义政党和世界上第一大政党,党的远大目标和历史使命,党的队伍的庞大规模和广泛分布,党面临的重大风险和严峻挑战,都决定了只有整体地而不是局部地、系统地而不是零碎地、持久地而不是短暂地、高标准地而不是一般化地全面从严治党,才能把我们党建设好。", + "contentEn": "Parking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking informationParking information", + "fileList": ["/iotFile/2023/04/18/3EbfJy1GEkeIUtpK3AwWB.png"], + "qrFileList": [{ + "name": "二维码", + "nameEn": "QR code", + "fileUrl": "/iotFile/2023/04/18/97JzNgLukcEbLdBDKhWj1.png" + }] + } +} diff --git a/src/base/Message/Message.vue b/src/base/Message/Message.vue index b920e67..14d5351 100644 --- a/src/base/Message/Message.vue +++ b/src/base/Message/Message.vue @@ -59,15 +59,12 @@ onMounted(() => { top: 200px; left: 50%; z-index: 9999; - min-width: 300px; - height: 50px; - padding: 0 25px; + padding: 40px 80px; color: #999; background: #f5f5f5; border: 1px solid #e4e4e4; border-radius: 100px; transform: translate3d(-50%, 0, 0); - line-height: 50px; .text-tips { font-size: 24px; diff --git a/src/components/CarInfo/CarInfo.vue b/src/components/CarInfo/CarInfo.vue new file mode 100644 index 0000000..177d69c --- /dev/null +++ b/src/components/CarInfo/CarInfo.vue @@ -0,0 +1,139 @@ + + + + + + + + 车牌号 + 辽A88888 + + + 车位号 + E-666 + + + 停车时长 + 1小时 + + + + + + + + GO + + + + + + + + + + + + diff --git a/src/components/PlateInput/PlateInput.vue b/src/components/PlateInput/PlateInput.vue index f3f61f1..8f3fb9f 100644 --- a/src/components/PlateInput/PlateInput.vue +++ b/src/components/PlateInput/PlateInput.vue @@ -1,10 +1,10 @@ - - + + @@ -16,8 +16,8 @@ - - + + {{ btnText }} @@ -61,21 +61,40 @@ onMounted(() => {