Explorar o código

ltb11月25日
增加无数据显示空图
患者管理列表优化
重写更多-设置门诊医院选择器

老狐\25396 %!s(int64=4) %!d(string=hai) anos
pai
achega
a8287ec6a4

+ 5 - 5
pages/index/index.vue

xqd
@@ -306,11 +306,11 @@
 					pageSize: 10
 				});
 				if (res.data.length == 0) {
-					uni.showToast({
-						title: '没有更多数据',
-						duration: 3000,
-						icon: 'none'
-					})
+					// uni.showToast({
+					// 	title: '没有更多数据',
+					// 	duration: 3000,
+					// 	icon: 'none'
+					// })
 					return false;
 				}
 				if (this.page == 1) {

+ 1 - 1
pages/information/information.vue

xqd
@@ -21,7 +21,7 @@
 		<view style="margin: 40rpx 28rpx;">
 			<view style="font-size: 28rpx;margin-bottom: 20rpx;">服务简介</view>
 			<view style="">
-				<textarea @input="bindTextAreaBlur" style="height: 200rpx;width: 100%;" :placeholder="placeholder2" />
+				<textarea @blur="bindTextAreaBlur" style="height: 200rpx;width: 100%;" :placeholder="placeholder2" />
 				</view>
 		</view>
 		<!-- 分隔 -->

+ 5 - 5
pages/me_evaluate.vue

xqd
@@ -90,11 +90,11 @@
 				console.log(res)
 				if (res.status == 0) {
 					if (res.data.length==0) {
-						uni.showToast({
-							title: "没有更多了",
-							icon: "none"
-						})
-						return false;
+						// uni.showToast({
+						// 	title: "没有更多了",
+						// 	icon: "none"
+						// })
+						// return false;
 					} else {
 						this.tcTeam = this.tcTeam.concat(res.data)
 						this.pageindex++

+ 27 - 16
pages/patient/patient.vue

xqd xqd xqd xqd
@@ -10,34 +10,34 @@
 					<!-- 标题 -->
 					<view slot="title" style="font-size: 30rpx;">
 						<text style="font-weight: bold;margin-right: 20rpx;">{{item.title}}</text>
-						<text style="color: #666666;">{{item.sum}}</text>
+						<text style="color: #666666;">{{item.sum !=0?item.sum:''}}</text>
 					</view>
 					<!-- 面板内容 -->
-					<view style="height:200rpx;overflow:auto;overflow-x:hidden;">
-					<!-- <view> -->
-						<view v-for="(nitem,nindex) in item.content" style="display: flex;align-items: center;padding: 10rpx 0;overflow:auto"
-						 @click="xq" :id="nitem.user_id" :key='nindex'>
-							<image :src="nitem.avatar==null?'../../static/login/moren.png':nitem.avatar" mode="aspectFit" style="height: 68rpx;width: 68rpx;border-radius: 50%;margin-right: 20rpx;"></image>
-							<text style="font-size: 28rpx;margin: 28rpx;color: #000000;">{{nitem.nickname==null?'未知':nitem.nickname}}</text>
-							<text style="font-size: 28rpx;">{{nitem.remark==null?'未知':nitem.remark}}</text>
+					<view class="he" style="height:310rpx">
+						<view v-for="nitem,nindex in item.content" style="display: flex;align-items: center;padding: 10rpx 0;overflow:auto;height: auto;"
+						 @click="xq" :id="nitem.user_id" :key='index'>
+							<image :src="nitem.avatar" mode="aspectFit" style="height: 68rpx;width: 68rpx;border-radius: 50%;margin-right: 20rpx;"></image>
+							<text style="font-size: 28rpx;margin: 28rpx;color: #000000;">{{nitem.nickname}}</text>
+							<text style="font-size: 28rpx;">{{nitem.remark==null?'':nitem.remark}}</text>
 						</view>
 					</view>
+					
 				</u-collapse-item>
 			</u-collapse>
 		</view>
 		<view v-else>
 			<view v-for="item, index in followList" :key="index">
 				<view style="padding:30rpx 50rpx;font-weight: bold;font-size: 30rpx;background-color: #EEEEEF;">{{item.title}}</view>
-				<view v-for="citem,cindex in item.content"  @click="xq" :id="citem.user_id" :key='cindex'>
-					<view v-if="citem.nickname.indexOf(keywordSearch)>=0" class="flex align-center" style="height: 150rpx;padding: 10rpx;margin: 0 30rpx;" >
+				<view v-for="citem,cindex in item.content" @click="xq" :id="citem.user_id" :key='cindex'>
+					<view v-if="citem.nickname.indexOf(keywordSearch)>=0" class="flex align-center" style="height: 150rpx;padding: 10rpx;margin: 0 30rpx;">
 						<image :src="citem.avatar==null?'../../static/login/moren.png':citem.avatar" mode="aspectFit" style="height: 75rpx;width: 75rpx;border-radius: 50%;margin-right: 20rpx;"></image>
 						<text style="font-size: 28rpx;margin: 28rpx;color: #000000;">{{citem.nickname==null?'未知':citem.nickname}}</text>
 						<text style="font-size: 28rpx;">{{citem.remark==null?'未知':citem.remark}}</text>
 					</view>
 				</view>
-				
+
 			</view>
-			
+
 		</view>
 	</view>
 </template>
@@ -46,9 +46,15 @@
 	export default {
 		data() {
 			return {
+				//
+				listHeight: {
+					height: '600rpx',
+					overflow: 'auto',
+					overflowX: 'hidden',
+				},
 				//搜索
 				keyword: '',
-				keywordSearch:'',
+				keywordSearch: '',
 				itemStyle: {
 					marginBottom: '20rpx',
 					background: '#FFFFFF',
@@ -103,17 +109,17 @@
 
 					this.followList[3].content = res.data.user_pack.data
 					this.followList[3].sum = res.data.user_pack.count
+
 				}
 
 			}
-
-
 		},
 		onShow() {
 			this.getLists();
 			console.log(this.followList)
+
 		}
-		
+
 	}
 </script>
 
@@ -125,4 +131,9 @@
 		box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.04);
 		border-radius: 12px;
 	}
+
+	.he {
+		overflow: auto;
+		overflow-x: hidden;
+	}
 </style>

+ 2 - 3
pages/patient/patientxq.vue

xqd
@@ -308,16 +308,15 @@
 			},
 			qr:async function(e){
 				if (this.inputbz != '') {
-					let res = await this.$request.post("doctor/remacks", {
+					let res = this.$request.post("doctor/remacks", {
 						'id': this.user_id,
 						'remak': this.inputbz
 					});
-					 
+					console.log("res.status",res.resolved)
 					if (res.status == 0) {
 						uni.showToast({
 							title: '设置成功!'
 						})
-						this.bz = this.inputbz
 						this.formshow = false
 					} else {
 						uni.showToast({

+ 271 - 178
pages/service/more.vue

xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd
@@ -271,8 +271,22 @@
 			<view class="list">服务时间</view>
 			<view style="margin-top: 20rpx;">
 				<!-- 医院分段器 -->
-				<view style="margin-bottom: 40rpx;">
-					<u-subsection :list="hospital" :current="hospitalcurrent" @change="yychange"></u-subsection>
+				<view style="margin-bottom: 40rpx;" v-if="hospitalTotal == 1">
+					<view class="total">
+						<view class="front">{{hospitalOne}}</view>
+					</view>
+				</view>
+				<view style="margin-bottom: 40rpx;" v-else>
+					<view class="total" v-show="changeOne">
+						<view class="front">{{hospitalOne}}</view>
+						<view style="height: 100%;width: 20rpx;"></view>
+						<view class="back" @click="hostow">{{hospitalTow}}</view>
+					</view>
+					<view class="total" v-show="!changeOne">
+						<view class="back" @click="hosone">{{hospitalOne}}</view>
+						<view style="height: 100%;width: 20rpx;"></view>
+						<view class="front">{{hospitalTow}}</view>
+					</view>
 				</view>
 				<!-- 当医院更换时 -->
 				<view v-if="hospitalcurrent == 0">
@@ -480,7 +494,12 @@
 				}, {
 					flag: true
 				}, ],
-				hospital: [{'name':'医院1'},{'name':'医院2'}],
+				//医院
+				hospitalOne: '11',
+				hospitalTow: '22',
+				hospitalTotal: 2,
+				changeOne: true,
+				//
 				hospitals: [],
 				hospitalcurrent: 0,
 				list: [{
@@ -573,7 +592,7 @@
 				}],
 
 				/********************保存的数据****************************/
-				
+
 				form: {
 					is_chat: {
 						base_price: "20",
@@ -589,118 +608,151 @@
 					},
 					is_appoint: {
 						base_price: "20",
-						type:"3",
+						type: "3",
 						person: 5,
-						hospitals:[{
+						hospitals: [{
 							service_time: "1",
 							relation_id: 0
-						},{
+						}, {
 							service_time: "1",
 							relation_id: 0
 						}]
 					},
-					type:2
+					type: 2
 				}
 
 			}
 		},
 		methods: {
 			/*    保存       */
-			bc:async function(e) {
+			bc: async function(e) {
 				let that = this;
 				/**
 				 * 电话
 				 * */
-				 
-				 that.form.is_phone.service_time='';
-				 that.form.is_chat.service_time='';
-				 that.form.is_appoint.hospitals[0].service_time='';
-				 that.form.is_appoint.hospitals[1].service_time='';
-				for(let i in that.dh.timeList1){		//遍历选中 保存id
-					if(that.dh.timeList1[i].checked){that.form.is_phone.service_time = that.form.is_phone.service_time+","+that.dh.timeList1[i].id}
+
+				that.form.is_phone.service_time = '';
+				that.form.is_chat.service_time = '';
+				that.form.is_appoint.hospitals[0].service_time = '';
+				that.form.is_appoint.hospitals[1].service_time = '';
+				for (let i in that.dh.timeList1) { //遍历选中 保存id
+					if (that.dh.timeList1[i].checked) {
+						that.form.is_phone.service_time = that.form.is_phone.service_time + "," + that.dh.timeList1[i].id
+					}
 				}
-				for(let i in that.dh.timeList2){		//遍历选中 保存id
-					if(that.dh.timeList2[i].checked){that.form.is_phone.service_time = that.form.is_phone.service_time+","+that.dh.timeList2[i].id}
+				for (let i in that.dh.timeList2) { //遍历选中 保存id
+					if (that.dh.timeList2[i].checked) {
+						that.form.is_phone.service_time = that.form.is_phone.service_time + "," + that.dh.timeList2[i].id
+					}
 				}
-				for(let i in that.dh.timeList3){		//遍历选中 保存id
-					if(that.dh.timeList3[i].checked){that.form.is_phone.service_time = that.form.is_phone.service_time+","+that.dh.timeList3[i].id}
+				for (let i in that.dh.timeList3) { //遍历选中 保存id
+					if (that.dh.timeList3[i].checked) {
+						that.form.is_phone.service_time = that.form.is_phone.service_time + "," + that.dh.timeList3[i].id
+					}
 				}
 				//判断开头第一个是否为逗号,是就删除逗号
-				if(that.form.is_phone.service_time.startsWith(",")){
-					that.form.is_phone.service_time= that.form.is_phone.service_time.substr(1);
+				if (that.form.is_phone.service_time.startsWith(",")) {
+					that.form.is_phone.service_time = that.form.is_phone.service_time.substr(1);
 				}
 				/**
 				 * 图文
 				 * */
-				 
-				for(let i in that.tw.timeList1){		//遍历选中 保存id
-					if(that.tw.timeList1[i].checked){that.form.is_chat.service_time = that.form.is_chat.service_time+","+that.tw.timeList1[i].id}
+
+				for (let i in that.tw.timeList1) { //遍历选中 保存id
+					if (that.tw.timeList1[i].checked) {
+						that.form.is_chat.service_time = that.form.is_chat.service_time + "," + that.tw.timeList1[i].id
+					}
 				}
-				for(let i in that.tw.timeList2){		//遍历选中 保存id
-					if(that.tw.timeList2[i].checked){that.form.is_chat.service_time = that.form.is_chat.service_time+","+that.tw.timeList2[i].id}
+				for (let i in that.tw.timeList2) { //遍历选中 保存id
+					if (that.tw.timeList2[i].checked) {
+						that.form.is_chat.service_time = that.form.is_chat.service_time + "," + that.tw.timeList2[i].id
+					}
 				}
-				for(let i in that.tw.timeList3){		//遍历选中 保存id
-					if(that.tw.timeList3[i].checked){that.form.is_chat.service_time =thatthat.form.is_chat.service_time+","+that.tw.timeList3[i].id}
+				for (let i in that.tw.timeList3) { //遍历选中 保存id
+					if (that.tw.timeList3[i].checked) {
+						that.form.is_chat.service_time = thatthat.form.is_chat.service_time + "," + that.tw.timeList3[i].id
+					}
 				}
 				//判断开头第一个是否为逗号,是就删除逗号
-				if(that.form.is_chat.service_time.startsWith(",")){
-					
-					that.form.is_chat.service_time= that.form.is_chat.service_time.substr(1);
+				if (that.form.is_chat.service_time.startsWith(",")) {
+
+					that.form.is_chat.service_time = that.form.is_chat.service_time.substr(1);
 				}
 				/**
 				 * 门诊
 				 * */
-				for(let i in that.mz1.timeList1){		//遍历选中 保存id
-					if(that.mz1.timeList1[i].checked){that.form.is_appoint.hospitals[0].service_time = that.form.is_appoint.hospitals[0].service_time+","+that.mz1.timeList1[i].id}
+				for (let i in that.mz1.timeList1) { //遍历选中 保存id
+					if (that.mz1.timeList1[i].checked) {
+						that.form.is_appoint.hospitals[0].service_time = that.form.is_appoint.hospitals[0].service_time + "," + that.mz1
+							.timeList1[i].id
+					}
 				}
-				for(let i in that.mz1.timeList2){		//遍历选中 保存id
-					if(that.mz1.timeList2[i].checked){that.form.is_appoint.hospitals[0].service_time = that.form.is_appoint.hospitals[0].service_time+","+that.mz1.timeList2[i].id}
+				for (let i in that.mz1.timeList2) { //遍历选中 保存id
+					if (that.mz1.timeList2[i].checked) {
+						that.form.is_appoint.hospitals[0].service_time = that.form.is_appoint.hospitals[0].service_time + "," + that.mz1
+							.timeList2[i].id
+					}
 				}
-				for(let i in that.mz1.timeList3){		//遍历选中 保存id
-					if(that.mz1.timeList3[i].checked){that.form.is_appoint.hospitals[0].service_time = that.form.is_appoint.hospitals[0].service_time+","+that.mz1.timeList3[i].id}
+				for (let i in that.mz1.timeList3) { //遍历选中 保存id
+					if (that.mz1.timeList3[i].checked) {
+						that.form.is_appoint.hospitals[0].service_time = that.form.is_appoint.hospitals[0].service_time + "," + that.mz1
+							.timeList3[i].id
+					}
 				}
 				//判断开头第一个是否为逗号,是就删除逗号
-				if(that.form.is_appoint.hospitals[0].service_time.startsWith(",")){
-					
-					that.form.is_appoint.hospitals[0].service_time= that.form.is_appoint.hospitals[0].service_time.substr(1);
+				if (that.form.is_appoint.hospitals[0].service_time.startsWith(",")) {
+
+					that.form.is_appoint.hospitals[0].service_time = that.form.is_appoint.hospitals[0].service_time.substr(1);
 				}
 				/**
 				 * 门诊
 				 * */
-				for(let i in that.mz2.timeList1){		//遍历选中 保存id
-					if(that.mz2.timeList1[i].checked){that.form.is_appoint.hospitals[1].service_time = that.form.is_appoint.hospitals[1].service_time+","+that.mz2.timeList1[i].id}
+				for (let i in that.mz2.timeList1) { //遍历选中 保存id
+					if (that.mz2.timeList1[i].checked) {
+						that.form.is_appoint.hospitals[1].service_time = that.form.is_appoint.hospitals[1].service_time + "," + that.mz2
+							.timeList1[i].id
+					}
 				}
-				for(let i in that.mz2.timeList2){		//遍历选中 保存id
-					if(that.mz2.timeList2[i].checked){that.form.is_appoint.hospitals[1].service_time = that.form.is_appoint.hospitals[1].service_time+","+that.mz2.timeList2[i].id}
+				for (let i in that.mz2.timeList2) { //遍历选中 保存id
+					if (that.mz2.timeList2[i].checked) {
+						that.form.is_appoint.hospitals[1].service_time = that.form.is_appoint.hospitals[1].service_time + "," + that.mz2
+							.timeList2[i].id
+					}
 				}
-				for(let i in that.mz2.timeList3){		//遍历选中 保存id
-					if(that.mz2.timeList3[i].checked){that.form.is_appoint.hospitals[1].service_time = that.form.is_appoint.hospitals[1].service_time+","+that.mz2.timeList3[i].id}
+				for (let i in that.mz2.timeList3) { //遍历选中 保存id
+					if (that.mz2.timeList3[i].checked) {
+						that.form.is_appoint.hospitals[1].service_time = that.form.is_appoint.hospitals[1].service_time + "," + that.mz2
+							.timeList3[i].id
+					}
 				}
 				//判断开头第一个是否为逗号,是就删除逗号
-				if(that.form.is_appoint.hospitals[1].service_time.startsWith(",")){
-					that.form.is_appoint.hospitals[1].service_time= that.form.is_appoint.hospitals[1].service_time.substr(1);
+				if (that.form.is_appoint.hospitals[1].service_time.startsWith(",")) {
+					that.form.is_appoint.hospitals[1].service_time = that.form.is_appoint.hospitals[1].service_time.substr(1);
 				}
-				
-				
-			 
+
+
+
 				var forms = JSON.parse(JSON.stringify(that.form));
-				if(typeof forms!='string'){
-					forms = JSON.stringify(forms) 
+				if (typeof forms != 'string') {
+					forms = JSON.stringify(forms)
 				}
-				 
-				 
-				console.log('我是form',that.form)
-				console.log('我是formzifuc',forms)
-				let res = await that.$request.post('doctor/saveSettingList',{data:forms,type:2});
-				if(res.status==0){
+
+
+				console.log('我是form', that.form)
+				console.log('我是formzifuc', forms)
+				let res = await that.$request.post('doctor/saveSettingList', {
+					data: forms,
+					type: 2
+				});
+				if (res.status == 0) {
 					uni.showToast({
-						icon:'none',
-						duration:3000,
-						title:'操作成功',
-						
+						icon: 'none',
+						duration: 3000,
+						title: '操作成功',
+
 					})
 				}
-				console.log('res对象:',res);
+				console.log('res对象:', res);
 			},
 			/**
 			 * @author Liu Yuanhang
@@ -711,39 +763,38 @@
 					'type': 2
 				});
 				if (res.status == 0) {
-
 					// 1.控制列表显示,2.渲染数据
 					this.showList[0].flag = res.data.show.is_phone;
 					this.showList[1].flag = res.data.show.is_chat;
 					this.showList[2].flag = res.data.show.is_appoint;
-
 					// 获取医院
-					if (res.data.org.length!=0) {
-						this.hospital=[];
-						this.hospital = res.data.org;
-						// this.hospital = res.data.org;
-						this.hospitals = res.data.orgs;
-						if(res.data.orgs.length==1){
+					if (res.data.org.length != 0) {
+						if (res.data.orgs.length == 1) {
+							this.hospitalTotal = 1
 							this.form.is_appoint.hospitals[0].relation_id = res.data.orgs[0].id
-						}else if(res.data.orgs.length==2){
+							this.hospitalOne = res.data.org[0].name
+						} else if (res.data.orgs.length == 2) {
+							this.hospitalTotal = 2
 							this.form.is_appoint.hospitals[0].relation_id = res.data.orgs[0].id
 							this.form.is_appoint.hospitals[1].relation_id = res.data.orgs[1].id
-						}else{
+							this.hospitalOne = res.data.org[0].name
+							this.hospitalTow = res.data.org[1].name
+						} else {
 							uni.showToast({
-								icon:'none',
-								title:'医院不存在'
+								icon: 'none',
+								title: '医院不存在'
 							})
 						}
-						
-						
+
+
 					}
 
 
 					// 渲染显示的基础价格设置
 					this.form.is_phone.person = '';
-					this.form.is_chat.person ='';
-					this.form.is_appoint.person='';
-					
+					this.form.is_chat.person = '';
+					this.form.is_appoint.person = '';
+
 					if (res.data.list.phone.length != 0) {
 						// 渲染电话的基础数据
 						this.form.is_phone.base_price = res.data.list.phone.base_price;
@@ -764,10 +815,10 @@
 						this.form.is_appoint.step_price = res.data.list.men[0].step_price;
 						this.form.is_appoint.person = res.data.list.men[0].person;
 					}
-					
-				
 
-					
+
+
+
 
 					/* 渲染时间 */
 					//电话的时间
@@ -814,12 +865,12 @@
 					dh2 = this.dh.timeList2;
 					dh3 = this.dh.timeList3;
 					let phone = e.list.phone.service_time.split(',');
-					var phones=[];//保存转换后的整型字符串
-					 phone.forEach(function(data,index,arr){  
-					        phones.push(+data);  
-					 });  
+					var phones = []; //保存转换后的整型字符串
+					phone.forEach(function(data, index, arr) {
+						phones.push(+data);
+					});
 					console.log('我是电话', phones)
-		 
+
 					for (let i = 0; i < dh1.length; i++) {
 						if (phones.indexOf(dh1[i].id) != -1) {
 							dh1[i].checked = true
@@ -840,101 +891,101 @@
 				}
 
 				// 图文资讯渲染
-				if(e.list.chat.length!=0){
-					tw1=this.tw.timeList1;
-					tw2=this.tw.timeList2;
-					tw3=this.tw.timeList3;
-					 let chats = e.list.chat.service_time.split(',');
-					 var chat=[];//保存转换后的整型字符串
-					  chats.forEach(function(data,index,arr){  
-					         chat.push(+data);  
-					  });  
-					 console.log('我是图文',chat)
-					 for(let i=0;i<tw1.length;i++){
-						if(chat.indexOf(tw1[i].id)!=-1){
+				if (e.list.chat.length != 0) {
+					tw1 = this.tw.timeList1;
+					tw2 = this.tw.timeList2;
+					tw3 = this.tw.timeList3;
+					let chats = e.list.chat.service_time.split(',');
+					var chat = []; //保存转换后的整型字符串
+					chats.forEach(function(data, index, arr) {
+						chat.push(+data);
+					});
+					console.log('我是图文', chat)
+					for (let i = 0; i < tw1.length; i++) {
+						if (chat.indexOf(tw1[i].id) != -1) {
 							tw1[i].checked = true
 						}
-					 }
-					 for(let i=0;i<tw2.length;i++){
-						if(chat.indexOf(tw2[i].id)!=-1){
+					}
+					for (let i = 0; i < tw2.length; i++) {
+						if (chat.indexOf(tw2[i].id) != -1) {
 							tw2[i].checked = true
 						}
-					 }
-					 for(let i=0;i<tw3.length;i++){
-						if(chat.indexOf(tw3[i].id)!=-1){
+					}
+					for (let i = 0; i < tw3.length; i++) {
+						if (chat.indexOf(tw3[i].id) != -1) {
 							tw3[i].checked = true
 						}
-					 }
+					}
 				}
-			 
+
 				let mzCont = e.list.men.length;
-				if(mzCont>0){
-					 
+				if (mzCont > 0) {
+
 					let men = e.list.men;
-					let men1 =  e.list.men[0].service_time.split(',');
-					let men2 =  e.list.men[1].service_time.split(',');
+					let men1 = e.list.men[0].service_time.split(',');
+					let men2 = e.list.men[1].service_time.split(',');
 					this.form.is_appoint.hospitals[0].relation_id = e.list.men[0].relation_id
 					this.form.is_appoint.hospitals[1].relation_id = e.list.men[1].relation_id
-					var men1s=[];//保存转换后的整型字符串
-					var men2s=[];//保存转换后的整型字符串
-					 men1.forEach(function(data,index,arr){  
-					        men1s.push(+data);  
-					 });  
-					 men2.forEach(function(data,index,arr){
-					        men2s.push(+data);  
-					 }); 
-					 
-					let p =0;
+					var men1s = []; //保存转换后的整型字符串
+					var men2s = []; //保存转换后的整型字符串
+					men1.forEach(function(data, index, arr) {
+						men1s.push(+data);
+					});
+					men2.forEach(function(data, index, arr) {
+						men2s.push(+data);
+					});
+
+					let p = 0;
 					var names = '';
-					  if(mzCont==1){
-						  for(let k=0;k<this.mz1.timeList1.length;k++){
-						  	if(men1s.indexOf(this.mz1.timeList1[k].id)!=-1){
-						  		this.mz1.timeList1[k].checked = true
-						  	}
-						  }
-						  for(let k=0;k<this.mz1.timeList2.length;k++){
-						  	if(men1s.indexOf(this.mz1.timeList2[k].id)!=-1){
-						  		this.mz1.timeList2[k].checked = true
-						  	}
-						  }						  					 
-						  for(let k=0;k<this.mz1.timeList3.length;k++){
-						  	if(men1s.indexOf(this.mz1.timeList3[k].id)!=-1){
-						  		this.mz1.timeList3[k].checked = true
-						  	}
-						  }
-					  }else if(mzCont==2){
-						  for(let k=0;k<this.mz1.timeList1.length;k++){
-						  	if(men1s.indexOf(this.mz1.timeList1[k].id)!=-1){
-						  		this.mz1.timeList1[k].checked = true
-						  	}
-						  }
-						  for(let k=0;k<this.mz1.timeList2.length;k++){
-						  	if(men1s.indexOf(this.mz1.timeList2[k].id)!=-1){
-						  		this.mz1.timeList2[k].checked = true
-						  	}
-						  }						  					 
-						  for(let k=0;k<this.mz1.timeList3.length;k++){
-						  	if(men1s.indexOf(this.mz1.timeList3[k].id)!=-1){
-						  		this.mz1.timeList3[k].checked = true
-						  	}
-						  }
-						  
-						  for(let k=0;k<this.mz2.timeList1.length;k++){
-						  	if(men2s.indexOf(this.mz2.timeList1[k].id)!=-1){
-						  		this.mz2.timeList1[k].checked = true
-						  	}
-						  }
-						  for(let k=0;k<this.mz2.timeList2.length;k++){
-						  	if(men2s.indexOf(this.mz2.timeList2[k].id)!=-1){
-						  		this.mz2.timeList2[k].checked = true
-						  	}
-						  }						  					 
-						  for(let k=0;k<this.mz2.timeList3.length;k++){
-						  	if(men2s.indexOf(this.mz2.timeList3[k].id)!=-1){
-						  		this.mz2.timeList3[k].checked = true
-						  	}
-						  }
-					  }
+					if (mzCont == 1) {
+						for (let k = 0; k < this.mz1.timeList1.length; k++) {
+							if (men1s.indexOf(this.mz1.timeList1[k].id) != -1) {
+								this.mz1.timeList1[k].checked = true
+							}
+						}
+						for (let k = 0; k < this.mz1.timeList2.length; k++) {
+							if (men1s.indexOf(this.mz1.timeList2[k].id) != -1) {
+								this.mz1.timeList2[k].checked = true
+							}
+						}
+						for (let k = 0; k < this.mz1.timeList3.length; k++) {
+							if (men1s.indexOf(this.mz1.timeList3[k].id) != -1) {
+								this.mz1.timeList3[k].checked = true
+							}
+						}
+					} else if (mzCont == 2) {
+						for (let k = 0; k < this.mz1.timeList1.length; k++) {
+							if (men1s.indexOf(this.mz1.timeList1[k].id) != -1) {
+								this.mz1.timeList1[k].checked = true
+							}
+						}
+						for (let k = 0; k < this.mz1.timeList2.length; k++) {
+							if (men1s.indexOf(this.mz1.timeList2[k].id) != -1) {
+								this.mz1.timeList2[k].checked = true
+							}
+						}
+						for (let k = 0; k < this.mz1.timeList3.length; k++) {
+							if (men1s.indexOf(this.mz1.timeList3[k].id) != -1) {
+								this.mz1.timeList3[k].checked = true
+							}
+						}
+
+						for (let k = 0; k < this.mz2.timeList1.length; k++) {
+							if (men2s.indexOf(this.mz2.timeList1[k].id) != -1) {
+								this.mz2.timeList1[k].checked = true
+							}
+						}
+						for (let k = 0; k < this.mz2.timeList2.length; k++) {
+							if (men2s.indexOf(this.mz2.timeList2[k].id) != -1) {
+								this.mz2.timeList2[k].checked = true
+							}
+						}
+						for (let k = 0; k < this.mz2.timeList3.length; k++) {
+							if (men2s.indexOf(this.mz2.timeList3[k].id) != -1) {
+								this.mz2.timeList3[k].checked = true
+							}
+						}
+					}
 				}
 				console.log(e.list);
 				uni.hideLoading();
@@ -951,9 +1002,7 @@
 			mzchange2(index) {
 				this.mzcurrent2 = index
 			},
-			yychange(index) {
-				this.hospitalcurrent = index
-			},
+
 			change(index) {
 				console.log('点击了', index == true)
 				switch (index) {
@@ -1091,6 +1140,15 @@
 						break;
 					default:
 				}
+			},
+			hosone() {
+				this.hospitalcurrent = 0
+				this.changeOne = true
+
+			},
+			hostow() {
+				this.hospitalcurrent = 1
+				this.changeOne = false
 			}
 		}
 	};
@@ -1156,6 +1214,41 @@
 		justify-content: center;
 		background-color: #0B73B9;
 		color: #FFFFFF;
-		z-index: 1;
+		z-index: 99;
+	}
+
+	.total {
+		height: 80rpx;
+		border-radius: 10rpx;
+		background-color: #eeeeef;
+		padding: 10rpx;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+	}
+
+	//模拟分段器
+	.front {
+		height: 100%;
+		flex-grow: 1;
+		background-color: #FFF;
+		border-radius: 10rpx;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		font-weight: bold;
+		font-size: 30rpx;
+	}
+
+	.back {
+		height: 100%;
+		flex-grow: 1;
+		background-color: #FFF;
+		border-radius: 10rpx;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		font-size: 30rpx;
+		background-color: #eeeeef;
 	}
-</style>
+</style>

+ 0 - 5
pages/zixun/xiangqing.vue

xqd
@@ -259,11 +259,6 @@
 			}
 		},
 		methods: {
-			
-			phone:async function(){
-				let res = await this.$request.post("patient/callPhones",{'patient_id':this.patient_id});
-				console.log(res);
-			},
 			getInfo:async function(id){
 				let res = await this.$request.post("patient/orderPatientDetail",{'patient_id':id});
 		

+ 12 - 1
pages/zixun/zixun.vue

xqd xqd xqd xqd
@@ -71,6 +71,7 @@
 				</view>
 			</view>
 		</view>
+		<u-empty text="暂无数据" :show="show" mode="order" margin-top="250"></u-empty>
 		<view style="width: 100%;height: 100rpx;"></view>
 	</view>
 </template>
@@ -79,14 +80,15 @@
 	export default {
 		onShow() {
 			// this.getLists(this.num,this.value1,this.value2)
+			
 		},
 		onLoad(e) {
 			// 获取列表
 			this.getLists(this.num,this.value1,this.value2)
-
 		},
 		data() {
 			return {
+				show:false,
 				//排序点击事件
 				value1: 0,
 				value2: 0,
@@ -117,6 +119,14 @@
 			}
 		},
 		methods: {
+			empty(){
+				console.log('list',this.list)
+				if(this.list.length==0){
+					this.show = true
+				}else{
+					this.show = false
+				}
+			},
 			getLists: async function(c,t,p) {
 				// 备注:  curPage当前页,pageSize一页显示多少条,
 				// typeAll:类型(不填写为全部类型,1=图文咨询,2=.电话咨询),processing(不填写为全部类型,0=处理中 ,1=历史记录)
@@ -146,6 +156,7 @@
 						console.log(this.list)
 					}
 				}
+				this.empty()
 			},
 			close1(e) {
 				this.value1 = e