ソースを参照

修改聊天记录显示

zs 1 年間 前
コミット
0870352b7d

+ 3 - 3
pagesHome/friend/index.vue

@@ -448,12 +448,12 @@
 					});
 				}
 				// 处理已读未读
-				res = await that.$api(`/chat/allRead`, 'GET', {
-					speaker: that.user._id,
+				const info = {
 					group: that.groupId,
 					patient: that.patientId,
 					doctor: that.doctorId,
-				})
+				}
+				res = await that.$api(`/chat/allRead`, 'GET', info)
 				if (res.errcode == '0') {} else {
 					uni.showToast({
 						title: res.errmsg,

ファイルの差分が大きいため隠しています
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/friend/index.js.map


+ 7 - 7
unpackage/dist/dev/mp-weixin/pagesHome/friend/index.js

@@ -672,7 +672,7 @@ var _default = {
     searchOther: function searchOther() {
       var _this3 = this;
       return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
-        var that, res;
+        var that, res, info;
         return _regenerator.default.wrap(function _callee5$(_context5) {
           while (1) {
             switch (_context5.prev = _context5.next) {
@@ -691,14 +691,14 @@ var _default = {
                   });
                 }
                 // 处理已读未读
-                _context5.next = 7;
-                return that.$api("/chat/allRead", 'GET', {
-                  speaker: that.user._id,
+                info = {
                   group: that.groupId,
                   patient: that.patientId,
                   doctor: that.doctorId
-                });
-              case 7:
+                };
+                _context5.next = 8;
+                return that.$api("/chat/allRead", 'GET', info);
+              case 8:
                 res = _context5.sent;
                 if (res.errcode == '0') {} else {
                   uni.showToast({
@@ -706,7 +706,7 @@ var _default = {
                     icon: 'none'
                   });
                 }
-              case 9:
+              case 10:
               case "end":
                 return _context5.stop();
             }