1
0
lsw 2 nedēļas atpakaļ
vecāks
revīzija
cf893c42bf

+ 2 - 2
app/pages/follow/detail.vue

@@ -3,8 +3,8 @@
 		<view class="desc">
 			<view class="item">所在科室:{{ item.deptName }}</view>
 			<view class="item">推送医生:{{ item.doctorName }}</view>
-			<view class="item">推送日期:{{ item.createTime }}</view>
-			<view class="item">回访日期:{{ item.returnTime }}</view>
+			<view class="item">推送日期:{{ item.createTime || '' }}</view>
+			<view class="item">回访日期:{{ item.returnTime || '' }}</view>
 		</view>
 		<u-divider text="随访内容"></u-divider>
 		<view class="item" v-for="(item, index) in item.op" :key="item.name">

+ 17 - 6
app/pages/index/index.vue

@@ -11,7 +11,7 @@
 				<view class="out">
 					<view class="int" style="height: 170px; background-color: #e8f3fe">
 						<image src="https://chenglantimes.com/prod-api/profile/upload/2024/08/23/1724382299288.jpg" mode="widthFix"></image>
-						<view class="title" style="color: #8fb5d7;">
+						<view class="title" style="color: #8fb5d7">
 							<view>医生团队</view>
 							<view class="desc">权威团队会诊</view>
 						</view>
@@ -22,7 +22,7 @@
 				<view class="out" @click="go('/pages/department/index')">
 					<view class="int" style="height: 65px; background-color: rgb(239 248 255)">
 						<view class="icon" style="color: #88a8d5">&#xe630;</view>
-						<view class="title" style="color: #88a8d5;">
+						<view class="title" style="color: #88a8d5">
 							<view>科室介绍</view>
 							<view class="desc">众多先进设备</view>
 						</view>
@@ -32,16 +32,16 @@
 					<view class="int" style="height: 65px; background-color: #f6f4fe">
 						<view class="icon" style="color: #cdccfe">&#xec7d;</view>
 						<view class="title"></view>
-						<view class="title" style="color: #a294e2;">
+						<view class="title" style="color: #a294e2">
 							<view>医院指南</view>
-							<view class="desc" style="color: #a294e2;">医院简介</view>
+							<view class="desc" style="color: #a294e2">医院简介</view>
 						</view>
 					</view>
 				</view>
 			</view>
 		</view>
 		<!--健康知识-->
-		<view class="tg" @click="go('/pages/follow/index', true)">
+		<view class="tg" @click="tb('/pages/follow/index')">
 			<image src="https://chenglantimes.com/prod-api/profile/upload/2024/07/27/1722076102395.jpg" mode="widthFix"></image>
 			<view class="tit">
 				<view>患者随访</view>
@@ -126,6 +126,17 @@ export default {
 			} else {
 				uni.navigateTo({ url: url });
 			}
+		},
+		tb(url) {
+			if (this.hasLogin()) {
+				if (this.getUser().userId) {
+					uni.navigateTo({ url: '/pages/follow/doctor/index?type=1' });
+				} else {
+					uni.navigateTo({ url: url });
+				}
+			} else {
+				uni.navigateTo({ url: '/pages/user/login' });
+			}
 		}
 	}
 };
@@ -137,7 +148,7 @@ page {
 }
 .banner {
 	width: 100%;
-	height:140px;
+	height: 140px;
 	border-radius: 7px;
 }
 .notice {

+ 1 - 4
app/pages/visit/doctor/list.vue

@@ -40,9 +40,7 @@ export default {
 			startTime: null,
 			endTime: null,
 			list: [],
-			param: {
-				cardId: null
-			},
+			param: {},
 			calendar: false,
 			user: {}
 		};
@@ -63,7 +61,6 @@ export default {
 							url: '/app/user/bind/change/' + n.id,
 							success: (res) => {
 								this.param.patientName = n.patientName;
-								this.param.cardId = n.cardId;
 								this.closePopup();
 								this.refresh();
 							}