From da67e764cb4e7c6f64bf5f172ea874f42d1ad2d2 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期四, 13 二月 2025 16:22:48 +0800 Subject: [PATCH] # --- pages/home/orderManage.vue | 40 ++++++++++++++++++++++++++++++++++++++-- 1 files changed, 38 insertions(+), 2 deletions(-) diff --git a/pages/home/orderManage.vue b/pages/home/orderManage.vue index 01069e6..e1df9ab 100644 --- a/pages/home/orderManage.vue +++ b/pages/home/orderManage.vue @@ -12,6 +12,7 @@ </view> <view class="cu-tabbar-height"></view> </scroll-view> + <view style="height: 50rpx;"></view> </view> </template> @@ -73,6 +74,13 @@ url: `/phyz/bcp/bcpOrder` }, { + title: '鍗婃垚鍝佸叆搴撳崟_鍚稿', + name: 'bcpOrder', + color: 'blue', + // cuIcon: 'pullup', + url: `/phyz/bcp/bcpOrder_xs` + }, + { title: '鍗婃垚鍝佽皟鎷ㄥ崟', name: 'bcpDbOrder', color: 'blue', @@ -85,6 +93,13 @@ color: 'blue', // cuIcon: 'pullup', url: `/phyz/orderOut/bcpOrderOutSelect` + }, + { + title: '鍗婃垚鍝佸嚭搴撳崟_浜屽巶', + name: 'bcpOutOrder', + color: 'blue', + // cuIcon: 'pullup', + url: `/phyz/orderOut/bcpOrderOutSelect_2` }, { title: '鍗婃垚鍝佸姞宸ュ崟', @@ -116,6 +131,7 @@ }, ], + menu: [], colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','olive','grey' ] }; }, @@ -129,8 +145,9 @@ onLoad(option) { this.baseUrl = uni.getStorageSync('baseUrl'); this.token = uni.getStorageSync('token'); - this.project = uni.getStorageSync('project') - this.getAuth(option.id) + this.project = uni.getStorageSync('project'); + this.menu = uni.getStorageSync('menu'); + this.getAuth2(option.id) this.backGroundRepeat() }, methods: { @@ -145,6 +162,25 @@ i++ } }, + getAuth2(id) { + let secMenu = [] + for (let k of this.menu) { + if (id == k.id) { + secMenu = k.children + } + } + for (let i in secMenu) { + this.getIcon(secMenu[i].title) + this.elements.unshift({ + title: secMenu[i].name, + name: secMenu[i].title, + color: this.colorList[i], + cuIcon: this.icon, + id: secMenu[i].id, + url: `${secMenu[i].code}` + }) + } + }, getAuth(id) { let that = this uni.request({ -- Gitblit v1.9.1