From 12687332b674bc64ee1d2ff4bae0144ef768ca65 Mon Sep 17 00:00:00 2001 From: liyongle Date: Mon, 8 May 2023 11:03:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=9A=80=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/offline/JSON/getModuleList.json | 34 ++++++++++++++ src/components/Menu/Menu.vue | 46 ++++++++++++++----- src/composables/useInitConfigAndMallInfo.ts | 22 +++++---- src/http/api/home/index.ts | 4 ++ src/store/root/actions.ts | 4 ++ src/store/root/state.ts | 4 +- src/types/menu.d.ts | 4 ++ src/views/Index/Middle.vue | 20 +++++++- src/views/Parking/Parking.vue | 2 +- 9 files changed, 115 insertions(+), 25 deletions(-) create mode 100644 public/static/offline/JSON/getModuleList.json create mode 100644 src/http/api/home/index.ts create mode 100644 src/types/menu.d.ts diff --git a/public/static/offline/JSON/getModuleList.json b/public/static/offline/JSON/getModuleList.json new file mode 100644 index 0000000..721b3a1 --- /dev/null +++ b/public/static/offline/JSON/getModuleList.json @@ -0,0 +1,34 @@ +{ + "code": 200, + "msg": "操作成功", + "data": [ + { + "moduleName": "主页", + "status": 0 + }, + { + "moduleName": "店铺导航", + "status": 0 + }, + { + "moduleName": "优惠与活动", + "status": 0 + }, + { + "moduleName": "会员专享", + "status": 0 + }, + { + "moduleName": "服务", + "status": 0 + }, + { + "moduleName": "停车与缴费", + "status": 1 + }, + { + "moduleName": "文化学院", + "status": 0 + } + ] +} diff --git a/src/components/Menu/Menu.vue b/src/components/Menu/Menu.vue index 48f7639..1152b7d 100644 --- a/src/components/Menu/Menu.vue +++ b/src/components/Menu/Menu.vue @@ -1,6 +1,12 @@ diff --git a/src/views/Parking/Parking.vue b/src/views/Parking/Parking.vue index cc6d69c..b1ae682 100644 --- a/src/views/Parking/Parking.vue +++ b/src/views/Parking/Parking.vue @@ -24,7 +24,7 @@

{{ switchLanguage(parkingInfo, 'title') }}

- +
{{ switchLanguage(parkingInfo, 'content') }}