From 1f4e7d0f73a73e7350cf5a1df279d5f30904c5d5 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 06 十二月 2023 08:41:32 +0800
Subject: [PATCH] bug

---
 minipro_standard/pages/workbench/workbench.vue |   69 +++++-----------------------------
 1 files changed, 10 insertions(+), 59 deletions(-)

diff --git a/minipro_standard/pages/workbench/workbench.vue b/minipro_standard/pages/workbench/workbench.vue
index 089312b..a301b62 100644
--- a/minipro_standard/pages/workbench/workbench.vue
+++ b/minipro_standard/pages/workbench/workbench.vue
@@ -1,12 +1,12 @@
 <template>
 	<view class="index">
 		<view class="menu">
-			<!-- <view class="menu_list" v-for="(row, i) in Menu" :key="i">
+			<view class="menu_list" v-for="(row, i) in Menu" :key="i">
 				<view class="menu_list_head">
 					<span>{{row.label}}</span>
 				</view>
 				<div class="menu_list_list">
-					<view class="menu_list_item" v-for="item in row.children" :key="item.id" @click="jump(item)">
+					<view class="menu_list_item" v-for="item in row.children" :key="item.id" @click="jump(item.urlSec)">
 						<image :src="item.icon" mode="widthFix" />
 						<span>{{item.label}}</span>
 					</view>
@@ -14,7 +14,7 @@
 					<view class="menu_list_zw"></view>
 					<view class="menu_list_zw"></view>
 				</div>
-			</view> -->
+			</view>
 		</view>
 		<myTabbar :index="1" />
 	</view>
@@ -28,71 +28,22 @@
 		components: {
 			myTabbar
 		},
-		computed: mapState([
-			'Menu'
-		]),
-		onReady() {
-			console.log(this.Menu)
+		computed: {
+			...mapState(['Menu'])
 		},
 		data() {
 			return {
-				list: [
-					{
-						icon: require('@/static/logo@2x.png'),
-						label: '娴嬭瘯'
-					},
-					{
-						icon: require('@/static/logo@2x.png'),
-						label: '娴嬭瘯'
-					},
-					{
-						icon: require('@/static/logo@2x.png'),
-						label: '娴嬭瘯'
-					},
-					{
-						icon: require('@/static/logo@2x.png'),
-						label: '娴嬭瘯'
-					},
-					{
-						icon: require('@/static/logo@2x.png'),
-						label: '娴嬭瘯'
-					},
-					{
-						icon: require('@/static/logo@2x.png'),
-						label: '娴嬭瘯'
-					}
-				]
+				
 			};
 		},
 		onLoad() {
+			this.$store.dispatch('getUpcomingNum')
 			uni.hideTabBar()
-			// uni.login({
-			// 	success: data => {
-			// 		this.wxLogin(data.code)
-			// 	},
-			// 	fail: err => {
-			// 		uni.$u.toast(err)
-			// 	}
-			// })
 		},
 		methods: {
-			
-			// wxLogin(code) {
-			// 	wxEmpower({code})
-			// 		.then(res => {
-			// 			this.openId = res.openid
-			// 			if (res.userInfo) {
-			// 				this.$store.commit('SETTOKEN', res.userInfo.token)
-			// 				this.$store.commit('SETUSERINFO', res.userInfo)
-			// 				uni.navigateTo({
-			// 					url:'/pages/projectList/projectList'
-			// 				})
-			// 			} 
-			// 		})
-			// 		.catch(err => {
-			// 			uni.$u.toast(err)
-			// 		})
-			// }
+			jump(url) {
+				uni.navigateTo({ url });
+			}
 		}
 	}
 </script>

--
Gitblit v1.9.3