瀏覽代碼

细节优化

zhengkaixin 3 月之前
父節點
當前提交
d357a13bb8
共有 2 個文件被更改,包括 25 次插入12 次删除
  1. 2 1
      pages/information/parkingRecord.vue
  2. 23 11
      pages/mylock/infoLock.vue

+ 2 - 1
pages/information/parkingRecord.vue

@@ -152,7 +152,7 @@
 </style>
 <style lang="scss" scoped >
 	::v-deep .u-content{
-		width: 0 !important;
+		width: 380% !important;
 	}
 	.search {
 	
@@ -165,6 +165,7 @@
 			background: #F2F2F2;
 			padding: 1px 16rpx;
 			border-radius: 8px;
+			    justify-content: space-between;
 		}
 	}
 	.body2{

+ 23 - 11
pages/mylock/infoLock.vue

@@ -133,16 +133,16 @@
 				<view class="table">
 					<view class="table_v">
 						<view class="table_tr">
-							<view class="table_td">姓名</view>
-							<view class="table_td">手机号</view>
-							<view class="table_td">车牌号</view>
-							<view class="table_td">操作</view>
+							<view class="table_td table_td1">姓名</view>
+							<view class="table_td table_td2">手机号</view>
+							<view class="table_td table_td3">车牌号</view>
+							<view class="table_td table_td4">操作</view>
 						</view>
 						<view class="table_tr" v-for="(item,i) in whiteList" :key="i">
-							<view class="table_td">{{item.nickName}}</view>
-							<view class="table_td">{{item.phone}}</view>
-							<view class="table_td">{{item.carNumber==0?'':item.carNumber}}</view>
-							<view class="table_td" style="color:#1677FF;white-space: pre;" @click="editUser(item)">修改</view>
+							<view class="table_td table_td1">{{item.nickName}}</view>
+							<view class="table_td table_td2">{{item.phone}}</view>
+							<view class="table_td table_td3">{{item.carNumber==0?'':item.carNumber}}</view>
+							<view class="table_td table_td4" style="color:#1677FF;white-space: pre;" @click="editUser(item)">修改</view>
 						</view>
 
 					</view>
@@ -161,9 +161,9 @@
 
 				<view class="popup-title">{{vipUser.id?'修改':'添加'}}白名单信息</view>
 				<view style="padding: 4px;">白名单车主姓名<span style="color: red;">*</span></view>
-				<u-input :customStyle="customStyle" v-model="vipUser.nickName" placeholder="白名单车主姓名(必填)"></u-input>
+				<u-input :customStyle="customStyle"  maxlength="8"  v-model="vipUser.nickName" placeholder="白名单车主姓名(必填)"></u-input>
 				<view style="padding: 4px;">白名单车主手机号码<span style="color: red;">*</span></view>
-				<u-input :customStyle="customStyle" type="number" v-model="vipUser.phone"
+				<u-input :customStyle="customStyle" maxlength="13" type="number" v-model="vipUser.phone"
 					placeholder="白名单车主手机号码(必填)"></u-input>
 				<view style="padding: 4px;">白名单车主车牌号</view>
 				<!-- 						<u-input :customStyle="customStyle" v-model="vipUser.carNumber" placeholder="白名单车主车牌号"></u-input> -->
@@ -523,13 +523,25 @@
 			}
 
 			.table_td {
-
+				
 				height: 72rpx;
 				font-size: 28rpx;
 				    display: flex;
 				    align-items: center;
 
 
+			}
+			.table_td1{
+				width: 30%;
+			}
+			.table_td2{
+				width: 30%;
+			}
+			.table_td3{
+				width: 30%;
+			}
+			.table_td4{
+				width: 10%;
 			}
 
 			/* 隔行变色: 偶数行设置背景色 */