Sfoglia il codice sorgente

修复已读功能

刘远航 4 anni fa
parent
commit
1666e7706b
2 ha cambiato i file con 16 aggiunte e 4 eliminazioni
  1. 14 1
      pages/index/index.vue
  2. 2 3
      pages/opinion/opiniondetails.vue

+ 14 - 1
pages/index/index.vue

xqd xqd xqd xqd
@@ -308,6 +308,7 @@
 				console.log('认证', this.docterInfo.is_then)
 			},
 			getDocterMessage: async function() {
+ 
 				let res = await this.$request.post("docterMessage/docterMessageList", {
 					curPage: this.page,
 					pageSize: 10
@@ -411,6 +412,9 @@
 			 * @param {Object} e
 			 */
 			navt(e) {
+				
+				 this.readTong(e.id);
+				 e.status=2;
 				// 1.确认接单通知 2.订单逾期通知 3.订单完成通知 4.评价通知 5.服务包通知 
 				// 6.社区端发送的通知 7.总后台发送的通知,8.认证申请通知,9.认证结果通知,
 				// 10服务开通通知,11。服务开通结果通知,12,提醒排班,13.排班通知
@@ -482,6 +486,7 @@
 					})
 				} else if (e.type == 6) {
 					// 6.社区端发送的通知
+					
 					uni.showModal({
 						title: "社区通知",
 						content: e.content,
@@ -529,21 +534,29 @@
 						confirmText: "知道了",
 						showCancel: false,
 					})
+					
 				} else if (e.type == 12) {
 					// 12,提醒排班 跳转到排班
 					uni.navigateTo({
 						url: '/pages/Scheduling'
 					})
-
+				 
 				} else if (e.type == 13) {
 					// 13.排班通知 跳转到排班
 					uni.navigateTo({
 						url: '/pages/Scheduling'
 					})
+			 
 				}
 				return false;
 				console.log(e);
 			},
+			
+			readTong:async function(id){
+				let res = this.$request.post("docterMessage/readOk",{'id':id});
+				this.getDocterMessage()
+				console.log(res);
+			},
 			//如果点击模块   需要判断认证
 			judgerenzheng: function() {
 				if (!this.hasLogin) {

+ 2 - 3
pages/opinion/opiniondetails.vue

xqd xqd
@@ -180,6 +180,7 @@
 			yyblur(e){
 				this.yy = e.detail.value
 			},
+			
 			jlblur(e){
 				this.jl = e.detail.value
 			},
@@ -193,10 +194,8 @@
 									icon:'none'
 								})
 								this.formshow = false
-								setTimeout(function() {
+								 
 									this.getDetaile(this.sugg_id);
-								}, 2000)
-								
 							}else{
 								uni.showToast({
 									title:res.message,