Przeglądaj źródła

ltb2020年11月27日11:42:16
跑一遍流程,整理问题文档
修改一些页面细节

老狐\25396 4 lat temu
rodzic
commit
dfaa53a2da

+ 21 - 10
pages/Scheduling.vue

xqd xqd xqd xqd
@@ -126,6 +126,7 @@
 			保存
 		</view>
 		<u-modal v-model="modalShow" content="保存后不可修改,确定保存?" @confirm="bc" :show-cancel-button="true"></u-modal>
+		<u-modal v-model="remindshow" content="这天是法定节假日,确定要排班吗?" @confirm="remindshow=remind=false" :show-cancel-button="true"></u-modal>
 	</view>
 </template>
 
@@ -134,7 +135,7 @@
 		data() {
 			return {
 				//已经保存?
-				fixed: false,
+				fixed: true,
 				//弹窗
 				modalShow: false,
 				//切换历史和新增
@@ -291,6 +292,9 @@
 					day: '',
 					time: '' //1早2下3晚
 				},
+				//选择排班提醒
+				remind:true,
+				remindshow:false
 			}
 		},
 		methods: {
@@ -418,25 +422,32 @@
 			// 早下晚的点击事件
 			clickMorning(index) {
 				if (this.fixed) {
-					this.position.day = index
-					this.position.time = 1
-					this.hospitalshow = true
+					this.festival(index,1)
+					
 				}
 			},
 			clickAfternoon(index) {
 				if (this.fixed) {
-					this.position.day = index
-					this.position.time = 2
-					this.hospitalshow = true
+					this.festival(index,2)
+					
 				}
 			},
 			clicknight(index) {
 				if (this.fixed) {
-					this.position.day = index
-					this.position.time = 3
-					this.hospitalshow = true
+					this.festival(index,3)
+					
 				}
 			},
+			//提示是节假日,每次进入页面只会提示一次
+			festival(day,time){
+				if(day>4&&this.remind){
+					this.remindshow = true
+					
+				}
+				this.position.day = day
+				this.position.time = time
+				this.hospitalshow = true
+			},
 			//医院选择器的确认点击事件
 			confirmhospital(e) {
 				let es = JSON.parse(JSON.stringify(e));

+ 14 - 11
pages/conversation/conversation.vue

xqd xqd xqd xqd
@@ -1,13 +1,13 @@
 <template>
 	<view class="main">
 		<view class="padding-lr-sm">
-			<u-search placeholder="请输入搜索用户姓名" v-if="qiehuan == true" action-text="通话记录" @custom="tonghua" :action-style="{width:'110rpx'}"
-			 v-model="keyword"></u-search>
-			<u-search placeholder="请输入搜索用户姓名" v-if="qiehuan == false" action-text="聊天列表" @custom="tonghua" :action-style="{width:'110rpx'}"
-			 v-model="keyword"></u-search>
+			<u-search placeholder="请输入搜索用户姓名" v-if="qiehuan" action-text="通话记录" @custom="tonghua" :action-style="{width:'110rpx'}"
+			 v-model="keyword" @search="search"></u-search>
+			<u-search placeholder="请输入搜索用户姓名" v-else action-text="聊天列表" @custom="tonghua" :action-style="{width:'110rpx'}"
+			 v-model="keyword" @search="search"></u-search>
 		</view>
 		<!-- 这是聊天列表 当值为true时显示-->
-		<view class="cu-list menu-avatar margin-top-xs" v-if="qiehuan == true">
+		<view class="cu-list menu-avatar margin-top-xs" v-if="qiehuan">
 			<view class="cu-item u-border-bottom" v-for="(item,index) in list" :key="index" @click="goliaotian(index)">
 				<view class="cu-avatar radius lg" :style="'background-image:url('+item.avatar+');'">
 					<view class="cu-tag badge">10</view>
@@ -25,9 +25,10 @@
 					<view class="text-grey text-xs">22:20</view>
 				</view>
 			</view>
+			<u-empty text="暂无数据" :show="list.length==0?true:false" mode="order" margin-top="250"></u-empty>
 		</view>
 		<!-- 这是通话记录 当值为false1时显示 -->
-		<view class="cu-list menu-avatar margin-top-xs" v-if="qiehuan == false" @click="call">
+		<view class="cu-list menu-avatar margin-top-xs" v-else @click="call">
 			<view class="cu-item u-border-bottom" v-for="(item,index) in listPhone" :key="index" @click="call">
 				<view class="cu-avatar radius lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/img/champion/Taric.png);border-radius: 50%;">
 					<view class="cu-tag badge">10</view>
@@ -39,7 +40,9 @@
 					</view>
 				</view>
 			</view>
+			<u-empty text="暂无数据" :show="listPhone.length==0?true:false" mode="order" margin-top="250"></u-empty>
 		</view>
+		
 	</view>
 </template>
 
@@ -98,14 +101,14 @@
 			}
 		},
 		methods: {
+			//搜索
+			search(e){
+				console.log(e)//输入框的值
+			},
 		 
 			tonghua() {
 				console.log("点击了通话记录");
-				if (this.qiehuan) {
-					this.qiehuan = false
-				} else {
-					this.qiehuan = true
-				}
+					this.qiehuan = !this.qiehuan
 			},
 			goliaotian(e) {
 				let data = this.list[e];

+ 4 - 0
pages/menzhen/menzhen.vue

xqd xqd
@@ -67,6 +67,7 @@
 			</view>
 		</view>
 	<view style="width: 100%;height: 100rpx;"></view>
+	<u-empty text="暂无数据" :show="list.length>0?false:true" mode="order" margin-top="250"></u-empty>
 	</view>
 </template>
 
@@ -77,9 +78,12 @@
 		// },
 		onShow(e){
 			this.getLists(this.num,this.value1,this.value2)
+			
 		},
 		data() {
 			return {
+				//暂无数据
+				show:false,
 				value1: 0,
 				value2: 0,
 				options1: [{

+ 4 - 2
pages/opinion/opinion.vue

xqd xqd xqd
@@ -6,12 +6,12 @@
 			<!-- 正序 -->
 			<view v-if="sort" @click="timeSort">
 				<text style="margin-right: 20rpx;">时间正序</text>
-				<u-icon name="arrow-down-fill" color="#3b9bff"></u-icon>
+				<u-icon name="arrow-down"></u-icon>
 			</view>
 			<!-- 倒序 -->
 			<view v-else @click="timeSort">
 				<text style="margin-right: 20rpx;">时间倒序</text>
-				<u-icon name="arrow-up-fill" color="#3b9bff"></u-icon>
+				<u-icon name="arrow-up"></u-icon>
 			</view>
 		</view>
 		<view style="width: 100%;height: 100rpx;"></view>
@@ -46,6 +46,7 @@
 				<view style="padding: 8rpx 16rpx;border-radius: 20rpx;background-color:#eaeaea ;height: 50rpx;color: b1b1b1;" class="flex justify-center align-center">意见单</view>
 			</view>
 		</view>
+		<u-empty text="暂无数据" :show="list.length==0" mode="order" margin-top="250"></u-empty>
 		<view style="width: 100%;height: 100rpx;"></view>
 	</view>
 </template>
@@ -60,6 +61,7 @@
 		},
 		data() {
 			return {
+				
 				//排序
 				sort: true,
 				//列表

+ 2 - 4
pages/patient/patient.vue

xqd
@@ -30,16 +30,14 @@
 		<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' v-if="citem.nickname.indexOf(keywordSearch)>=0">
+					<view  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>

+ 7 - 2
pages/patient/patientxq.vue

xqd xqd
@@ -170,7 +170,7 @@
 		<!-- 按钮 -->
 		<view class="bottomButton">
 			<view class="b">
-				<u-button shape="circle" :custom-style="bStyle">电话随访</u-button>
+				<u-button shape="circle" :custom-style="bStyle" @click="phone">电话随访</u-button>
 			</view>
 			<view class="b">
 				<u-button shape="circle" :custom-style="btStyle" v-if="!guanzhu" @click="gzclick">关注</u-button>
@@ -247,7 +247,12 @@
 
 		},
 		methods: {
-
+			phone(){
+				//打电话
+				
+				
+				
+			},
 			//点击档案
 			clickda(e) {
 				console.log(this.dalist[e.currentTarget.dataset.index])

+ 8 - 1
pages/service/more.vue

xqd xqd
@@ -670,7 +670,7 @@
 				}
 				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
+						that.form.is_chat.service_time = that.form.is_chat.service_time + "," + that.tw.timeList3[i].id
 					}
 				}
 				//判断开头第一个是否为逗号,是就删除逗号
@@ -753,6 +753,13 @@
 					})
 				}
 				console.log('res对象:', res);
+				// 延迟2秒
+				setTimeout(function () {
+				    uni.switchTab({
+					url:'../index/index'
+				})
+				}, 2000);
+				
 			},
 			/**
 			 * @author Liu Yuanhang

+ 1 - 0
pages/zixun/xiangqing.vue

xqd
@@ -414,6 +414,7 @@
 									}
 								})
 							}
+							this.zt=  4
 
 						} else {
 							uni.showToast({