ソースを参照

ltb2020年11月24日15:55:54
添加退出登录
修改服务设置默认值
修改排班逻辑
修改意见管理按钮位置
添加联系我们按钮方法,拨打电话

老狐\25396 4 年 前
コミット
c3ecb6ae15

+ 223 - 211
pages/Scheduling.vue

xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd
@@ -3,8 +3,8 @@
 		<!-- 新 -->
 		<u-select v-model="show" :list="list" @confirm="choiceNew"></u-select>
 		<!-- 历史 -->
-			<u-select v-model="oldshow" :list="oldlist" @confirm=""></u-select>
-			<u-select v-model="oldshow" :list="oldlist"  @confirm="cliold"></u-select>
+		<u-select v-model="oldshow" :list="oldlist" @confirm=""></u-select>
+		<u-select v-model="oldshow" :list="oldlist" @confirm="cliold"></u-select>
 		<!-- 医院 -->
 		<u-select v-model="hospitalshow" mode="single-column" :list="hospitalList" @confirm="confirmhospital" value="0"></u-select>
 		<!-- 新增-->
@@ -122,10 +122,10 @@
 			</view>
 		</view>
 		<!-- 保存 -->
-		<view class="bottomButton" @click="bc" v-if="!old">
+		<view class="bottomButton" @click="modalShow=!modalShow" v-if="!old">
 			保存
 		</view>
-
+		<u-modal v-model="modalShow" content="保存后不可修改,确定保存?" @confirm="bc" :show-cancel-button="true"></u-modal>
 	</view>
 </template>
 
@@ -133,6 +133,10 @@
 	export default {
 		data() {
 			return {
+				//已经保存?
+				fixed: false,
+				//弹窗
+				modalShow: false,
 				//切换历史和新增
 				old: false,
 				//新增的排班选择   最多排四周
@@ -209,75 +213,73 @@
 					afternoon: '',
 					night: ''
 				}],
-				
-				saveList:[
-					{
-						organization_id: '',
-						schedule_date: '',
-						per_time_num: 10,
-						identifi:{
-							'zao':false,
-							'zhong':false,
-							'wan':false
-						}
-					}, {
-						organization_id: '',
-						schedule_date: '',
-						per_time_num: 10,
-						identifi:{
-							'zao':false,
-							'zhong':false,
-							'wan':false
-						}
-					}, {
-						organization_id: '',
-						schedule_date: '',
-						per_time_num: 10,
-						identifi:{
-								'zao':false,
-								'zhong':false,
-								'wan':false
-							}
-					}, {
-						organization_id: '',
-						schedule_date: '',
-						per_time_num: 10,
-						identifi:{
-								'zao':false,
-								'zhong':false,
-								'wan':false
-							}
-					}, {
-						organization_id: '',
-						schedule_date: '',
-						per_time_num: 10,
-						identifi:{
-								'zao':false,
-								'zhong':false,
-								'wan':false
-							}
-					}, {
-						organization_id: '',
-						schedule_date: '',
-						per_time_num:10,
-						identifi:{
-								'zao':false,
-								'zhong':false,
-								'wan':false
-							}
-					 
-					}, {
-						organization_id: '',
-						schedule_date: '',
-						per_time_num: 10,
-						identifi:{
-								'zao':false,
-								'zhong':false,
-								'wan':false
-							}
-					},
-				],
-			 
+
+				saveList: [{
+					organization_id: '',
+					schedule_date: '',
+					per_time_num: 10,
+					identifi: {
+						'zao': false,
+						'zhong': false,
+						'wan': false
+					}
+				}, {
+					organization_id: '',
+					schedule_date: '',
+					per_time_num: 10,
+					identifi: {
+						'zao': false,
+						'zhong': false,
+						'wan': false
+					}
+				}, {
+					organization_id: '',
+					schedule_date: '',
+					per_time_num: 10,
+					identifi: {
+						'zao': false,
+						'zhong': false,
+						'wan': false
+					}
+				}, {
+					organization_id: '',
+					schedule_date: '',
+					per_time_num: 10,
+					identifi: {
+						'zao': false,
+						'zhong': false,
+						'wan': false
+					}
+				}, {
+					organization_id: '',
+					schedule_date: '',
+					per_time_num: 10,
+					identifi: {
+						'zao': false,
+						'zhong': false,
+						'wan': false
+					}
+				}, {
+					organization_id: '',
+					schedule_date: '',
+					per_time_num: 10,
+					identifi: {
+						'zao': false,
+						'zhong': false,
+						'wan': false
+					}
+
+				}, {
+					organization_id: '',
+					schedule_date: '',
+					per_time_num: 10,
+					identifi: {
+						'zao': false,
+						'zhong': false,
+						'wan': false
+					}
+				}, ],
+
 				//历史记录的数组
 				oldWeek: [],
 				//选择医院
@@ -292,81 +294,81 @@
 			}
 		},
 		methods: {
-				getOldList:async function(){
-					let res = await this.$request.post("doctor/getLinsList");
-					if(res.status==0){
-						if(res.data!=null){
-							let datas = JSON.parse(JSON.stringify(res.data))
-							let lists = []
-							var obj;
-							for(let i=0;i<datas.length;i++){
-								obj = {
-									value:datas[i].start_time.id+' 至 '+datas[i].end_time.id,
-									label:datas[i].start_time.schedule_date+' 至 '+datas[i].end_time.schedule_date,
-								}
-								lists.push(obj) 
+			getOldList: async function() {
+				let res = await this.$request.post("doctor/getLinsList");
+				if (res.status == 0) {
+					if (res.data != null) {
+						let datas = JSON.parse(JSON.stringify(res.data))
+						let lists = []
+						var obj;
+						for (let i = 0; i < datas.length; i++) {
+							obj = {
+								value: datas[i].start_time.id + ' 至 ' + datas[i].end_time.id,
+								label: datas[i].start_time.schedule_date + ' 至 ' + datas[i].end_time.schedule_date,
 							}
-							this.oldlist = lists
+							lists.push(obj)
 						}
-					}			
-				},
-				
-				
-				
-				cliold:async function(e){
-					
-					let times = e[0].label;
-					times = times.split(" 至 ");
-					let startime = times[0];
-					let endtime = times[1];
-					let weekArr = this.getDateStr(startime, endtime, 0);
-					
-					let res = await this.$request.post("doctor/getLinsDetail",{'start_date':startime,'end_date':endtime});
-					console.log('老得:',this.oldWeek);
-					console.log('新的',res.data);
-					if(res.status==0){
-						if(typeof res.data[0]!=undefined && typeof res.data[0]!='undefined'){
-							let data = res.data;
-							let arr =[];
-							for(let i=0;i<this.oldWeek.length;i++){
-								for(let p=0;p<data.length;p++){
-									if(this.oldWeek[i].value==data[p].schedule_date){
-										this.oldWeek[i].morning = data[p].type.zao?data[p].type.zao:'暂无';
-										this.oldWeek[i].afternoon =data[p].type.xia?data[p].type.xia:'暂无';
-										this.oldWeek[i].night =data[p].type.wan?data[p].type.wan:'暂无';
-									}
+						this.oldlist = lists
+					}
+				}
+			},
+
+			cliold: async function(e) {
+
+				let times = e[0].label;
+				times = times.split(" 至 ");
+				let startime = times[0];
+				let endtime = times[1];
+				let weekArr = this.getDateStr(startime, endtime, 0);
+
+				let res = await this.$request.post("doctor/getLinsDetail", {
+					'start_date': startime,
+					'end_date': endtime
+				});
+				console.log('老得:', this.oldWeek);
+				console.log('新的', res.data);
+				if (res.status == 0) {
+					if (typeof res.data[0] != undefined && typeof res.data[0] != 'undefined') {
+						let data = res.data;
+						let arr = [];
+						for (let i = 0; i < this.oldWeek.length; i++) {
+							for (let p = 0; p < data.length; p++) {
+								if (this.oldWeek[i].value == data[p].schedule_date) {
+									this.oldWeek[i].morning = data[p].type.zao ? data[p].type.zao : '暂无';
+									this.oldWeek[i].afternoon = data[p].type.xia ? data[p].type.xia : '暂无';
+									this.oldWeek[i].night = data[p].type.wan ? data[p].type.wan : '暂无';
 								}
 							}
-							 
-						}else{
-							for(let i=0;i<this.oldWeek.length;i++){
-								this.oldWeek[i].morning = '暂无';
-								this.oldWeek[i].afternoon ='暂无';
-								this.oldWeek[i].night ='暂无';
-							}
 						}
-						
-						
+
+					} else {
+						for (let i = 0; i < this.oldWeek.length; i++) {
+							this.oldWeek[i].morning = '暂无';
+							this.oldWeek[i].afternoon = '暂无';
+							this.oldWeek[i].night = '暂无';
+						}
 					}
-		
-				},
-			
-			
+
+
+				}
+
+			},
+
 			getDateStr(startDate, endDate, dayLength) {
 				var str = startDate;
-				for (var i = 0 ;; i++) {
+				for (var i = 0;; i++) {
 					var getDate = this.getTargetDate(startDate, dayLength);
 					startDate = getDate;
 					if (getDate <= endDate) {
-						str += ','+getDate;
+						str += ',' + getDate;
 					} else {
 						break;
 					}
 				}
 				let dates = str.split(',');
-				let arr =[];
+				let arr = [];
 				let obj;
-				for(let i=0;i<7;i++){
+				for (let i = 0; i < 7; i++) {
 					obj = {
 						title: this.getweeks(dates[i]),
 						value: dates[i].substring(5),
@@ -378,65 +380,69 @@
 				}
 				this.oldWeek = arr
 			},
-			getweeks(date){
+			getweeks(date) {
 				var weekDay = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
 				var dateStr = date;
 				var myDate = new Date(Date.parse(dateStr.replace(/-/g, "/")));
 				return weekDay[myDate.getDay()]
-				
+
 			},
-			
+
 			// startDate: 开始时间;dayLength:每隔几天,0-代表获取每天,1-代表日期间隔一天
-			getTargetDate(date,dayLength) {
+			getTargetDate(date, dayLength) {
 				dayLength = dayLength + 1;
-			    var tempDate = new Date(date);
-			    tempDate.setDate(tempDate.getDate() + dayLength);
-			    var year = tempDate.getFullYear();
-			    var month = tempDate.getMonth() + 1 < 10 ? "0" + (tempDate.getMonth() + 1) : tempDate.getMonth() + 1;
-			    var day = tempDate.getDate() < 10 ? "0" + tempDate.getDate() : tempDate.getDate();
-			   
+				var tempDate = new Date(date);
+				tempDate.setDate(tempDate.getDate() + dayLength);
+				var year = tempDate.getFullYear();
+				var month = tempDate.getMonth() + 1 < 10 ? "0" + (tempDate.getMonth() + 1) : tempDate.getMonth() + 1;
+				var day = tempDate.getDate() < 10 ? "0" + tempDate.getDate() : tempDate.getDate();
+
 				return year + "-" + month + "-" + day;
 			},
-			
-			
+
 			//点击新增周
-			choiceNew(e){
-				
+			choiceNew(e) {
 				console.log(e)
 				var bData = new Date();
-				bData.setTime(bData.getTime() + 24 * 60 * 60 * 1000 * (8 - bData.getDay()+(7*e[0].value)))
-				for(let i=0;i<7;i++){
-					var week =(bData.getMonth() + 1) + "-" + bData.getDate();
+				bData.setTime(bData.getTime() + 24 * 60 * 60 * 1000 * (8 - bData.getDay() + (7 * e[0].value)))
+				for (let i = 0; i < 7; i++) {
+					var week = (bData.getMonth() + 1) + "-" + bData.getDate();
 					bData.setTime(bData.getTime() + 24 * 60 * 60 * 1000 * 1);
 					this.hospitalWeek[i].value = week
-					this.saveList[i].schedule_date ='2020-'+week
+					this.saveList[i].schedule_date = '2020-' + week
 				}
 				this.getTemplate()
 			},
-			
-			
+
+
 			// 早下晚的点击事件
 			clickMorning(index) {
-				this.position.day = index
-				this.position.time = 1
-				this.hospitalshow = true
+				if (this.fixed) {
+					this.position.day = index
+					this.position.time = 1
+					this.hospitalshow = true
+				}
 			},
 			clickAfternoon(index) {
-				this.position.day = index
-				this.position.time = 2
-				this.hospitalshow = true
+				if (this.fixed) {
+					this.position.day = index
+					this.position.time = 2
+					this.hospitalshow = true
+				}
 			},
 			clicknight(index) {
-				this.position.day = index
-				this.position.time = 3
-				this.hospitalshow = true
+				if (this.fixed) {
+					this.position.day = index
+					this.position.time = 3
+					this.hospitalshow = true
+				}
 			},
 			//医院选择器的确认点击事件
 			confirmhospital(e) {
 				let es = JSON.parse(JSON.stringify(e));
-				
+
 				var lists;
-				 
+
 				if (this.position.time == 1) {
 					this.hospitalWeek[this.position.day].morning = es[0].label
 					this.saveList[this.position.day].identifi.zao = es[0].value;
@@ -449,27 +455,31 @@
 				}
 				this.saveList[this.position.day].organization_id = es[0].value
 				// this.saveList[this.position.day].schedule_date ='2020-'+this.hospitalWeek[this.position.day].value
-				this.position.day='';
-				this.position.time='';
+				this.position.day = '';
+				this.position.time = '';
 				this.hospitalshow = false;
 			},
-			
-	 
+
+
 			//保存
-			bc:async function(e) {
+			bc: async function(e) {
+
 				let that = this;
 				let forms = JSON.stringify(that.saveList);
-				let res = await that.$request.post("doctor/scheduling",{data:forms});
-				if(res.status==0){
+				console.log("forms", that.saveList)
+				let res = await that.$request.post("doctor/scheduling", {
+					data: forms
+				});
+				if (res.status == 0) {
 					uni.showToast({
-						duration:2000,
-						title:'排班成功'
+						duration: 2000,
+						title: '排班成功'
 					})
 				}
-			 
-				// uni.switchTab({
-				// 	url: '/pages/index/index'
-				// })
+
+				uni.switchTab({
+					url: '/pages/index/index'
+				})
 			},
 			//获取时间
 			getTime() {
@@ -490,27 +500,27 @@
 				//直接获取这周五的时间,然后遍历 给选择器
 				var aData = new Date();
 				aData.setTime(aData.getTime() + 24 * 60 * 60 * 1000 * (7 - aData.getDay()))
-				for(let i=0;i<4;i++){
-					aData.setTime(aData.getTime() + 24 * 60 * 60 * 1000 *1)
+				for (let i = 0; i < 4; i++) {
+					aData.setTime(aData.getTime() + 24 * 60 * 60 * 1000 * 1)
 					var week1 = aData.getFullYear() + "." + (aData.getMonth() + 1) + "." + aData.getDate();
-					console.log('第',i+1,'个周一的时间', week1) //周一的时间
+					console.log('第', i + 1, '个周一的时间', week1) //周一的时间
 					//周日
-					aData.setTime(aData.getTime() + 24 * 60 * 60 * 1000 * (aData.getDay()+5))
+					aData.setTime(aData.getTime() + 24 * 60 * 60 * 1000 * (aData.getDay() + 5))
 					var week2 = aData.getFullYear() + "." + (aData.getMonth() + 1) + "." + aData.getDate();
-					console.log('第',i+1,'个周日的时间', week2) //周日的时间
+					console.log('第', i + 1, '个周日的时间', week2) //周日的时间
 					this.list[i].label = week1 + ' - ' + week2 //给选择器数组
 				}
 				//直接获取下周一时间,给表格
 				var bData = new Date();
 				bData.setTime(bData.getTime() + 24 * 60 * 60 * 1000 * (8 - bData.getDay()))
-				for(let i=0;i<7;i++){
-					var week =(bData.getMonth() + 1) + "-" + bData.getDate();
+				for (let i = 0; i < 7; i++) {
+					var week = (bData.getMonth() + 1) + "-" + bData.getDate();
 					bData.setTime(bData.getTime() + 24 * 60 * 60 * 1000 * 1);
 					this.hospitalWeek[i].value = week
-					this.saveList[i].schedule_date ='2020-'+week
+					this.saveList[i].schedule_date = '2020-' + week
 				}
-				
-				 
+
+
 				this.getTemplate()
 
 				//    var date = new Date();
@@ -540,42 +550,45 @@
 				// alert(week)
 				// return currentdate;
 			},
-			
-			getTemplate:async function(){
+
+			getTemplate: async function() {
 				let that = this;
-				let startTime = '2020-'+that.hospitalWeek[0].value;
-				let endTime = '2020-'+that.hospitalWeek[6].value;
-				let res = await that.$request.post("doctor/getLinsDetail",{'start_date':startTime,'end_date':endTime});
-				if(res.status==0){
-					if(typeof res.data[0]!=undefined && typeof res.data[0]!='undefined'){
+				let startTime = '2020-' + that.hospitalWeek[0].value;
+				let endTime = '2020-' + that.hospitalWeek[6].value;
+				let res = await that.$request.post("doctor/getLinsDetail", {
+					'start_date': startTime,
+					'end_date': endTime
+				});
+				if (res.status == 0) {
+					if (typeof res.data[0] != undefined && typeof res.data[0] != 'undefined') {
 						let data = res.data;
-						let arr =[];
-						for(let i=0;i<this.hospitalWeek.length;i++){
-							for(let p=0;p<data.length;p++){
-								if(this.hospitalWeek[i].value==data[p].schedule_date){
-									this.saveList[i].identifi.zao = data[p].type.zao_id?data[p].type.zao_id:false;
-									this.saveList[i].identifi.zhong = data[p].type.xia_id?data[p].type.xia_id:false;
-									this.saveList[i].identifi.wan = data[p].type.wan_id?data[p].type.wan_id:false;
-									this.hospitalWeek[i].morning = data[p].type.zao?data[p].type.zao:'暂无';
-									this.hospitalWeek[i].afternoon =data[p].type.xia?data[p].type.xia:'暂无';
-									this.hospitalWeek[i].night =data[p].type.wan?data[p].type.wan:'暂无';
+						let arr = [];
+						for (let i = 0; i < this.hospitalWeek.length; i++) {
+							for (let p = 0; p < data.length; p++) {
+								if (this.hospitalWeek[i].value == data[p].schedule_date) {
+									this.saveList[i].identifi.zao = data[p].type.zao_id ? data[p].type.zao_id : false;
+									this.saveList[i].identifi.zhong = data[p].type.xia_id ? data[p].type.xia_id : false;
+									this.saveList[i].identifi.wan = data[p].type.wan_id ? data[p].type.wan_id : false;
+									this.hospitalWeek[i].morning = data[p].type.zao ? data[p].type.zao : '暂无';
+									this.hospitalWeek[i].afternoon = data[p].type.xia ? data[p].type.xia : '暂无';
+									this.hospitalWeek[i].night = data[p].type.wan ? data[p].type.wan : '暂无';
 								}
 							}
 						}
-						 
-					}else{
-						for(let i=0;i<this.hospitalWeek.length;i++){
+
+					} else {
+						for (let i = 0; i < this.hospitalWeek.length; i++) {
 							this.saveList[i].identifi.zao = false;
 							this.saveList[i].identifi.zhong = false;
 							this.saveList[i].identifi.wan = false;
 							this.hospitalWeek[i].morning = '';
-							this.hospitalWeek[i].afternoon ='';
-							this.hospitalWeek[i].night ='';
+							this.hospitalWeek[i].afternoon = '';
+							this.hospitalWeek[i].night = '';
 						}
 					}
 				}
-				 
-		 
+
+
 			},
 
 			/**
@@ -583,8 +596,6 @@
 			 */
 			gethospitalList: async function() {
 				let that = this;
-				
-			 
 				let res = await that.$request.post("doctor/organizationList");
 				if (res.status == 0) {
 					that.hospitalList = res.data
@@ -596,6 +607,7 @@
 			this.getTime();
 			this.gethospitalList();
 			this.getOldList();
+			this.cliold()
 			console.log(this.time)
 		},
 	}

+ 7 - 1
pages/index/index.vue

xqd xqd
@@ -179,7 +179,7 @@
 			</view>
 			<view class="cu-tabbar-height"></view>
 		</view>
-		<view class="lianxiwomen">
+		<view class="lianxiwomen" @click="lxwm">
 			<view class="">
 				联系
 			</view>
@@ -675,6 +675,12 @@
 						url: '/pages/login/doctorRenzheng'
 					})
 				}
+			},
+			// 联系我们
+			lxwm(){
+				uni.makePhoneCall({
+				    phoneNumber: '110' //仅为示例
+				});
 			}
 		},
 		//页面到底监听

+ 29 - 0
pages/information/information.vue

xqd xqd xqd xqd
@@ -33,6 +33,15 @@
 				<u-icon name="arrow-right" color="#C0C0C0"></u-icon>
 			</view>
 		</view>
+		<u-gap height="30" bg-color="#e1e1e1"></u-gap>
+		<view style="padding: 36rpx 28rpx;" class="flex align-center justify-around" @click="modalShow=true">
+			<view style="width: 95%;font-size: 28rpx;background-color: ;">退出登录</view>
+			<view class="flex align-center">
+				<u-icon name="arrow-right" color="#C0C0C0"></u-icon>
+			</view>
+		</view>
+		<!-- 弹窗 -->
+		<u-modal v-model="modalShow" content="确定退出登录?" @confirm="edit" :show-cancel-button="true"></u-modal>
 		<!-- 底部按钮 -->
 		<view class="bottomButton" @click="bc">
 			保存
@@ -41,12 +50,15 @@
 </template>
 
 <script>
+	import { mapState, mapMutations, mapGetters, mapActions } from 'vuex';
 	import {
 		imglocal
 	} from '@/common/env';
 	export default {
 			data() {
 				return {
+					//弹窗
+					modalShow:false,
 					//头像数组
 					imgList:[],
 					//头像
@@ -70,6 +82,7 @@
 				this.getInfo();
 			},
 			methods: {
+				...mapMutations(['logout']),
 				getInfo: async function(){
 					let res = await this.$request.get('doctor/doctorInfoEdit')
 					this.imgList.push(res.data.avatar);
@@ -82,6 +95,22 @@
 						url:'modifypassword'
 					})
 				},
+				//退出登录
+				edit(){
+					let that = this
+					
+					setTimeout(function() {
+						uni.showLoading({
+						title: '退出中...'
+					});
+						that.logout ()
+						uni.clearStorage();
+						uni.hideLoading();
+						uni.reLaunch({
+							url:"../login/login"
+						})
+					}, 2000);
+				},
 				//输入框焦点消失事件
 				bindTextAreaBlur({detail}){
 					console.log(detail.value)

+ 2 - 1
pages/opinion/opinion.vue

xqd
@@ -124,7 +124,8 @@
 		height: 100rpx;
 		display: flex;
 		align-items: center;
-		justify-content: center;
+		padding-left: 20rpx;
+		// justify-content: center;
 		background-color: #FFFFFF;
 		z-index: 1;
 	}

+ 5 - 8
pages/patient/patient.vue

xqd xqd xqd
@@ -13,8 +13,8 @@
 						<text style="color: #666666;">{{item.sum}}</text>
 					</view>
 					<!-- 面板内容 -->
-					<!-- <view style="height:auto;overflow:auto;overflow-x:hidden;"> -->
-					<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>
@@ -27,7 +27,7 @@
 		</view>
 		<view v-else>
 			<view v-for="item, index in followList" :key="index">
-				<view style="padding-left: 50rpx;font-weight: bold;font-size: 30rpx;background-color: #EEEEEF;">{{item.title}}</view>
+				<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;" >
 						<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>
@@ -110,13 +110,10 @@
 
 		},
 		onShow() {
-			for (var a = 0; a < this.followList.length; a++) {
-				// console.log(this.followList[a]);
-				this.followList[a].sum = this.followList[a].content.length
-				console.log(this.followList[a].sum)
-			}
 			this.getLists();
+			console.log(this.followList)
 		}
+		
 	}
 </script>
 

+ 17 - 15
pages/patient/patientxq.vue

xqd xqd xqd xqd xqd xqd
@@ -3,7 +3,7 @@
 		<!-- 表单弹窗 -->
 		<u-popup v-model="formshow" mode="center" border-radius="14" :closeable="false">
 			<view style="width: 75vw;height: auto;margin: 30rpx 0;">
-				<view class="flex justify-center align-center" style=";font-size: 34rpx;font-weight: bold;margin-bottom:80rpx ;">填写意见单</view>
+				<view class="flex justify-center align-center" style=";font-size: 34rpx;font-weight: bold;margin-bottom:80rpx ;">修改备注</view>
 				<view style="padding: 0 40rpx;margin-bottom: 40rpx;">
 					<!-- 病症 -->
 					<view class="flex align-center" style="margin-bottom: 20rpx;">
@@ -92,7 +92,7 @@
 						<view style="width: 70%;display: flex;color: #666666;align-items:center;">
 							<!-- 小点 -->
 							<view style="height: 12rpx;width: 12rpx;background-color: #666666;border-radius: 50%;margin: 0 10rpx;"></view>
-							<!-- true为已完成 false未完成 --> 
+							<!-- true为已完成 false未完成 -->
 							<text v-if="ritem.order_status==1">未支付</text>
 							<text v-else-if="ritem.order_status==2">待接单</text>
 							<text v-else-if="ritem.order_status==3">进行中</text>
@@ -106,9 +106,9 @@
 							<u-button size="mini" shape="circle" v-else-if="ritem.product_type == 3">门诊预约</u-button>
 							<u-button size="mini" shape="circle" v-else-if="ritem.product_type == 4">疫苗接种预约</u-button>
 							<u-button size="mini" shape="circle" v-else-if="ritem.product_type == 5">儿保预约</u-button>
-							<u-button size="mini" shape="circle" v-else-if="ritem.product_type == 6">服务包</u-button>	 
+							<u-button size="mini" shape="circle" v-else-if="ritem.product_type == 6">服务包</u-button>
 							<u-button size="mini" shape="circle" v-else>充值</u-button>
-							
+
 						</view>
 					</view>
 					<u-line color="#EFEFEF" />
@@ -276,7 +276,7 @@
 				let res = await this.$request.post("doctor/userListDetile", {
 					user_id: idXq
 				})
-				if(res.status==0){
+				if (res.status == 0) {
 					let user_arr = res.data.user_arr
 					this.user_id = user_arr.id
 					this.img = user_arr.avatar
@@ -288,11 +288,11 @@
 					this.fwb = res.data.nums.fuwu_num;
 					this.dd = res.data.nums.order_num;
 					this.da = res.data.nums.pati_num;
-					
+
 					// tclist渲染服务包
 					this.tclist = res.data.fuwu_arr
 				}
-				
+
 			},
 			getguanzhu: async function(id) {
 				let res = await this.$request.post('doctor/getFollows', {
@@ -306,27 +306,29 @@
 			bzblur(e) {
 				this.inputbz = e.detail.value
 			},
-			qr(e) {
+			qr:async function(e){
 				if (this.inputbz != '') {
-					let res = this.$request.post("doctor/remacks",{
+					let res = this.$request.post("doctor/remacks", {
 						'id': this.user_id,
 						'remak': this.inputbz
 					});
-					if(res.status==0){
+					console.log("res.status",res.resolved)
+					if (res.status == 0) {
 						uni.showToast({
-							title:'设置成功!',
-							icon:"none"
+							title: '设置成功!'
 						})
 						this.formshow = false
+					} else {
+						uni.showToast({
+							title: '设置失败!',
+							icon: "none"
+						})
 					}
-				
 				} else {
 					uni.showToast({
 						title: '请填写备注',
 						icon: 'none'
 					})
-					return false;
-					
 				}
 			}
 		}

+ 10 - 10
pages/service/more.vue

xqd
@@ -576,26 +576,26 @@
 				
 				form: {
 					is_chat: {
-						base_price: "0",
-						service_time: "",
-						person: 0,
+						base_price: "20",
+						service_time: "1",
+						person: 5,
 						type: "2"
 					},
 					is_phone: {
-						base_price: "0",
-						service_time: "",
-						person: 0,
+						base_price: "20",
+						service_time: "1",
+						person: 5,
 						type: "1"
 					},
 					is_appoint: {
-						base_price: "0",
+						base_price: "20",
 						type:"3",
-						person: 0,
+						person: 5,
 						hospitals:[{
-							service_time: "",
+							service_time: "1",
 							relation_id: 0
 						},{
-							service_time: "",
+							service_time: "1",
 							relation_id: 0
 						}]
 					},