From c3b2d6d35b77d11ff86d45926501493b7fc8886e Mon Sep 17 00:00:00 2001
From: wjt <1797368093@qq.com>
Date: 星期二, 23 七月 2024 10:30:20 +0800
Subject: [PATCH] 新功能添加

---
 pages/index/index.vue |   28 +++++++++++++++++++++++-----
 1 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/pages/index/index.vue b/pages/index/index.vue
index 4d5e1b1..217be71 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -12,13 +12,16 @@
 			<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;" @click="goMyCompany('01')"/>
-			<img src="/static/i02.png" class="more" alt="" @click="goMyCompany('02')"/>
-			<img src="/static/i03.png" class="more" alt="" style="margin-right: 18rpx;" @click="goMyCompany('01')"/>
-			<img src="/static/i04.png" class="more" alt="" @click="goMyCompany('00')"/>
+			<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">
@@ -189,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}`
+						})
+					}
+				})
 			}
 		}
 	};
@@ -240,7 +252,7 @@
 		margin-top: 110rpx;
 		margin-left: 32rpx;
 		margin-right: 32rpx;
-		img{
+		image{
 			width: 334rpx;
 			height: 208rpx;
 		}
@@ -314,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