From a9aac2124cc6fd28f7597f9b006d3d2eec3938d4 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 22 Feb 2024 10:13:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .hbuilderx/launch.json | 15 ++++--- pages/home/home.vue | 34 ++++----------- pages/login/login.vue | 87 +++++++++++++++++++++++-------------- static/image/bg.png | Bin 0 -> 156784 bytes static/image/menu/RF01.png | Bin 2595 -> 2394 bytes static/image/menu/RF02.png | Bin 2668 -> 2265 bytes static/image/menu/RF04.png | Bin 2249 -> 0 bytes static/image/menu/RF05.png | Bin 3065 -> 0 bytes static/image/menu/RF06.png | Bin 2390 -> 0 bytes static/image/menu/RF07.png | Bin 1970 -> 0 bytes static/image/menu/RF08.png | Bin 2601 -> 0 bytes static/image/menu/RF09.png | Bin 3239 -> 0 bytes static/image/menu/RF10.png | Bin 1599 -> 0 bytes 13 files changed, 72 insertions(+), 64 deletions(-) create mode 100644 static/image/bg.png delete mode 100644 static/image/menu/RF04.png delete mode 100644 static/image/menu/RF05.png delete mode 100644 static/image/menu/RF06.png delete mode 100644 static/image/menu/RF07.png delete mode 100644 static/image/menu/RF08.png delete mode 100644 static/image/menu/RF09.png delete mode 100644 static/image/menu/RF10.png diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index c9abd4b..582561b 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -2,10 +2,15 @@ // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 "version": "0.0", "configurations": [{ - "type": "uniCloud", - "default": { - "launchtype": "local" - } - } + "app-plus" : + { + "launchtype" : "local" + }, + "default" : + { + "launchtype" : "local" + }, + "type" : "uniCloud" + } ] } diff --git a/pages/home/home.vue b/pages/home/home.vue index 90d515e..5f655b6 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -13,15 +13,11 @@ - - - - {{e.name}} - + - - - {{el.name}} + + + {{e.name}} @@ -36,19 +32,10 @@ return { userName: '', menuList: [ - {id: '1', name: '人工组盘', sonTree: [ - {menu_id: '1', icon: 'RF01', name: '人工组盘', path: '/pages/manage/man-group-disk'} - ]}, - {id: '2', name: '原材料库', sonTree: [ - {menu_id: '1', icon: 'RF02', name: '入库', path: '/pages/manage/in-storage'}, - {menu_id: '2', icon: 'RF03', name: '出库', path: '/pages/manage/out-storage'} - ]}, - {id: '3', name: '任务流转', sonTree: [ - {menu_id: '1', icon: 'RF04', name: '任务流转', path: '/pages/manage/task-flow'} - ]} - ], - show: false, - secM: [] + {id: '1', name: '人工排产', icon: 'RF01', path: '/pages/manage/man-group-disk'}, + {id: '2', name: '涂线板', icon: 'RF02', path: '/pages/manage/man-group-disk'}, + {id: '3', name: '物料库存', icon: 'RF03', path: '/pages/manage/man-group-disk'} + ] }; }, created () { @@ -58,11 +45,6 @@ } }, methods: { - async _authority () { - let res = await authority() - this.menuList = [...res.sonTree] - - }, toPage (e) { let url = e.path uni.redirectTo({ diff --git a/pages/login/login.vue b/pages/login/login.vue index 984935b..202f41c 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -1,24 +1,29 @@ @@ -70,9 +75,9 @@ }) }, async toLogin() { - // uni.redirectTo({ - // url: '/pages/home/home' - // }) + uni.redirectTo({ + url: '/pages/home/home' + }) this.disabled = true if (this.user === '') { uni.showToast({ @@ -130,12 +135,39 @@