shish пре 1 година
родитељ
комит
f25cec46d9
1 измењених фајлова са 31 додато и 3 уклоњено
  1. 31 3
      ghsApp/src/admin/order/statBook.vue

+ 31 - 3
ghsApp/src/admin/order/statBook.vue

@@ -57,9 +57,15 @@
 		<uni-popup ref="staffRef" background-color="#fff" type="center" :animation="false" class="class-popup-style">
 			<view style="max-height:90vh;overflow: scroll;">
 				<view style="margin-left:30upx;margin-top:19upx;font-size:27upx;font-weight:bold;">请选择:</view>
-				<view style="display:flex;padding:20upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
-					<view v-for="(item, index) in staffData" :key="index" @tap.stop="getCurrentStaff(item)" style="margin-bottom:20upx;margin-left:3upx;">
-						<view style="margin-top:8upx;overflow: hidden;white-space: nowrap;width:120upx;text-align:center;font-weight:bold;font-size:30upx;">{{item.name}}</view>
+				<view style="display:flex;padding:20upx;height:auto;justify-content: flex-start;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
+					<view v-for="(item, index) in staffData" :key="index" style="margin-bottom:20upx;margin-left:3upx;">
+						<button
+							class="admin-button-com staff-btn"
+							@click.stop="getCurrentStaff(item)"
+							:class="{'selected': selectStaff.id === item.id}"
+						>
+							{{ item.name }}
+						</button>
 					</view>
 				</view>
 				<view style="text-align:center;padding:10upx 0 10upx 0;"><button class="admin-button-com big blue" @click="cancelCurrentStaff()">取消选择</button></view>
@@ -354,4 +360,26 @@ export default {
 		}
 	}
 }
+.staff-btn {
+	min-width: 120upx;
+	padding: 0 20upx;
+	height: 60upx;
+	font-size: 30upx;
+	font-weight: bold;
+	margin: 8upx 8upx 0 0;
+	border-radius: 12upx;
+	background: #f0f2f6;
+	color: #333;
+	border: 2upx solid #e0e0e0;
+	transition: background 0.2s, color 0.2s;
+	display: flex;
+	align-items: center;
+	justify-content: center;
+}
+.staff-btn.selected,
+.staff-btn:active {
+	background: #409eff;
+	color: #fff;
+	border-color: #409eff;
+}
 </style>