From 88ed4e64191d2f1fc5470c714357f351a7829904 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期日, 25 六月 2023 13:36:57 +0800
Subject: [PATCH] #

---
 pages/home/home.vue |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/pages/home/home.vue b/pages/home/home.vue
index 8640219..6075358 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -21,6 +21,7 @@
 			return {
 				baseUrl: '',
 				token: '',
+				icon: '',
 				elements: [],
 				elements2: [{
 						title: '缁勬墭鍏ュ簱',
@@ -136,11 +137,12 @@
 								if (res.data.length < 0) {
 									break;
 								}
+								that.getIcon(res.data[i].title)
 								that.elements.unshift({
 									title: res.data[i].name,
 									name: res.data[i].title,
 									color: that.colorList[i],
-									cuIcon: 'safe',
+									cuIcon: that.icon,
 									url: res.data[i].action
 								})
 							}
@@ -148,7 +150,8 @@
 								title: '閫�鍑虹櫥褰�',
 								name: 'logOut',
 								color: 'grey',
-								cuIcon: 'exit'
+								cuIcon: 'exit',
+								url: '/login/logOut'
 							})
 						} else if (res.code === 403) {
 							uni.showToast({
@@ -180,6 +183,12 @@
 					}
 				})
 			},
+			getIcon(e) {
+				const ways = ['pakin','orderPakin','orderPutOn']
+				if (ways.includes(e)) {
+					this.icon = 'pullup'
+				}
+			}
 		}
 	}
 </script>

--
Gitblit v1.9.1