From 4bfcad30f5af137f6d3050ddbe9109471570e9c9 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期六, 17 十二月 2022 17:00:39 +0800
Subject: [PATCH] #

---
 pages/business/cstmr/cstmrDetails.vue |  129 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 129 insertions(+), 0 deletions(-)

diff --git a/pages/business/cstmr/cstmrDetails.vue b/pages/business/cstmr/cstmrDetails.vue
index 02409e3..6f27b5e 100644
--- a/pages/business/cstmr/cstmrDetails.vue
+++ b/pages/business/cstmr/cstmrDetails.vue
@@ -1,8 +1,137 @@
 <template>
+	<view>
+		<scroll-view scroll-y="true" >
+			<view class="header">
+				<view class="cstmr-name">
+					<image src="../../../static/image/jiafangdanwei.png" mode="aspectFit"></image>
+					<view>{{cstmr.name}}</view>
+				</view>
+				<view class="cstmr-tel">{{cstmr.tel}} | {{cstmr.addr}} | {{cstmr.director$}}</view>
+			</view>
+			<view class="container">
+				<view><y-title title="鍩烘湰淇℃伅"></y-title></view><view></view>
+				<view class="list-item1">瀹㈡埛鍚嶇О</view><view class="list-item2">{{cstmr.name}}</view>
+				<view class="list-item1">瀹㈡埛绫诲埆</view><view class="list-item2">{{cstmr.cstmrType$}}</view>
+				<view class="list-item1">鐪佸競鍖�</view><view class="list-item2">{{cstmr.pcd$}}</view>
+				<view class="list-item1">瀹㈡埛鑱旂郴浜�</view><view class="list-item2">{{cstmr.contacts}}</view>
+				<view class="list-item1">澶囨敞</view><view class="list-item2">{{cstmr.remarks  ? cstmr.remarks : '--'}}</view>
+				<view class="list-item1">璐熻矗浜�</view><view class="list-item2 color-main">{{cstmr.director$}}</view>
+				<view class="list-item1">鍖哄垎</view><view class="list-item2">{{cstmr.type$}}</view>
+				<view class="list-item1">瀹㈡埛鍏崇郴</view><view class="list-item2">{{cstmr.rela  ? cstmr.rela : '--'}}</view>
+				<view class="list-item1">璇︾粏鍦板潃</view><view class="list-item2">{{cstmr.addr}}</view>
+				<view class="list-item1">鐢佃瘽</view><view class="list-item2 color-main">{{cstmr.tel}}</view>
+				<view class="list-item1">瀹㈡埛浠e彿</view><view class="list-item2">{{cstmr.uuid}}</view>
+			</view>
+			<view class="container">
+				<view><y-title title="鍏朵粬淇℃伅"></y-title></view><view></view>
+				<view class="list-item1">娣诲姞浜哄憳</view><view class="list-item2 color-main">{{cstmr.createBy$}}</view>
+				<view class="list-item1">娣诲姞鏃堕棿</view><view class="list-item2">{{cstmr.createTime$}}</view>
+				<view class="list-item1">淇敼浜哄憳</view><view class="list-item2">{{cstmr.updateBy$}}</view>
+				<view class="list-item1">淇敼鏃堕棿</view><view class="list-item2 color-main">{{cstmr.updateTime$}}</view>
+			</view>
+			<view class="container">
+				<view><y-title title="璺熻繘浜�"></y-title></view><view></view><view><uni-icons type="plus" size="20" color="#55aaff"></uni-icons></view>
+			</view>
+			
+		</scroll-view>
+		<view class="foot">
+			<button>鍒犻櫎</button>
+		</view>
+	</view>
 </template>
 
 <script>
+	export default {
+		data() {
+			return {
+				id: '',
+				baseUrl: '',
+				cstmr: {
+					name: '娌冲寳鍚涢偊涔充笟鏈夐檺鍏徃',
+					tel: '15067665399',
+					addr: '娌冲寳鐪侀偗閮稿競鍚涢偊涔充笟鏈夐檺鍏徃',
+					cstman: '鏈辨槑蹇�'
+				}
+			}
+		},
+		onLoad(option) { 
+			this.id = option.id
+			this.baseUrl = uni.getStorageSync('baseUrl')
+			this.init()
+		},
+		methods: {
+			init() {
+				let that = this
+				uni.request({
+					url: that.baseUrl + '/cstmr/' + that.id +'/auth',
+					header: {'token' : uni.getStorageSync('token')},
+					method: 'GET',
+					success(res) {
+						res = res.data
+						that.cstmr = res.data
+						console.log(res);
+					}
+				})
+			}
+		}
+	}
 </script>
 
 <style>
+	.header {
+		width: auto;
+		min-height: 110rpx;
+		background-color: #f8f8f8;
+		padding: 30px 20px 10px 20px;
+	}
+	.cstmr-name {
+		display: flex;
+		height: 35rpx;
+		line-height: 35rpx;
+		text-indent: 10rpx;
+		font-size: 36rpx;
+		color: #606266;
+	}
+	.cstmr-name image {
+		width: 35rpx;
+		height: 35rpx;
+	}
+	.cstmr-tel {
+		min-height: 60rpx;
+		line-height: 60rpx;
+		font-size: 24rpx;
+		color: #303133;
+	}
+	.container {
+		margin-top: 10px;
+		padding: 10rpx 20rpx 0 20rpx;
+		background-color: #f8f8f8;
+		display: grid;
+		grid-template-columns: 1fr 3fr;
+	}
+	.container:last-child {
+		grid-template-columns: 5fr 5fr 2fr;
+		margin-bottom: 100rpx;
+	}
+	.list-item1 {
+		min-height: 45rpx;
+		line-height: 45rpx;
+		color: #909399;
+		text-indent: 30rpx;
+	}
+	.list-item2 {
+		min-height: 45rpx;
+		line-height: 45rpx;
+		color: black;
+	}
+	.color-main {
+		color: #55aaff
+	}
+	.foot {
+		position: fixed;
+		/* display: flex; */
+		min-height: 100rpx;
+		bottom: 0;
+		margin-bottom: 0;
+	}
 </style>
\ No newline at end of file

--
Gitblit v1.9.1