| 
					
				 | 
			
			
				@@ -3,7 +3,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<view class="patient-box"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<view class="patient-head"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<view class="patient-title">选择就诊人</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				<view class="x-f" @click="addPatient()"><uni-icons type="plus" size="36rpx" color="#222"></uni-icons>添加</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				<view class="x-f" @click="addPatient()"><u-icon name="plus-circle" size="36rpx" color="#222"></u-icon>添加</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<scroll-view scroll-x :scroll-into-view="scrollIntoView" :scroll-with-animation="true" class="patient-list" v-if="patientList&&patientList.length>0"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<view :id="'patient_'+i" :class="current == i ? 'patient-item patient-active':'patient-item'" v-for="(item,i) in patientList" :key="item.patientId" @click="handlePatient(item,i)"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -13,7 +13,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						<text class="text" v-if="item.sex==2">女</text> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						<text class="text">{{$getAge(item.birthday)}}岁</text> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					<uni-icons v-show="current == i" class="checkmarkempty" type="checkmarkempty" size="28rpx" color="#fff"></uni-icons> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					<view class="checkmarkempty"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						<u-icon v-show="current == i" name="checkmark" size="28rpx" color="#fff"></u-icon> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</scroll-view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		</view> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -48,6 +50,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								this.current = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							const patient = this.patientList&&this.patientList.length> 0 ? this.patientList[this.current] : null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							this.scrollIntoView = 'patient_'+ this.current 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							uni.$emit('refreshOrderPatient',patient) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						}else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							uni.showToast({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -64,6 +67,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			handlePatient(item,i) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				const patient = this.patientList&&this.patientList.length> 0 ? this.patientList[i] : null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				this.current = i 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				this.scrollIntoView = 'patient_'+ i 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				uni.$emit('refreshOrderPatient',patient) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 |