From 0e9b58dea98030029d30e86a0460323c8e56b1ec Mon Sep 17 00:00:00 2001
From: 346149741 <346149741@qq.com>
Date: 星期二, 03 九月 2024 14:03:00 +0800
Subject: [PATCH] 新增临时企业

---
 pages/index/index.vue |   57 ++++++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 48 insertions(+), 9 deletions(-)

diff --git a/pages/index/index.vue b/pages/index/index.vue
index 095bc2d..217be71 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,24 +1,27 @@
 <template>
 	<view>
 		<img src="/static/head.png" class="head" alt="" />
-		<view class="hqzc">
+		<view class="hqzc" @click="more1()">
 			<img src="/static/hqzc.png" class="img" alt="" />
 			<view class="line"></view>
 			<view class="font">
-				<p v-for="(item,index) in list1" :key="index">{{item.docTitle}}</p>
+				<p v-for="(item,index) in list1" :key="index" class="u-line-1">{{item.docTitle}}</p>
 				<!-- <p>娴峰叧鎬荤讲璐告槗鎸佺画鍙戝睍2024骞寸珛娉�...</p>
 				<p>鍥藉鍖荤枟淇濋殰灞�鍔炲叕瀹ゅ叧浜庡彂甯冪鐞�... </p> -->
 			</view>
-			<img src="/static/i06.png" class="more" @click="more1()" alt="" />
+			<img src="/static/i06.png" class="more"  alt="" style="width: 46rpx;height: 46rpx;"/>
 		</view>
 		<view class="btnbox">
-			<img src="/static/i01.png" class="more" alt="" style="margin-right: 18rpx;" />
-			<img src="/static/i02.png" class="more" alt="" />
-			<img src="/static/i03.png" class="more" alt="" style="margin-right: 18rpx;" />
-			<img src="/static/i04.png" class="more" alt="" />
+			<image mode="widthFix" src="/static/i01.png" class="more" alt="" style="margin-right: 18rpx;" @click="goMyCompany('01')"/>
+			<image mode="widthFix" src="/static/i02.png" class="more" alt="" @click="goMyCompany('02')"/>
+			<image mode="widthFix" src="/static/i03.png" class="more" alt="" style="margin-right: 18rpx;" @click="goMyCompany('01')"/>
+			<image mode="widthFix" src="/static/i04.png" class="more" alt="" @click="goMyCompany('00')"/>
 				<!-- <u-button @click="goMyCompany('01')">鎴戞槸鎵ф硶浜哄憳</u-button>
 				<u-button @click="goMyCompany('02')">鎴戞槸浼佷笟</u-button>
 				<u-button @click="goMyCompany('00')">杩愯惀绠$悊</u-button> -->
+		</view>
+		<view class="login-news" @click="goLogin">
+			<image src="/static/index-1.png" mode="widthFix" @click="goLogin"></image>
 		</view>
 		<view class="msgbox">
 			<view class="tit">
@@ -125,9 +128,28 @@
 	// 00钀ュ晢鍔�,01鎵ф硶,02浼佷笟 鍖哄垎涓嶅悓鐨勭櫥闄嗛〉闈�
 	export default {
 		onLoad() {
+			
 		},
 		onShow() {
 			this.getInfo()
+			const value = uni.getStorageSync("userInfo")
+			const sessionToken = uni.getStorageSync('sessionToken')
+			if(sessionToken && value && value.userType) {
+				const qiyeData = uni.getStorageSync('qiyedata')
+				if(value.userType == '02') {
+					uni.reLaunch({
+						url:`/qiye/qiyeIndex/qiyeIndex?id=${qiyeData.deptId}`
+					})
+				} else if(value.userType == '01'){
+					uni.reLaunch({
+						url:`/policy/policyIndex/policyIndex`
+					})
+				} else {
+					uni.reLaunch({
+						url:`/policy/policyIndex/policyIndex`
+					})
+				}
+			}
 		},
 		data() {
 			return {
@@ -170,6 +192,15 @@
 				uni.navigateTo({
 					url: `/pages/companyLogin/companyLogin?code=${item}`
 				})
+			},
+			goLogin() {
+				uni.scanCode({
+					success: (val) =>{
+						uni.navigateTo({
+							url: `/pages/visitiorRegis/visitiorRegis?value=${val.result}`
+						})
+					}
+				})
 			}
 		}
 	};
@@ -192,6 +223,7 @@
 		top: 500rpx;
 		padding: 24rpx;
 		box-sizing: border-box;
+		
 		.line{
 			width: 2rpx;
 			height: 50rpx;
@@ -212,14 +244,15 @@
 			color: #4A4E60;
 			margin-right: 50rpx;
 			width: 450rpx;
-			text-align: center;
+			// text-align: center;
+			text-align: left;
 		}
 	}
 	.btnbox{
 		margin-top: 110rpx;
 		margin-left: 32rpx;
 		margin-right: 32rpx;
-		img{
+		image{
 			width: 334rpx;
 			height: 208rpx;
 		}
@@ -293,4 +326,10 @@
 		width: 100%;
 		height: 518rpx;
 	}
+	.login-news{
+		margin: 20rpx 32rpx;
+		image{
+			width: 100%;
+		}
+	}
 </style>
\ No newline at end of file

--
Gitblit v1.9.1