|
@@ -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();
|
|
|
}
|