From 91a6d368073912a2e54bbd8c8a39c44d783881d8 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期三, 28 八月 2024 17:03:00 +0800
Subject: [PATCH] 打卡相关

---
 src/pages/enterprise/index.vue |   72 ++++++++++++++++++++++++++----------
 1 files changed, 52 insertions(+), 20 deletions(-)

diff --git a/src/pages/enterprise/index.vue b/src/pages/enterprise/index.vue
index 220125a..df971e0 100644
--- a/src/pages/enterprise/index.vue
+++ b/src/pages/enterprise/index.vue
@@ -3,33 +3,27 @@
 		<view class="content chuany-flex chuany-align-end chuany-justify-center">
 			<up-avatar src="/static/avatar.jpg" shape="circle" size='80'></up-avatar>
 		</view>
-		<fui-list>
-			<fui-list-cell arrow>
+		<fui-list :topBorder='false'>
+			<fui-list-cell arrow :bottomBorder='false' :padding="['20rpx', '32rpx', '20rpx', '32rpx']">
 				<view class="fui-list__item">
-					<text>浼佷笟鍚嶇О</text>
-					<text class="fui-text__explain">鎴戞槸浼佷笟鍚嶇О</text>
+					<text class="chuany-font30">浼佷笟鍚嶇О</text>
+					<text class="fui-text__explain">{{enterpriseInfo.suppliername}}</text>
 				</view>
 			</fui-list-cell>
-			<fui-list-cell arrow>
+			<fui-list-cell arrow :bottomBorder='false' :padding="['20rpx', '32rpx', '20rpx', '32rpx']">
 				<view class="fui-list__item">
-					<text>浼佷笟娉ㄥ唽鍦板潃</text>
-					<text class="fui-text__explain">鎴戞槸浼佷笟娉ㄥ唽鍦板潃</text>
+					<text class="chuany-font30">浼佷笟娉ㄥ唽鍦板潃</text>
+					<text class="fui-text__explain address">{{enterpriseInfo.address}}</text>
 				</view>
 			</fui-list-cell>
-			<fui-list-cell arrow>
+			<fui-list-cell arrow :bottomBorder='false' :padding="['20rpx', '32rpx', '20rpx', '32rpx']">
 				<view class="fui-list__item">
-					<text>鑱旂郴鐢佃瘽</text>
-					<text class="fui-text__explain">13245678956</text>
+					<text class="chuany-font30">鑱旂郴鐢佃瘽</text>
+					<text class="fui-text__explain">{{enterpriseInfo.phone}}</text>
 				</view>
 			</fui-list-cell>
-
-			<fui-list-cell arrow>
-				<view class="fui-list__item">
-					<text>鍏徃绠�浠�</text>
-					<text class="fui-text__explain">鎴戞槸鍏徃绠�浠�</text>
-				</view>
-			</fui-list-cell> <fui-list-cell arrow @click="goApply">
-				<text>瀹屽杽浼佷笟璧勬枡</text>
+			<fui-list-cell arrow @click="goApply" :bottomBorder='false' :padding="['20rpx', '32rpx', '20rpx', '32rpx']">
+				<text class="chuany-font30">瀹屽杽浼佷笟璧勬枡</text>
 			</fui-list-cell>
 		</fui-list>
 	</view>
@@ -37,8 +31,42 @@
 
 <script setup>
 	import {
-		ref
+		onLoad,
+		onShow
+	} from "@dcloudio/uni-app";
+	import {
+		ref,
+		reactive,
+		getCurrentInstance
 	} from 'vue';
+	const {
+		$db
+	} = getCurrentInstance().appContext.config.globalProperties
+	onShow(() => {
+		let data = JSON.parse($db.get('userInfo')).userCompany
+		if (data) {
+			enterpriseInfo.businessLicense = data.businessLicense
+			enterpriseInfo.suppliername = data.suppliername //浼佷笟鍚嶇О
+			enterpriseInfo.regtime = data.regtime //娉ㄥ唽鏃堕棿
+			enterpriseInfo.address = data.address //鑱旂郴鍦板潃
+			enterpriseInfo.suppliercode = data.suppliercode //浼佷笟娉ㄥ唽鍙�
+			enterpriseInfo.contact = data.contact //鑱旂郴浜�
+			enterpriseInfo.phone = data.phone //鑱旂郴鐢佃瘽
+			enterpriseInfo.id = data.id
+			enterpriseInfo.resume = data.resume
+		}
+	})
+	const enterpriseInfo = reactive({
+		id: 0, //鐢ㄦ埛鍏徃Id
+		businessLicense: '', //钀ヤ笟鎵х収璺緞
+		suppliername: '', //浼佷笟鍚嶇О
+		regtime: '', //娉ㄥ唽鏃堕棿
+		address: '', //鑱旂郴鍦板潃
+		suppliercode: '', //浼佷笟娉ㄥ唽鍙�
+		contact: '', //鑱旂郴浜�
+		phone: '', //鑱旂郴鐢佃瘽
+		resume: '', //鍏徃绠�浠�
+	})
 	// let src = "http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg"
 	const goApply = () => {
 		uni.navigateTo({
@@ -50,7 +78,7 @@
 <style>
 	.content {
 		height: 300rpx;
-		background-color: #d8d8d8;
+		background: linear-gradient(to bottom, #fbec99, #ffffff);
 	}
 
 	.fui-list__item {
@@ -66,4 +94,8 @@
 		color: #7F7F7F;
 		flex-shrink: 0;
 	}
+
+	.address {
+		width: 65%;
+	}
 </style>
\ No newline at end of file

--
Gitblit v1.9.1