Ver Fonte

就诊人修改

XSLu08042 há 2 semanas atrás
pai
commit
901d5fd4d0

+ 7 - 2
pages_index/components/choosePatient/choosePatient.vue

@@ -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)
 			}
 		}

+ 0 - 2
pages_index/packageForm.vue

@@ -202,7 +202,6 @@
 					  .createSelectorQuery()
 					  .select(".msgs")
 					  .boundingClientRect((res) => {
-						  console.log(res)
 						   if(res) {
 								const scrollH = res.height;
 								that.scrollTop = scrollH;
@@ -226,7 +225,6 @@
 					return;
 				}
 				item.option=option.name;
-				console.log(item.option);
 				this.addMsg(2,option.name);
 				this.index++;
 				if(this.index<=this.items.length-1){