lsw hai 2 meses
pai
achega
e8d4943611
Modificáronse 3 ficheiros con 18 adicións e 6 borrados
  1. 4 3
      app/pages/follow/detail.vue
  2. 2 2
      app/pages/follow/doctor/index.vue
  3. 12 1
      app/pages/user/index.vue

+ 4 - 3
app/pages/follow/detail.vue

@@ -1,9 +1,10 @@
 <template>
 	<view class="main">
 		<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.deptName }}</view>
+			<view class="item">推送医生:{{ item.doctorName }}</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">

+ 2 - 2
app/pages/follow/doctor/index.vue

@@ -12,8 +12,8 @@
 				<view class="desc">
 					<text>{{ item.patientName }}</text>
 					<text>{{ item.createTime }}</text>
-					<text class="del" @click.stop="del(item, index)">删除</text>
-					<text class="edit" @click.stop="go('/pages/follow/doctor/add?id=' + item.id + ' &patientName=' + item.patientName)">编辑</text>
+					<text class="del" @click.stop="del(item, index)" v-if="item.state == 0">删除</text>
+					<text class="edit" @click.stop="go('/pages/follow/doctor/add?id=' + item.id + ' &patientName=' + item.patientName)" v-if="item.state == 0">编辑</text>
 					<text class="icon state" :style="{ color: item.state == 0 ? '#b5b5b5' : '#4CAF50' }" v-if="param.type == 1">&#xe830;{{ item.state == 0 ? '待回访' : '已回访' }}</text>
 					<text class="icon state" :style="{ color: item.state == 0 ? '#b5b5b5' : '#4CAF50' }" v-else>&#xe830;{{ item.state == 0 ? '消息未读' : '已读' }}</text>
 				</view>

+ 12 - 1
app/pages/user/index.vue

@@ -102,6 +102,7 @@ export default {
 	data() {
 		return {
 			ip: this.http.ip,
+			patientId: '',
 			user: {},
 			show: false
 		};
@@ -116,6 +117,16 @@ export default {
 			this.getUserInfo();
 		}
 	},
+	onLoad(e) {
+		if (e.patientId) {
+			this.http.request({
+				url: '/app/user/bind/change/' + e.patientId,
+				success: (res) => {
+					this.getUserInfo();
+				}
+			});
+		}
+	},
 	methods: {
 		getUserInfo() {
 			this.http.request({
@@ -139,7 +150,7 @@ export default {
 					if (res.confirm) {
 						//通知模板订阅消息
 						uni.requestSubscribeMessage({
-							tmplIds: ['1Jvx8F22na-tG2Q6HFX_3vRtbiv7zZko6NwX8ICIFXc','S6JARkInVBjID8QMpgZdSHNyxeMDZQq7lur8YrNK0oY'],
+							tmplIds: ['1Jvx8F22na-tG2Q6HFX_3vRtbiv7zZko6NwX8ICIFXc', 'S6JARkInVBjID8QMpgZdSHNyxeMDZQq7lur8YrNK0oY'],
 							complete: (c) => {
 								this.http.request({
 									url: '/app/user/bind/change/' + e.id,