xialei hace 1 año
padre
commit
c34ca9424b
Se han modificado 2 ficheros con 35 adiciones y 35 borrados
  1. 34 34
      src/libs/notice.js
  2. 1 1
      src/views/login/index.vue

+ 34 - 34
src/libs/notice.js

@@ -18,40 +18,40 @@ function createWebScoket(token) {
18 18
 }
19 19
 
20 20
 function notice(token) {
21
-  const ws = createWebScoket(token)
22
-  const vm = new Vue()
23
-  let ping
24
-
25
-  function send(type, data) {
26
-    ws.send(JSON.stringify({ type, data }))
27
-  }
28
-
29
-  ws.onopen = function() {
30
-    vm.$emit('open')
31
-    ping = setInterval(function() {
32
-      send('ping')
33
-    }, 10000)
34
-  }
35
-
36
-  ws.onmessage = function(res) {
37
-    vm.$emit('message', res)
38
-    const data = JSON.parse(res.data)
39
-    if (data.status === 200) {
40
-      vm.$emit(data.data.status, data.data.result)
41
-    }
42
-    console.log(res)
43
-  }
44
-  ws.onclose = function(e) {
45
-    vm.$emit('close', e)
46
-    console.log('on close')
47
-    clearInterval(ping)
48
-  }
49
-
50
-  bindEvent(vm)
51
-
52
-  return function() {
53
-    ws.close()
54
-  }
21
+  // const ws = createWebScoket(token)
22
+  // const vm = new Vue()
23
+  // let ping
24
+
25
+  // function send(type, data) {
26
+  //   ws.send(JSON.stringify({ type, data }))
27
+  // }
28
+
29
+  // ws.onopen = function() {
30
+  //   vm.$emit('open')
31
+  //   ping = setInterval(function() {
32
+  //     send('ping')
33
+  //   }, 10000)
34
+  // }
35
+
36
+  // ws.onmessage = function(res) {
37
+  //   vm.$emit('message', res)
38
+  //   const data = JSON.parse(res.data)
39
+  //   if (data.status === 200) {
40
+  //     vm.$emit(data.data.status, data.data.result)
41
+  //   }
42
+  //   console.log(res)
43
+  // }
44
+  // ws.onclose = function(e) {
45
+  //   vm.$emit('close', e)
46
+  //   console.log('on close')
47
+  //   clearInterval(ping)
48
+  // }
49
+
50
+  // bindEvent(vm)
51
+
52
+  // return function() {
53
+  //   ws.close()
54
+  // }
55 55
 }
56 56
 
57 57
 export default notice

+ 1 - 1
src/views/login/index.vue

@@ -210,7 +210,7 @@ export default {
210 210
   methods: {
211 211
     getInfo() {
212 212
       loginConfigApi().then(({ data }) => {
213
-        data.login_banner[0].pic = 'https://cdn.bjtdba.com/vod/image/2024-04-13/20240413005952459.jpg'
213
+        data.login_banner[0].pic = 'https://cdn.bjtdba.com/vod/image/2025-02-02/20250202135218800.jpg'
214 214
         this.swiperList = data.login_banner
215 215
         
216 216