瀏覽代碼

Ltb2020年11月5日21:12:47

老狐\25396 4 年之前
父節點
當前提交
7a659cf3c0
共有 4 個文件被更改,包括 1042 次插入485 次删除
  1. 0 8
      pages/Scheduling.vue
  2. 524 196
      pages/login/doctorRenzheng.vue
  3. 518 280
      pages/service/more.vue
  4. 0 1
      pages/zixun/zixun.vue

+ 0 - 8
pages/Scheduling.vue

xqd
@@ -279,14 +279,6 @@
 					day: '',
 					time: '' //1早2下3晚
 				},
-				
-				
-				
-				
-				
-				
-				nowTime: new Date(), // 当前时间
-				nowWeek: '星期', //星期几
 			}
 		},
 		methods: {

+ 524 - 196
pages/login/doctorRenzheng.vue

xqd xqd xqd xqd xqd xqd xqd
@@ -1,19 +1,25 @@
 <template>
 	<view style="width: 100%;height: 100%;">
 		<!-- 性别选择器 -->
-		<u-select v-model="sexshow" :list="sexlist" @confirm="sexconfirm" @change='getsex'></u-select>
+		<u-select v-model="sexshow" :list="sexlist" @confirm="sexconfirm"></u-select>
 		<!-- 省 -->
-		<u-select v-model="provinceshow" :list="provincelist" @confirm="provinceconfirm" @click='getpro'></u-select>
+		<u-select v-model="provinceshow" :list="provincelist" @confirm="sheng" value-name="id" label-name="name"></u-select>
+		<u-select v-model="provinceshow2" :list="provincelist2" @confirm="sheng2" value-name="id" label-name="name"></u-select>
 		<!-- 市 -->
-		<u-select v-model="cityshow" :list="citylist" @confirm="cityconfirm"></u-select>
+		<u-select v-model="cityshow" :list="citylist" @confirm="shi" value-name="id" label-name="name"></u-select>
+		<u-select v-model="cityshow2" :list="citylist2" @confirm="shi2" value-name="id" label-name="name"></u-select>
 		<!-- 区县 -->
-		<u-select v-model="areashow" :list="arealist" @confirm="areaconfirm"></u-select>
+		<u-select v-model="areashow" :list="arealist" @confirm="qu" value-name="id" label-name="name"></u-select>
+		<u-select v-model="areashow2" :list="arealist2" @confirm="qu2" value-name="id" label-name="name"></u-select>
 		<!-- 医院 -->
-		<u-select v-model="hospitalshow" :list="hospitallist" @confirm="hospitalconfirm"></u-select>
+		<u-select v-model="hospitalshow" :list="hospitallist" @confirm="yy" value-name="id" label-name="name"></u-select>
+		<u-select v-model="hospitalshow2" :list="hospitallist2" @confirm="yy2" value-name="id" label-name="name"></u-select>
 		<!-- 科室 -->
-		<u-select v-model="departmentshow" :list="departmentlist" @confirm="departmentconfirm"></u-select>
+		<u-select v-model="departmentshow" :list="departmentlist" @confirm="ks" value-name="id" label-name="name"></u-select>
+		<u-select v-model="departmentshow2" :list="departmentlist2" @confirm="ks2" value-name="id" label-name="name"></u-select>
 		<!-- 资质 -->
-		<u-select v-model="qualificationsshow" :list="qualificationslist" @confirm="qualificationsconfirm"></u-select>
+		<u-select v-model="qualificationsshow" :list="qualificationslist" @confirm="zz" value-name="id" label-name="name"></u-select>
+		<u-select v-model="qualificationsshow2" :list="qualificationslist2" @confirm="zz2" value-name="id" label-name="name"></u-select>
 
 
 
@@ -52,78 +58,147 @@
 		</view>
 
 		<u-gap height="30" bg-color="#f0f2f5"></u-gap>
-		<!-- 工作机构 -->
-		<view v-for="item,index in form.work" :key='index'>
-			<view style="padding: 45rpx 28rpx 30rpx 28rpx;background-color: #FFFFFF;">
-				<view style="margin-bottom: 50rpx;font-weight: bold;font-size: 30rpx;">
-					{{item.name}}
+		<!-- 工作机构一 -->
+		<view style="padding: 45rpx 28rpx 30rpx 28rpx;background-color: #FFFFFF;">
+			<view style="margin-bottom: 50rpx;font-weight: bold;font-size: 30rpx;">
+				{{form.work1.name}}
+			</view>
+			<view class="flex">
+				<!--  ****************省份**************** -->
+				<view class="xiala" @click="viewsheng1" style="border-right: 1rpx solid #dddfe1;">
+					<!-- 	图标 -->
+					<view style="margin:0 20rpx;">
+						<u-icon name="arrow-down" color="#dddfe1"></u-icon>
+					</view>
+					<!-- 文字 -->
+					<view style="color:#999999">{{form.work1.province}}</view>
+				</view>
+				<!-- ********************* 城市*************** -->
+				<view class="xiala" @click="viewshi1">
+					<!-- 图标 -->
+					<view style="margin:0 20rpx;">
+						<u-icon name="arrow-down" color="#dddfe1"></u-icon>
+					</view>
+					<!-- 文字 -->
+					<view style="color:#999999">{{form.work1.city}}</view>
+				</view>
+			</view>
+			<u-gap height="40" bg-color="#ffffff"></u-gap>
+			<view class="flex">
+				<!-- **********************区县******************* -->
+				<view class="xiala" @click="viewqu1" style="border-right: 1rpx solid #dddfe1;">
+					<!-- 图标 -->
+					<view style="margin:0 20rpx;">
+						<u-icon name="arrow-down" color="#dddfe1"></u-icon>
+					</view>
+					<!-- 文字 -->
+					<view style="color:#999999">{{form.work1.area}}</view>
+				</view>
+				<!-- **********************医院********************** -->
+				<view class="xiala" @click="viewyy1">
+					<!-- 图标 -->
+					<view style="margin:0 20rpx;">
+						<u-icon name="arrow-down" color="#dddfe1"></u-icon>
+					</view>
+					<!-- 文字 -->
+					<view style="color:#999999">{{form.work1.hospital}}</view>
 				</view>
-				<view class="flex">
-					<!--  ****************省份**************** -->
-					<view class="xiala" @click="provinceshow=true,province=index" style="border-right: 1rpx solid #dddfe1;">
-						<!-- 	图标 -->
-						<view style="margin:0 20rpx;">
-							<u-icon name="arrow-down" color="#dddfe1"></u-icon>
-						</view>
-						<!-- 文字 -->
-						<view style="color:#999999">{{item.province}}</view>
+			</view>
+
+			<view style="margin:50rpx 0;font-weight: bold;font-size: 30rpx;">科室资质</view>
+			<view class="flex">
+				<!-- ********************************科室************************************ -->
+				<view class="xiala" @click="viewks1" style="border-right: 1rpx solid #dddfe1;">
+					<!-- 图标 -->
+					<view style="margin:0 20rpx;">
+						<u-icon name="arrow-down" color="#dddfe1"></u-icon>
+					</view>
+					<!-- 文字 -->
+					<view style="color:#999999">{{form.work1.department}}</view>
+				</view>
+				<!-- ***********************************资质***************** -->
+				<view class="xiala" @click="viewzz1">
+					<!-- 图标 -->
+					<view style="margin:0 20rpx;">
+						<u-icon name="arrow-down" color="#dddfe1"></u-icon>
+					</view>
+					<!-- 文字 -->
+					<view style="color:#999999">{{form.work1.qualifications}}</view>
+				</view>
+			</view>
+		</view>
+		<u-gap height="30" bg-color="#f0f2f5"></u-gap>
+
+		<!-- 工作机构二 -->
+		<view style="padding: 45rpx 28rpx 30rpx 28rpx;background-color: #FFFFFF;">
+			<view style="margin-bottom: 50rpx;font-weight: bold;font-size: 30rpx;">
+				{{form.work2.name}}
+			</view>
+			<view class="flex">
+				<!--  ****************省份**************** -->
+				<view class="xiala" @click="viewsheng2" style="border-right: 1rpx solid #dddfe1;">
+					<!-- 	图标 -->
+					<view style="margin:0 20rpx;">
+						<u-icon name="arrow-down" color="#dddfe1"></u-icon>
 					</view>
-					<!-- ********************* 城市*************** -->
-					<view class="xiala" @click="cityshow=true,city=index">
-						<!-- 图标 -->
-						<view style="margin:0 20rpx;">
-							<u-icon name="arrow-down" color="#dddfe1"></u-icon>
-						</view>
-						<!-- 文字 -->
-						<view style="color:#999999">{{item.city}}</view>
+					<!-- 文字 -->
+					<view style="color:#999999">{{form.work2.province}}</view>
+				</view>
+				<!-- ********************* 城市*************** -->
+				<view class="xiala" @click="viewshi2">
+					<!-- 图标 -->
+					<view style="margin:0 20rpx;">
+						<u-icon name="arrow-down" color="#dddfe1"></u-icon>
 					</view>
+					<!-- 文字 -->
+					<view style="color:#999999">{{form.work2.city}}</view>
 				</view>
-				<u-gap height="40" bg-color="#ffffff"></u-gap>
-				<view class="flex">
-					<!-- **********************区县******************* -->
-					<view class="xiala" @click="areashow=true,area=index" style="border-right: 1rpx solid #dddfe1;">
-						<!-- 图标 -->
-						<view style="margin:0 20rpx;">
-							<u-icon name="arrow-down" color="#dddfe1"></u-icon>
-						</view>
-						<!-- 文字 -->
-						<view style="color:#999999">{{item.area}}</view>
+			</view>
+			<u-gap height="40" bg-color="#ffffff"></u-gap>
+			<view class="flex">
+				<!-- **********************区县******************* -->
+				<view class="xiala" @click="viewqu2" style="border-right: 1rpx solid #dddfe1;">
+					<!-- 图标 -->
+					<view style="margin:0 20rpx;">
+						<u-icon name="arrow-down" color="#dddfe1"></u-icon>
 					</view>
-					<!-- **********************医院********************** -->
-					<view class="xiala" @click="hospitalshow=true,hospital=index">
-						<!-- 图标 -->
-						<view style="margin:0 20rpx;">
-							<u-icon name="arrow-down" color="#dddfe1"></u-icon>
-						</view>
-						<!-- 文字 -->
-						<view style="color:#999999">{{item.hospital}}</view>
+					<!-- 文字 -->
+					<view style="color:#999999">{{form.work2.area}}</view>
+				</view>
+				<!-- **********************医院********************** -->
+				<view class="xiala" @click="viewyy2">
+					<!-- 图标 -->
+					<view style="margin:0 20rpx;">
+						<u-icon name="arrow-down" color="#dddfe1"></u-icon>
 					</view>
+					<!-- 文字 -->
+					<view style="color:#999999">{{form.work2.hospital}}</view>
 				</view>
+			</view>
 
-				<view style="margin:50rpx 0;font-weight: bold;font-size: 30rpx;">科室资质</view>
-				<view class="flex">
-					<!-- ********************************科室************************************ -->
-					<view class="xiala" @click="departmentshow=true,department=index" style="border-right: 1rpx solid #dddfe1;">
-						<!-- 图标 -->
-						<view style="margin:0 20rpx;">
-							<u-icon name="arrow-down" color="#dddfe1"></u-icon>
-						</view>
-						<!-- 文字 -->
-						<view style="color:#999999">{{item.department}}</view>
+			<view style="margin:50rpx 0;font-weight: bold;font-size: 30rpx;">科室资质</view>
+			<view class="flex">
+				<!-- ********************************科室************************************ -->
+				<view class="xiala" @click="viewks2" style="border-right: 1rpx solid #dddfe1;">
+					<!-- 图标 -->
+					<view style="margin:0 20rpx;">
+						<u-icon name="arrow-down" color="#dddfe1"></u-icon>
 					</view>
-					<!-- ***********************************资质***************** -->
-					<view class="xiala" @click="qualificationsshow=true,qualifications=index">
-						<!-- 图标 -->
-						<view style="margin:0 20rpx;">
-							<u-icon name="arrow-down" color="#dddfe1"></u-icon>
-						</view>
-						<!-- 文字 -->
-						<view style="color:#999999">{{item.qualifications}}</view>
+					<!-- 文字 -->
+					<view style="color:#999999">{{form.work2.department}}</view>
+				</view>
+				<!-- ***********************************资质***************** -->
+				<view class="xiala" @click="viewzz2">
+					<!-- 图标 -->
+					<view style="margin:0 20rpx;">
+						<u-icon name="arrow-down" color="#dddfe1"></u-icon>
 					</view>
+					<!-- 文字 -->
+					<view style="color:#999999">{{form.work2.qualifications}}</view>
 				</view>
 			</view>
-			<u-gap height="30" bg-color="#f0f2f5"></u-gap>
 		</view>
+		<u-gap height="30" bg-color="#f0f2f5"></u-gap>
 		<!-- 照片上传 -->
 		<view style="border-bottom: 0.5rpx solid #EFEFEF;padding: 10rpx 25rpx;">
 			<view style="margin-bottom: 30rpx;">
@@ -167,15 +242,11 @@
 
 <script>
 	export default {
-		components: {
-
-		},
+		components: {},
 		onLoad() {
-
-		},
-		mounted() {
-
+			this.provinceconfirm()
 		},
+		mounted() {},
 		data() {
 			return {
 				//保存选择的列数
@@ -189,7 +260,7 @@
 					name: '', //姓名
 					sex: '', //性别
 					ID: '', //身份证
-					work: [{ //工作机构
+					work1: { //工作机构
 						name: '工作机构一',
 						province: '选择省份', //省
 						city: '选择城市', //市
@@ -197,7 +268,8 @@
 						hospital: '选择医院', //医院
 						department: '科室名称', //科室
 						qualifications: '默认资质' //资质
-					}, {
+					},
+					work2: {
 						name: '工作机构二',
 						province: '选择省份', //省
 						city: '选择城市', //市
@@ -205,8 +277,8 @@
 						hospital: '选择医院', //医院
 						department: '科室名称', //科室
 						qualifications: '默认资质' //资质
-					}],
-					fromwork:[], // 向后台传的科室和资质
+					},
+					fromwork: [], // 向后台传的科室和资质
 					certificate: [], //证书
 					idPhoto: [], //身份证
 					doctorQualification: [] //医生资格
@@ -224,167 +296,423 @@
 				],
 				//省
 				provinceshow: false,
-				provincelist: [{
-						value: '1',
-						label: '广东省'
-					},
-					{
-						value: '2',
-						label: '广西省'
-					}
-				],
+				provinceshow2: false,
+				provincelist: [],
+				provincelist2: [],
 				//市
 				cityshow: false,
-				citylist: [{
-						value: '1',
-						label: '广州'
-					},
-					{
-						value: '2',
-						label: '深圳'
-					}
-				],
+				cityshow2: false,
+				citylist: [],
+				citylist2: [],
 				//区
 				areashow: false,
-				arealist: [{
-						value: '1',
-						label: '罗湖区'
-					},
-					{
-						value: '2',
-						label: '高要区'
-					}
-				],
+				areashow2: false,
+				arealist: [],
+				arealist2: [],
 				//医院
 				hospitalshow: false,
-				hospitallist: [{
-						value: '1',
-						label: '****医院'
-					},
-					{
-						value: '2',
-						label: '***医院'
-					}
-				],
+				hospitalshow2: false,
+				hospitallist: [],
+				hospitallist2: [],
 				//科室
 				departmentshow: false,
-				departmentlist: [{
-						value: '1',
-						label: '外科'
-					},
-					{
-						value: '2',
-						label: '内科'
-					}
-				],
+				departmentshow2: false,
+				departmentlist: [],
+				departmentlist2: [],
 				//资质
 				qualificationsshow: false,
-				qualificationslist: [{
-						value: '1',
-						label: '高'
-					},
-					{
-						value: '2',
-						label: '低'
-					}
-				],
+				qualificationsshow2: false,
+				qualificationslist: [],
+				qualificationslist2: [],
+				/**已经选择的id***/
+				id1: {
+					sheng: '',
+					shi: '',
+					qu: ''
+				},
+				id2: {
+					sheng: '',
+					shi: '',
+					qu: ''
+				},
+				//提交的数据
+				work: [{ //工作机构
+					id: '',
+					depart: '', //科室id
+					qualifications: '', //资质id
+
+				}, {
+					id: '',
+					depart: '', //科室id
+					qualifications: '', //资质id
+				}],
+
 			}
 		},
 		methods: {
+			// <!-- 性别选择器 -->
+			// <u-select v-model="sexshow" :list="sexlist" @confirm="sexconfirm"></u-select>
+			// <!-- 省 -->
+			// <u-select v-model="provinceshow" :list="provincelist" @confirm="sheng" value-name="id" label-name="name"></u-select>
+			// <u-select v-model="provinceshow2" :list="provincelist2" @confirm="sheng2" value-name="id" label-name="name"></u-select>
+			// <!-- 市 -->
+			// <u-select v-model="cityshow" :list="citylist" @confirm="shi" value-name="id" label-name="name"></u-select>
+			// <u-select v-model="cityshow2" :list="citylist2" @confirm="shi2" value-name="id" label-name="name"></u-select>
+			// <!-- 区县 -->
+			// <u-select v-model="areashow" :list="arealist" @confirm="qu" value-name="id" label-name="name"></u-select>
+			// <u-select v-model="areashow2" :list="arealist2" @confirm="qu2" value-name="id" label-name="name"></u-select>
+			// <!-- 医院 -->
+			// <u-select v-model="hospitalshow" :list="hospitallist" @confirm="yy" value-name="id" label-name="name"></u-select>
+			// <u-select v-model="hospitalshow2" :list="hospitallist2" @confirm="yy2" value-name="id" label-name="name"></u-select>
+			// <!-- 科室 -->
+			// <u-select v-model="departmentshow" :list="departmentlist" @confirm="ks" value-name="id" label-name="name"></u-select>
+			// <u-select v-model="departmentshow2" :list="departmentlist2" @confirm="ks2" value-name="id" label-name="name"></u-select>
+			// <!-- 资质 -->
+			// <u-select v-model="qualificationsshow" :list="qualificationslist" @confirm="zz" value-name="id"
+			//  label-name="name"></u-select>
+			// <u-select v-model="qualificationsshow2" :list="qualificationslist2" @confirm="zz2" value-name="id" label-name="name"></u-select>
+			/*****************view点击**********************/
+			//省
+			viewsheng1(e) {
+				this.provinceshow = true, this.province = 1
+			},
+			viewsheng2(e) {
+				this.provinceshow2 = true, this.province = 2
+			},
+			//市   判断是否选择了省,不然不让选择
+			viewshi1(e) {
+				if (this.form.work1.province == '选择省份') {
+					uni.showToast({
+						title: '请选择省份',
+						icon: 'none'
+					})
+				} else {
+					this.cityshow = true
+					this.city = 1
+				}
+			},
+			viewshi2(e) {
+				if (this.form.work2.province == '选择省份') {
+					uni.showToast({
+						title: '请选择省份',
+						icon: 'none'
+					})
+				} else {
+					this.cityshow2 = true
+					this.city = 2
+				}
+			},
+			//区
+			viewqu1(e) {
+				if (this.form.work1.city == '选择城市') {
+					uni.showToast({
+						title: '请选择城市',
+						icon: 'none'
+					})
+				} else {
+					this.areashow = true
+					this.area = 1
+				}
+			},
+			viewqu2(e) {
+				if (this.form.work2.city == '选择城市') {
+					uni.showToast({
+						title: '请选择城市',
+						icon: 'none'
+					})
+				} else {
+					this.areashow2 = true
+					this.area = 2
+				}
+			},
+			//医院
+			viewyy1(e) {
+				if (this.form.work1.area == '选择县区') {
+					uni.showToast({
+						title: '请选择县区',
+						icon: 'none'
+					})
+				} else {
+					this.hospitalshow = true
+					this.hospital = 1
+				}
+			},
+			viewyy2(e) {
+				if (this.form.work2.area == '选择县区') {
+					uni.showToast({
+						title: '请选择县区',
+						icon: 'none'
+					})
+				} else {
+					this.hospitalshow2 = true
+					this.hospital = 2
+				}
+			},
+			//科室
+			viewks1(e) {
+				if (this.form.work1.hospital == '选择医院') {
+					uni.showToast({
+						title: '请选择医院',
+						icon: 'none'
+					})
+				} else {
+					this.departmentshow = true
+					this.department = 1
+				}
+			},
+			viewks2(e) {
+				if (this.form.work1.hospital == '选择医院') {
+					uni.showToast({
+						title: '请选择医院',
+						icon: 'none'
+					})
+				} else {
+					this.departmentshow2 = true
+					this.department = 2
+				}
+			},
+			//资质
+			viewzz1(e) {
+				if (this.form.work1.department == '科室名称') {
+					uni.showToast({
+						title: '请选择科室',
+						icon: 'none'
+					})
+				} else {
+					this.qualificationsshow = true
+					this.qualifications = 1
+				}
+			},
+			viewzz2(e) {
+				if (this.form.work2.department == '科室名称') {
+					uni.showToast({
+						title: '请选择科室',
+						icon: 'none'
+					})
+				} else {
+					this.qualificationsshow2 = true
+					this.qualifications = 2
+				}
+			},
+			/************************/
 			// 性别
 			sexconfirm(e) {
 				console.log(e);
 				this.form.sex = e[0].label
 				console.log(this.form.sex);
 			},
+			/********************选择器点击事件******************************/
+			//省选择器
+			sheng(e) {
+				console.log('打开了省选择器1')
+				this.form.work1.province = e[0].label
+				this.cityconfirm(e[0].value)
+				this.id1.sheng = e[0].value //把id存到这里
+			},
+			sheng2(e) {
+				console.log('打开了省选择器2')
+				this.form.work2.province = e[0].label
+				this.cityconfirm(e[0].value)
+				this.id2.sheng = e[0].value
+			},
+			//市选择器
+			shi(e) {
+				console.log('打开了市选择器1')
+				this.form.work1.city = e[0].label
+				this.areaconfirm(e[0].value)
+				this.id1.shi = e[0].value
+
+			},
+			shi2(e) {
+				console.log('打开了市选择器2')
+				this.form.work2.city = e[0].label
+				this.areaconfirm(e[0].value)
+				this.id2.shi = e[0].value
+			},
+			//区选择器
+			qu(e) {
+				console.log('打开了区选择器')
+				this.form.work1.area = e[0].label
+				this.id1.qu = e[0].value
+				this.hospitalconfirm(this.id1.sheng, this.id1.shi, this.id1.qu)
+			},
+			qu2(e) {
+				console.log('打开了区选择器2')
+				this.form.work2.area = e[0].label
+				this.id2.qu = e[0].value
+				this.hospitalconfirm(this.id2.sheng, this.id2.shi, this.id2.qu)
+
+			},
+			//医院选择器
+			yy(e) {
+				console.log('打开了医院选择器1')
+				this.form.work1.hospital = e[0].label
+				this.work[0].id = e[0].value
+				this.departmentconfirm()
+			},
+			yy2(e) {
+				console.log('打开了医院选择器2')
+				this.form.work2.hospital = e[0].label
+				this.work[1].id = e[0].value
+				this.departmentconfirm()
+			},
+			//科室
+			ks(e) {
+				console.log('打开了科室选择器1')
+				this.form.work1.department = e[0].label
+				this.work[0].depart = e[0].value
+				this.qualificationsconfirm()
+			},
+			ks2(e) {
+				console.log('打开了科室选择器2')
+				this.form.work2.department = e[0].label
+				this.work[1].depart = e[0].value
+				this.qualificationsconfirm()
+			},
+			//资质
+			zz(e) {
+				console.log('打开了资质选择器1')
+				this.form.work1.qualifications = e[0].label
+				this.work[0].qualifications = e[0].value
+			},
+			zz2(e) {
+				console.log('打开了资质选择器2')
+				this.form.work2.qualifications = e[0].label
+				this.work[1].qualifications = e[0].value
+			},
+			/*******************接口*********************/
 			//省
-			provinceconfirm:async function() {
+			provinceconfirm: async function() {
 				// 点击请求接口
-				let res = await this.$request.post('doctor/getCityList',{'type':1});
-				console.log('省份',res)
-				this.form.work[this.province].province = e[0].label
+				let res = await this.$request.post('doctor/getCityList', {
+					'type': 1
+				});
+				console.log('省', res.data)
+				this.provincelist = this.provincelist2 = res.data
 			},
 			//市
-			cityconfirm:async function(e) {
+			cityconfirm: async function(e) {
 				// parent_id为省份返回的id
-				let res = await this.$request.post('doctor/getCityList',{'type':2,'parent_id':3});
-				this.form.work[this.city].city = e[0].label
+				let res = await this.$request.post('doctor/getCityList', {
+					'type': 2,
+					'parent_id': e
+				});
+				console.log('市', res.data)
+				if (this.province == 1) {
+					this.citylist = res.data
+				} else if (this.province == 2) {
+					this.citylist2 = res.data
+				}
 			},
 			//区
-			areaconfirm:async function(e) {
+			areaconfirm: async function(e) {
 				// parent_id为市返回的id
-				let res = await this.$request.post('doctor/getCityList',{'type':3,'parent_id':67});
-				this.form.work[this.area].area = e[0].label
+				let res = await this.$request.post('doctor/getCityList', {
+					'type': 3,
+					'parent_id': e
+				});
+				console.log('区', res.data)
+				if (this.city == 1) {
+					this.arealist = res.data
+				} else if (this.city == 2) {
+					this.arealist2 = res.data
+				}
 			},
 			//医院
-			hospitalconfirm:async function(e) {
+			hospitalconfirm: async function(p, c, a) {
+				console.log(p, c, a)
 				//organizations_ids为省市区返回的id字符串,顺序为,省id,市id,区id
-				let res = await this.$request.post('doctor/get_city_id',{'level_type':4,'organizations_ids':'3,67,553'});
-				this.form.work[this.hospital].hospital = e[0].label
+				let res = await this.$request.post('doctor/get_city_id', {
+					'level_type': 4,
+					"province": p,
+					"city": c,
+					"area": a,
+				});
+				console.log('提交的数据', p)
+				console.log('提交的数据', c)
+				console.log('提交的数据', a)
+				console.log('医院', res.data)
+				if (this.area == 1) {
+					this.hospitallist = res.data
+				} else if (this.area == 2) {
+					this.hospitallist2 = res.data
+				}
 			},
 			//科室
-			departmentconfirm:async function(e) {
-				let res = await this.$request.post('doctor/getOfferList',{'type':1});
-				
-				this.form.work[this.department].department = e[0].label
+			departmentconfirm: async function(e) {
+				let res = await this.$request.post('doctor/getOfferList', {
+					'type': 1
+				});
+				if (this.hospital == 1) {
+					this.departmentlist = res.data
+					console.log('科室列表', this.departmentlist)
+				} else if (this.hospital == 2) {
+					this.departmentlist2 = res.data
+				}
 			},
 			//资质
-			qualificationsconfirm:async function(e) {
-				let res = await this.$request.post('doctor/getOfferList',{'type':2});
-				this.form.work[this.qualifications].qualifications = e[0].label
+			qualificationsconfirm: async function(e) {
+				let res = await this.$request.post('doctor/getOfferList', {
+					'type': 2
+				});
+				if (this.department == 1) {
+					this.qualificationslist = res.data
+					console.log('资质列表', this.qualificationslist)
+				} else if (this.department == 2) {
+					this.qualificationslist2 = res.data
+				}
 			},
 			// 保存
-			bc:async function() {
+			bc: async function() {
 				// 提交需要参数
-			 let froms = {
-						doctor_name: '', //姓名
-						doctor_sex: 1, //性别,1男,2女
-						doctor_card: '', //身份证
-						work: [{ //工作机构
-							id: '医院的id',
-							depart: '科室id', //科室id
-							qualifications: '资质id', //资质id
-						
-						}, {
-							id: '医院的id',
-							depart: '科室id', //科室id
-							qualifications: '资质id', //资质id
-						}],
-						practice: [], // 医师执业证书(清晰照片和信息页面) 必须两个都传,不可以只上传一个
-						card_photo: [], //身份证 , 必须两个都传,不可以只上传一个
-						is_quail: [] //医生资格, 必须两个都传,不可以只上传一个
+				let froms = {
+					doctor_name: '', //姓名
+					doctor_sex: 1, //性别,1男,2女
+					doctor_card: '', //身份证
+					work: [{ //工作机构
+						id: '医院的id',
+						depart: '科室id', //省
+						qualifications: '资质id', //市
+
+					}, {
+						id: '医院的id',
+						depart: '科室id', //省
+						qualifications: '资质id', //市
+					}],
+					practice: [], // 医师执业证书(清晰照片和信息页面) 必须两个都传,不可以只上传一个
+					card_photo: [], //身份证 , 必须两个都传,不可以只上传一个
+					is_quail: [] //医生资格, 必须两个都传,不可以只上传一个
 				}
 				// 注意要 {'doctor_name':'ddd',doctor_sex:1....}分开传值因为我方便拦截垃圾数据
-				let res = await this.$request.post('doctor/addthen',froms);
-				
+				let res = await this.$request.post('doctor/addthen', froms);
 				uni.switchTab({
-					url:'../index/index'
+					url: '../index/index'
 				})
 			},
-		ChooseImage() {
-			let that=this;
-		    uni.chooseImage({
-		     count: 1, //默认9
-		     sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有
-		     sourceType: ['album', 'camera'], //从相册选择
-		     success: (res) => {
-				 let tempFilePaths = res.tempFilePaths;		
-				  // 图片上传案例
-					const uploadTask = wx.uploadFile({
-						 url: 'http://182.92.112.142/api/v2/Common/uploadFile',
-						 filePath: tempFilePaths[0],
-						 name: 'file',
-						 success: function (uploadFileRes) { 
-							 let arr=[];
-							 arr.push(imglocal+JSON.parse(uploadFileRes.data).data.url);
-							 that.imgList = arr
-							 that.src = JSON.parse(uploadFileRes.data).data.url
-						 }
-					})
-		 
-		     }
-		    });
-		   },
+			ChooseImage() {
+				let that = this;
+				uni.chooseImage({
+					count: 1, //默认9
+					sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有
+					sourceType: ['album', 'camera'], //从相册选择
+					success: (res) => {
+						let tempFilePaths = res.tempFilePaths;
+						// 图片上传案例
+						const uploadTask = wx.uploadFile({
+							url: 'http://182.92.112.142/api/v2/Common/uploadFile',
+							filePath: tempFilePaths[0],
+							name: 'file',
+							success: function(uploadFileRes) {
+								let arr = [];
+								arr.push(imglocal + JSON.parse(uploadFileRes.data).data.url);
+								that.imgList = arr
+								that.src = JSON.parse(uploadFileRes.data).data.url
+							}
+						})
+
+					}
+				});
+			},
 		}
 	};
 </script>

+ 518 - 280
pages/service/more.vue

xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd
@@ -43,16 +43,15 @@
 					<view v-if="dhcurrent == 0">
 						<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
 							<!-- 全选复选框 -->
-							<u-checkbox-group @change="" v-for="(aitem, aindex) in all1" :key="aindex" class="flex">
+							<u-checkbox-group @change="change(1)" v-for="(aitem, aindex) in all1" :key="aindex" class="flex">
 								<!-- 全选按钮 -->
-								<u-checkbox @change="allbut1" v-model="aitem.checked" v-if="dhcurrent == aitem.id" shape="circle" size="40">
-								</u-checkbox>
+								<u-checkbox v-model="aitem.checked" shape="circle" size="40"></u-checkbox>
 							</u-checkbox-group>
 							<view style="width: 80%;">全选</view>
 						</view>
 
 						<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
-							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList1" :key="index">
+							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in dh.timeList1" :key="index">
 								<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
 									<view style="display: flex;align-items: center;">
 										<!-- 按钮 -->
@@ -68,16 +67,15 @@
 					<view v-else-if="dhcurrent == 1">
 						<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
 							<!-- 全选复选框 -->
-							<u-checkbox-group @change="" v-for="(aitem, aindex) in all2" :key="aindex" class="flex">
+							<u-checkbox-group @change="change(2)" v-for="(aitem, aindex) in all2" :key="aindex" class="flex">
 								<!-- 全选按钮 -->
-								<u-checkbox @change="allbut2" v-model="aitem.checked" v-if="dhcurrent == aitem.id" shape="circle" size="40">
-								</u-checkbox>
+								<u-checkbox v-model="aitem.checked" shape="circle" size="40"></u-checkbox>
 							</u-checkbox-group>
 							<view style="width: 80%;">全选</view>
 						</view>
 						<!-- 剩下的复选框 -->
 						<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
-							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList2" :key="index">
+							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in dh.timeList2" :key="index">
 								<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
 									<view style="display: flex;align-items: center;">
 										<!-- 按钮 -->
@@ -94,16 +92,15 @@
 					<view v-else-if="dhcurrent == 2">
 						<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
 							<!-- 全选复选框 -->
-							<u-checkbox-group @change="" v-for="(aitem, aindex) in all3" :key="aindex" class="flex">
+							<u-checkbox-group @change="change(3)" v-for="(aitem, aindex) in all3" :key="aindex" class="flex">
 								<!-- 全选按钮 -->
-								<u-checkbox @change="allbut3" v-model="aitem.checked" v-if="dhcurrent == aitem.id" shape="circle" size="40">
-								</u-checkbox>
+								<u-checkbox v-model="aitem.checked" shape="circle" size="40"></u-checkbox>
 							</u-checkbox-group>
 							<view style="width: 80%;">全选</view>
 						</view>
 
 						<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
-							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList3" :key="index">
+							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in dh.timeList3" :key="index">
 								<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
 									<view style="display: flex;align-items: center;">
 										<!-- 按钮 -->
@@ -133,7 +130,7 @@
 		</view>
 
 		<u-gap height="20" bg-color="#f3f3f3"></u-gap>
-		
+
 		<!-- 图文咨询 -->
 		<view class="v">
 			<!-- 标题 -->
@@ -164,14 +161,13 @@
 					<view v-if="twcurrent == 0">
 						<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
 							<!-- 全选复选框 -->
-							<u-checkbox-group @change="" v-for="(aitem, aindex) in all1" :key="aindex" class="flex">
+							<u-checkbox-group @change="change(4)" v-for="(aitem, aindex) in all4" :key="aindex" class="flex">
 								<!-- 全选按钮 -->
-								<u-checkbox @change="allbut1" v-model="aitem.checked" v-if="twcurrent == aitem.id" shape="circle" size="40">
-								</u-checkbox>
+								<u-checkbox v-model="aitem.checked" shape="circle" size="40"></u-checkbox>
 							</u-checkbox-group>
 							<view style="width: 80%;">全选</view>
 						</view>
-		
+
 						<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
 							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList1" :key="index">
 								<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
@@ -189,10 +185,9 @@
 					<view v-else-if="twcurrent == 1">
 						<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
 							<!-- 全选复选框 -->
-							<u-checkbox-group @change="" v-for="(aitem, aindex) in all2" :key="aindex" class="flex">
+							<u-checkbox-group @change="change(5)" v-for="(aitem, aindex) in all5" :key="aindex" class="flex">
 								<!-- 全选按钮 -->
-								<u-checkbox @change="allbut2" v-model="aitem.checked" v-if="twcurrent == aitem.id" shape="circle" size="40">
-								</u-checkbox>
+								<u-checkbox v-model="aitem.checked" shape="circle" size="40"></u-checkbox>
 							</u-checkbox-group>
 							<view style="width: 80%;">全选</view>
 						</view>
@@ -215,14 +210,13 @@
 					<view v-else-if="twcurrent == 2">
 						<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
 							<!-- 全选复选框 -->
-							<u-checkbox-group @change="" v-for="(aitem, aindex) in all3" :key="aindex" class="flex">
+							<u-checkbox-group @change="change(6)" v-for="(aitem, aindex) in all6" :key="aindex" class="flex">
 								<!-- 全选按钮 -->
-								<u-checkbox @change="allbut3" v-model="aitem.checked" v-if="twcurrent == aitem.id" shape="circle" size="40">
-								</u-checkbox>
+								<u-checkbox v-model="aitem.checked" shape="circle" size="40"></u-checkbox>
 							</u-checkbox-group>
 							<view style="width: 80%;">全选</view>
 						</view>
-		
+
 						<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
 							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList3" :key="index">
 								<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
@@ -252,9 +246,9 @@
 				</view>
 			</view>
 		</view>
-		
+
 		<u-gap height="20" bg-color="#f3f3f3"></u-gap>
-		
+
 		<!-- 门诊预约 -->
 		<view class="v">
 			<!-- 标题 -->
@@ -282,175 +276,169 @@
 				</view>
 				<!-- 当医院更换时 -->
 				<view v-if="hospitalcurrent == 0">
-				<!-- 分段器 -->
-				<view>
-					<u-subsection :list="list" :current="mzcurrent" @change="mzchange"></u-subsection>
-				</view>
-				<view style="margin-top: 30rpx;width: 100%;">
-					<!--================================重要分割线 选择0点到八点 mzcurrent=0 =============================-->
-					<view v-if="mzcurrent == 0">
-						<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
-							<!-- 全选复选框 -->
-							<u-checkbox-group @change="" v-for="(aitem, aindex) in all1" :key="aindex" class="flex">
-								<!-- 全选按钮 -->
-								<u-checkbox @change="allbut1" v-model="aitem.checked" v-if="mzcurrent == aitem.id" shape="circle" size="40">
-								</u-checkbox>
-							</u-checkbox-group>
-							<view style="width: 80%;">全选</view>
-						</view>
-		
-						<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
-							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList1" :key="index">
-								<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
-									<view style="display: flex;align-items: center;">
-										<!-- 按钮 -->
-										<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
-										</u-checkbox>
-										<text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
-									</view>
+					<!-- 分段器 -->
+					<view>
+						<u-subsection :list="list" :current="mzcurrent" @change="mzchange1"></u-subsection>
+					</view>
+					<view style="margin-top: 30rpx;width: 100%;">
+						<!--================================重要分割线 选择0点到八点 mzcurrent=0 =============================-->
+						<view v-if="mzcurrent1 == 0">
+							<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
+								<!-- 全选复选框 -->
+								<u-checkbox-group @change="change(7)" v-for="(aitem, aindex) in all7" :key="aindex" class="flex">
+									<!-- 全选按钮 -->
+									<u-checkbox v-model="aitem.checked" shape="circle" size="40"></u-checkbox>
 								</u-checkbox-group>
+								<view style="width: 80%;">全选</view>
+							</view>
+
+							<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
+								<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList1" :key="index">
+									<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
+										<view style="display: flex;align-items: center;">
+											<!-- 按钮 -->
+											<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
+											</u-checkbox>
+											<text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
+										</view>
+									</u-checkbox-group>
+								</view>
 							</view>
 						</view>
-					</view>
-					<!--================================重要分割线 选择8点到16点 mzcurrent=2 =============================-->
-					<view v-else-if="mzcurrent == 1">
-						<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
-							<!-- 全选复选框 -->
-							<u-checkbox-group @change="" v-for="(aitem, aindex) in all2" :key="aindex" class="flex">
-								<!-- 全选按钮 -->
-								<u-checkbox @change="allbut2" v-model="aitem.checked" v-if="mzcurrent == aitem.id" shape="circle" size="40">
-								</u-checkbox>
-							</u-checkbox-group>
-							<view style="width: 80%;">全选</view>
-						</view>
-						<!-- 剩下的复选框 -->
-						<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
-							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList2" :key="index">
-								<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
-									<view style="display: flex;align-items: center;">
-										<!-- 按钮 -->
-										<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
-										</u-checkbox>
-										<!-- 字体 -->
-										<text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
-									</view>
+						<!--================================重要分割线 选择8点到16点 mzcurrent=2 =============================-->
+						<view v-else-if="mzcurrent1 == 1">
+							<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
+								<!-- 全选复选框 -->
+								<u-checkbox-group @change="change(8)" v-for="(aitem, aindex) in all8" :key="aindex" class="flex">
+									<!-- 全选按钮 -->
+									<u-checkbox v-model="aitem.checked" shape="circle" size="40"></u-checkbox>
 								</u-checkbox-group>
+								<view style="width: 80%;">全选</view>
+							</view>
+							<!-- 剩下的复选框 -->
+							<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
+								<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList2" :key="index">
+									<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
+										<view style="display: flex;align-items: center;">
+											<!-- 按钮 -->
+											<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
+											</u-checkbox>
+											<!-- 字体 -->
+											<text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
+										</view>
+									</u-checkbox-group>
+								</view>
 							</view>
 						</view>
-					</view>
-					<!--================================重要分割线 选择16点到24点 mzcurrent=2 =============================-->
-					<view v-else-if="mzcurrent == 2">
-						<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
-							<!-- 全选复选框 -->
-							<u-checkbox-group @change="" v-for="(aitem, aindex) in all3" :key="aindex" class="flex">
-								<!-- 全选按钮 -->
-								<u-checkbox @change="allbut3" v-model="aitem.checked" v-if="mzcurrent == aitem.id" shape="circle" size="40">
-								</u-checkbox>
-							</u-checkbox-group>
-							<view style="width: 80%;">全选</view>
-						</view>
-		
-						<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
-							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList3" :key="index">
-								<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
-									<view style="display: flex;align-items: center;">
-										<!-- 按钮 -->
-										<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
-										</u-checkbox>
-										<text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
-									</view>
+						<!--================================重要分割线 选择16点到24点 mzcurrent=2 =============================-->
+						<view v-else-if="mzcurrent1 == 2">
+							<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
+								<!-- 全选复选框 -->
+								<u-checkbox-group @change="change(9)" v-for="(aitem, aindex) in all9" :key="aindex" class="flex">
+									<!-- 全选按钮 -->
+									<u-checkbox v-model="aitem.checked" shape="circle" size="40"></u-checkbox>
 								</u-checkbox-group>
+								<view style="width: 80%;">全选</view>
+							</view>
+
+							<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
+								<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList3" :key="index">
+									<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
+										<view style="display: flex;align-items: center;">
+											<!-- 按钮 -->
+											<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
+											</u-checkbox>
+											<text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
+										</view>
+									</u-checkbox-group>
+								</view>
 							</view>
 						</view>
+						<!-- 结束 -->
 					</view>
-					<!-- 结束 -->
-				</view>
 				</view>
 				<!-- 当医院更换时 -->
 				<view v-if="hospitalcurrent == 1">
-				<!-- 分段器 -->
-				<view>
-					<u-subsection :list="list" :current="mzcurrent" @change="dhchange"></u-subsection>
-				</view>
-				<view style="margin-top: 30rpx;width: 100%;">
-					<!--================================重要分割线 选择0点到八点 mzcurrent=0 =============================-->
-					<view v-if="mzcurrent == 0">
-						<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
-							<!-- 全选复选框 -->
-							<u-checkbox-group @change="" v-for="(aitem, aindex) in all1" :key="aindex" class="flex">
-								<!-- 全选按钮 -->
-								<u-checkbox @change="allbut1" v-model="aitem.checked" v-if="mzcurrent == aitem.id" shape="circle" size="40">
-								</u-checkbox>
-							</u-checkbox-group>
-							<view style="width: 80%;">全选</view>
-						</view>
-						
-						<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
-							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList1" :key="index">
-								<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
-									<view style="display: flex;align-items: center;">
-										<!-- 按钮 -->
-										<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
-										</u-checkbox>
-										<text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
-									</view>
+					<!-- 分段器 -->
+					<view>
+						<u-subsection :list="list" :current="mzcurrent" @change="mzchange2"></u-subsection>
+					</view>
+					<view style="margin-top: 30rpx;width: 100%;">
+						<!--================================重要分割线 选择0点到八点 mzcurrent=0 =============================-->
+						<view v-if="mzcurrent2 == 0">
+							<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
+								<!-- 全选复选框 -->
+								<u-checkbox-group @change="changeA(10)" v-for="(aitem, aindex) in all10" :key="aindex" class="flex">
+									<!-- 全选按钮 -->
+									<u-checkbox v-model="aitem.checked" shape="circle" size="40"></u-checkbox>
 								</u-checkbox-group>
+								<view style="width: 80%;">全选</view>
+							</view>
+
+							<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
+								<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList1" :key="index">
+									<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
+										<view style="display: flex;align-items: center;">
+											<!-- 按钮 -->
+											<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
+											</u-checkbox>
+											<text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
+										</view>
+									</u-checkbox-group>
+								</view>
 							</view>
 						</view>
-					</view>
-					<!--================================重要分割线 选择8点到16点 mzcurrent=2 =============================-->
-					<view v-else-if="mzcurrent == 1">
-						<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
-							<!-- 全选复选框 -->
-							<u-checkbox-group @change="" v-for="(aitem, aindex) in all2" :key="aindex" class="flex">
-								<!-- 全选按钮 -->
-								<u-checkbox @change="allbut2" v-model="aitem.checked" v-if="mzcurrent == aitem.id" shape="circle" size="40">
-								</u-checkbox>
-							</u-checkbox-group>
-							<view style="width: 80%;">全选</view>
-						</view>
-						<!-- 剩下的复选框 -->
-						<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
-							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList2" :key="index">
-								<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
-									<view style="display: flex;align-items: center;">
-										<!-- 按钮 -->
-										<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
-										</u-checkbox>
-										<!-- 字体 -->
-										<text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
-									</view>
+						<!--================================重要分割线 选择8点到16点 mzcurrent=2 =============================-->
+						<view v-else-if="mzcurrent2 == 1">
+							<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
+								<!-- 全选复选框 -->
+								<u-checkbox-group @change="change(11)" v-for="(aitem, aindex) in all11" :key="aindex" class="flex">
+									<!-- 全选按钮 -->
+									<u-checkbox v-model="aitem.checked" shape="circle" size="40"></u-checkbox>
 								</u-checkbox-group>
+								<view style="width: 80%;">全选</view>
+							</view>
+							<!-- 剩下的复选框 -->
+							<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
+								<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList2" :key="index">
+									<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
+										<view style="display: flex;align-items: center;">
+											<!-- 按钮 -->
+											<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
+											</u-checkbox>
+											<!-- 字体 -->
+											<text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
+										</view>
+									</u-checkbox-group>
+								</view>
 							</view>
 						</view>
-					</view>
-					<!--================================重要分割线 选择16点到24点 mzcurrent=2 =============================-->
-					<view v-else-if="mzcurrent == 2">
-						<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
-							<!-- 全选复选框 -->
-							<u-checkbox-group @change="" v-for="(aitem, aindex) in all3" :key="aindex" class="flex">
-								<!-- 全选按钮 -->
-								<u-checkbox @change="allbut3" v-model="aitem.checked" v-if="mzcurrent == aitem.id" shape="circle" size="40">
-								</u-checkbox>
-							</u-checkbox-group>
-							<view style="width: 80%;">全选</view>
-						</view>
-						
-						<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
-							<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList3" :key="index">
-								<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
-									<view style="display: flex;align-items: center;">
-										<!-- 按钮 -->
-										<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
-										</u-checkbox>
-										<text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
-									</view>
+						<!--================================重要分割线 选择16点到24点 mzcurrent=2 =============================-->
+						<view v-else-if="mzcurrent2 == 2">
+							<view class="flex align-center" style="margin-bottom: 20rpx;padding-left: 20rpx;">
+								<!-- 全选复选框 -->
+								<u-checkbox-group @change="change(12)" v-for="(aitem, aindex) in all12" :key="aindex" class="flex">
+									<!-- 全选按钮 -->
+									<u-checkbox v-model="aitem.checked" shape="circle" size="40"></u-checkbox>
 								</u-checkbox-group>
+								<view style="width: 80%;">全选</view>
+							</view>
+
+							<view style="width: 100%;display: flex;  justify-content: space-around;  flex-direction: row;  flex-wrap: wrap;">
+								<view style=" width: 45%; height:60rpx;" class="" v-for="(item, index) in timeList3" :key="index">
+									<u-checkbox-group @change="" style="width: 100%;height: 100%;margin-bottom: 20rpx;">
+										<view style="display: flex;align-items: center;">
+											<!-- 按钮 -->
+											<u-checkbox @change="" v-model="item.checked" shape="circle" size="40">
+											</u-checkbox>
+											<text style="display:flex;width: 50%;font-size: 28rpx;">{{item.name}}</text>
+										</view>
+									</u-checkbox-group>
+								</view>
 							</view>
 						</view>
+						<!-- 结束 -->
 					</view>
-					<!-- 结束 -->
-				</view>
 				</view>
 			</view>
 			<!-- 服务人次 -->
@@ -466,7 +454,7 @@
 				</view>
 			</view>
 		</view>
-		
+
 		<view style="padding: 20rpx 26rpx 200rpx 26rpx;background-color: #f3f3f3;color:#C0C0C0">
 			提示:就诊人信息用于平台审核和医疗业务使用,不会外传。请正却确填写就诊人信息,如需修改身份信息可电话联系客服修改(13330431369)
 		</view>
@@ -484,12 +472,12 @@
 		},
 		data() {
 			return {
-				hospital:[{
-					name:'***医院'
-				},{
-					name:'*****医院'
+				hospital: [{
+					name: '***医院'
+				}, {
+					name: '*****医院'
 				}],
-				hospitalcurrent:0,
+				hospitalcurrent: 0,
 				list: [{
 						name: '00:00-08:00'
 					},
@@ -503,130 +491,372 @@
 				//电话 图文 门诊的分段器
 				dhcurrent: 2,
 				twcurrent: 0,
-				mzcurrent: 0,
-				
-				//第一个时间列表
-				timeList1: [{
-					id: 0,
-					name: '00:00-01:00',
-					checked: false
-				}, {
-					id: 1,
-					name: '01:00-02:00',
-					checked: false
-				}, {
-					id: 2,
-					name: '02:00-03:00',
-					checked: false
-				}, {
-					id: 3,
-					name: '03:00-04:00',
-					checked: false
-				}, {
-					id: 4,
-					name: '04:00-05:00',
-					checked: false
-				}, {
-					id: 5,
-					name: '05:00-06:00',
-					checked: false
-				}, {
-					id: 6,
-					name: '06:00-07:00',
-					checked: false
-				}, {
-					id: 7,
-					name: '07:00-08:00',
+				mzcurrent1: 0,
+				mzcurrent2: 0,
+
+				//电话时间列表
+				dh: {
+					timeList1: [{
+						id: 0,
+						name: '00:00-01:00',
+						checked: false
+					}, {
+						id: 1,
+						name: '01:00-02:00',
+						checked: false
+					}, {
+						id: 2,
+						name: '02:00-03:00',
+						checked: false
+					}, {
+						id: 3,
+						name: '03:00-04:00',
+						checked: false
+					}, {
+						id: 4,
+						name: '04:00-05:00',
+						checked: false
+					}, {
+						id: 5,
+						name: '05:00-06:00',
+						checked: false
+					}, {
+						id: 6,
+						name: '06:00-07:00',
+						checked: false
+					}, {
+						id: 7,
+						name: '07:00-08:00',
+						checked: false
+					}],
+					timeList2: [{
+						id: 8,
+						name: '08:00-09:00',
+						checked: false
+					}, {
+						id: 9,
+						name: '09:00-10:00',
+						checked: false
+					}, {
+						id: 10,
+						name: '10:00-11:00',
+						checked: false
+					}, {
+						id: 11,
+						name: '11:00-12:00',
+						checked: false
+					}, {
+						id: 12,
+						name: '12:00-13:00',
+						checked: false
+					}, {
+						id: 13,
+						name: '13:00-14:00',
+						checked: false
+					}, {
+						id: 14,
+						name: '14:00-15:00',
+						checked: false
+					}, {
+						id: 15,
+						name: '15:00-16:00',
+						checked: false
+					}],
+					timeList3: [{
+						id: 16,
+						name: '16:00-17:00',
+						checked: false
+					}, {
+						id: 1,
+						name: '17:00-18:00',
+						checked: false
+					}, {
+						id: 2,
+						name: '18:00-19:00',
+						checked: false
+					}, {
+						id: 3,
+						name: '19:00-20:00',
+						checked: false
+					}, {
+						id: 4,
+						name: '20:00-21:00',
+						checked: false
+					}, {
+						id: 5,
+						name: '21:00-22:00',
+						checked: false
+					}, {
+						id: 6,
+						name: '22:00-23:00',
+						checked: false
+					}, {
+						id: 7,
+						name: '23:00-00:00',
+						checked: false
+					}],
+				},
+				//图文时间列表
+				tw: {
+					timeList1: [{
+						id: 0,
+						name: '00:00-01:00',
+						checked: false
+					}, {
+						id: 1,
+						name: '01:00-02:00',
+						checked: false
+					}, {
+						id: 2,
+						name: '02:00-03:00',
+						checked: false
+					}, {
+						id: 3,
+						name: '03:00-04:00',
+						checked: false
+					}, {
+						id: 4,
+						name: '04:00-05:00',
+						checked: false
+					}, {
+						id: 5,
+						name: '05:00-06:00',
+						checked: false
+					}, {
+						id: 6,
+						name: '06:00-07:00',
+						checked: false
+					}, {
+						id: 7,
+						name: '07:00-08:00',
+						checked: false
+					}],
+					timeList2: [{
+						id: 8,
+						name: '08:00-09:00',
+						checked: false
+					}, {
+						id: 9,
+						name: '09:00-10:00',
+						checked: false
+					}, {
+						id: 10,
+						name: '10:00-11:00',
+						checked: false
+					}, {
+						id: 11,
+						name: '11:00-12:00',
+						checked: false
+					}, {
+						id: 12,
+						name: '12:00-13:00',
+						checked: false
+					}, {
+						id: 13,
+						name: '13:00-14:00',
+						checked: false
+					}, {
+						id: 14,
+						name: '14:00-15:00',
+						checked: false
+					}, {
+						id: 15,
+						name: '15:00-16:00',
+						checked: false
+					}],
+					timeList3: [{
+						id: 16,
+						name: '16:00-17:00',
+						checked: false
+					}, {
+						id: 17,
+						name: '17:00-18:00',
+						checked: false
+					}, {
+						id: 18,
+						name: '18:00-19:00',
+						checked: false
+					}, {
+						id: 19,
+						name: '19:00-20:00',
+						checked: false
+					}, {
+						id: 20,
+						name: '20:00-21:00',
+						checked: false
+					}, {
+						id: 21,
+						name: '21:00-22:00',
+						checked: false
+					}, {
+						id: 22,
+						name: '22:00-23:00',
+						checked: false
+					}, {
+						id: 23,
+						name: '23:00-00:00',
+						checked: false
+					}],
+				},
+				//门诊时间列表
+				mz: {
+					timeList1: [{
+						id: 0,
+						name: '00:00-01:00',
+						checked: false
+					}, {
+						id: 1,
+						name: '01:00-02:00',
+						checked: false
+					}, {
+						id: 2,
+						name: '02:00-03:00',
+						checked: false
+					}, {
+						id: 3,
+						name: '03:00-04:00',
+						checked: false
+					}, {
+						id: 4,
+						name: '04:00-05:00',
+						checked: false
+					}, {
+						id: 5,
+						name: '05:00-06:00',
+						checked: false
+					}, {
+						id: 6,
+						name: '06:00-07:00',
+						checked: false
+					}, {
+						id: 7,
+						name: '07:00-08:00',
+						checked: false
+					}],
+					timeList2: [{
+						id: 8,
+						name: '08:00-09:00',
+						checked: false
+					}, {
+						id: 9,
+						name: '09:00-10:00',
+						checked: false
+					}, {
+						id: 10,
+						name: '10:00-11:00',
+						checked: false
+					}, {
+						id: 11,
+						name: '11:00-12:00',
+						checked: false
+					}, {
+						id: 12,
+						name: '12:00-13:00',
+						checked: false
+					}, {
+						id: 13,
+						name: '13:00-14:00',
+						checked: false
+					}, {
+						id: 14,
+						name: '14:00-15:00',
+						checked: false
+					}, {
+						id: 15,
+						name: '15:00-16:00',
+						checked: false
+					}],
+					timeList3: [{
+						id: 16,
+						name: '16:00-17:00',
+						checked: false
+					}, {
+						id: 17,
+						name: '17:00-18:00',
+						checked: false
+					}, {
+						id: 18,
+						name: '18:00-19:00',
+						checked: false
+					}, {
+						id: 19,
+						name: '19:00-20:00',
+						checked: false
+					}, {
+						id: 20,
+						name: '20:00-21:00',
+						checked: false
+					}, {
+						id: 21,
+						name: '21:00-22:00',
+						checked: false
+					}, {
+						id: 22,
+						name: '22:00-23:00',
+						checked: false
+					}, {
+						id: 23,
+						name: '23:00-00:00',
+						checked: false
+					}],
+				},
+				//全选
+				all1: [{
+					name: '全选',
 					checked: false
 				}],
-				timeList2: [{
-					id: 8,
-					name: '08:00-09:00',
-					checked: false
-				}, {
-					id: 9,
-					name: '09:00-10:00',
-					checked: false
-				}, {
-					id: 10,
-					name: '10:00-11:00',
-					checked: false
-				}, {
-					id: 11,
-					name: '11:00-12:00',
-					checked: false
-				}, {
-					id: 12,
-					name: '12:00-13:00',
-					checked: false
-				}, {
-					id: 13,
-					name: '13:00-14:00',
-					checked: false
-				}, {
-					id: 14,
-					name: '14:00-15:00',
-					checked: false
-				}, {
-					id: 15,
-					name: '15:00-16:00',
+				all2: [{
+					name: '全选',
 					checked: false
 				}],
-				timeList3: [{
-					id: 16,
-					name: '16:00-17:00',
-					checked: false
-				}, {
-					id: 1,
-					name: '17:00-18:00',
+				all3: [{
+					name: '全选',
 					checked: false
-				}, {
-					id: 2,
-					name: '18:00-19:00',
+				}],
+				all4: [{
+					name: '全选',
 					checked: false
-				}, {
-					id: 3,
-					name: '19:00-20:00',
+				}],
+				all5: [{
+					name: '全选',
 					checked: false
-				}, {
-					id: 4,
-					name: '20:00-21:00',
+				}],
+				all6: [{
+					name: '全选',
 					checked: false
-				}, {
-					id: 5,
-					name: '21:00-22:00',
+				}],
+				all7: [{
+					name: '全选',
 					checked: false
-				}, {
-					id: 6,
-					name: '22:00-23:00',
+				}],
+				all8: [{
+					name: '全选',
 					checked: false
-				}, {
-					id: 7,
-					name: '23:00-00:00',
+				}],
+				all9: [{
+					name: '全选',
 					checked: false
 				}],
-				all1: [{
+				all10: [{
 					name: '全选',
-					id: 0,
 					checked: false
 				}],
-				all2: [{
+				all11: [{
 					name: '全选',
-					id: 1,
 					checked: false
 				}],
-				all3: [{
+				all12: [{
 					name: '全选',
-					id: 2,
 					checked: false
 				}],
+
 				/******************需要保存的资料*********************/
 				//电话
 				telePhone: {
 					Basics: '', //基础价格
 					additional: '', //步进
-					peopleNum: '' ,//服务人次
-					
+					peopleNum: '', //服务人次
+
 				},
 				//图文
 				imgText: {
@@ -660,12 +890,20 @@
 				this.dhcurrent = index
 			},
 			twchange(index) {
-				this.twchange = index
+				this.twcurrent = index
+			},
+			mzchange1(index) {
+				this.mzcurrent1 = index
 			},
-			mzchange(index) {
-				this.mzchange = index
+			mzchange2(index) {
+				this.mzcurrent2 = index
+			},
+			yychange(index) {
+				this.hospitalcurrent = index
+			},
+			change(index){
+				console.log('点击了',index)
 			}
-
 		}
 	};
 </script>

+ 0 - 1
pages/zixun/zixun.vue

xqd
@@ -179,7 +179,6 @@
 				// typeAll:类型(不填写为全部类型,1=图文咨询,2=.电话咨询),processing(不填写为全部类型,0=处理中 ,1=历史记录)
 				// 根据备注去操作接口
 				let res = await this.$request.post('patient/orderPatientList', {
-					
 					'curPage': 1,
 					'pageSize': n
 				})