Browse Source

修改链接

zs 1 year ago
parent
commit
30a359c6a8

+ 8 - 1
pagesHome/friend/index.vue

@@ -73,7 +73,9 @@
 				isRecorder: false, // 是否处于语音状态
 				bgAudioManager: '', // 全局音频播放
 				poaMessgae: 'poaMessgae', //滚动到最底部
-				client: '' //实时通信
+				//实时通信
+				client: null,
+				subscription: null
 			}
 		},
 		onLoad: async function(e) {
@@ -88,6 +90,7 @@
 			that.record = uni.getRecorderManager();
 			await that.searchToken();
 			await that.searchConfig();
+			await that.searchOther();
 			await that.search();
 			// 滚动到最底部
 			that.poalast()
@@ -332,6 +335,10 @@
 					}, 50)
 				})
 			},
+			// 处理已读未读
+			searchOther() {
+				const that = this
+			},
 		}
 	}
 </script>

File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/friend/index.js.map


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

@@ -261,10 +261,11 @@ var _default = {
       // 全局音频播放
       poaMessgae: 'poaMessgae',
       //滚动到最底部
-      client: '' //实时通信
+      //实时通信
+      client: null,
+      subscription: null
     };
   },
-
   onLoad: function () {
     var _onLoad = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
       var that;
@@ -288,13 +289,16 @@ var _default = {
               return that.searchConfig();
             case 10:
               _context.next = 12;
-              return that.search();
+              return that.searchOther();
             case 12:
+              _context.next = 14;
+              return that.search();
+            case 14:
               // 滚动到最底部
               that.poalast();
               // stomp协议请求 实时链接
               that.initWS();
-            case 14:
+            case 16:
             case "end":
               return _context.stop();
           }
@@ -568,6 +572,10 @@ var _default = {
           that.$set(that, "poaMessgae", 'poaMessgae');
         }, 50);
       });
+    },
+    // 处理已读未读
+    searchOther: function searchOther() {
+      var that = this;
     }
   }
 };