Ver código fonte

移动端优化

18792927508 2 anos atrás
pai
commit
c098116879
4 arquivos alterados com 13 adições e 15 exclusões
  1. 0
    1
      dist/css/app.b59bb92e.css
  2. 1
    1
      dist/index.html
  3. 12
    12
      src/components/homeh5.vue
  4. 0
    1
      src/views/room.vue

+ 0
- 1
dist/css/app.b59bb92e.css Ver arquivo

1
-*{margin:0;padding:0}#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50}

+ 1
- 1
dist/index.html Ver arquivo

1
-<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>nouiroom</title><script defer="defer" src="/js/chunk-vendors.5307e452.js"></script><script defer="defer" src="/js/app.f09cb758.js"></script><link href="/css/chunk-vendors.10dd4e95.css" rel="stylesheet"><link href="/css/app.b59bb92e.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but nouiroom doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
1
+<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>nouiroom</title><script defer="defer" src="/js/chunk-vendors.8e75e7c3.js"></script><script defer="defer" src="/js/app.76b4be16.js"></script><link href="/css/chunk-vendors.10dd4e95.css" rel="stylesheet"><link href="/css/app.ff48263a.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but nouiroom doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

+ 12
- 12
src/components/homeh5.vue Ver arquivo

35
   },
35
   },
36
   methods: {
36
   methods: {
37
     async enterRoom() {
37
     async enterRoom() {
38
-      if (this.roomId != this.enterRoomFrom.roomId) {
39
-        this.$message({
40
-          message: "房间号不是对应案件的房间号",
41
-          type: "error"
42
-        });
43
-        return;
44
-      }
38
+      // if (this.roomId != this.enterRoomFrom.roomId) {
39
+      //     this.$message({
40
+      //         message: "房间号不是对应案件的房间号",
41
+      //         type: 'error'
42
+      //     });
43
+      //     return
44
+      // }
45
       this.$router.push({
45
       this.$router.push({
46
         name: "Room",
46
         name: "Room",
47
         query: {
47
         query: {
48
           userId: this.userId,
48
           userId: this.userId,
49
-          roomId: this.enterRoomFrom.roomId,
49
+          roomId: this.roomId,
50
           flag: this.roleFlag,
50
           flag: this.roleFlag,
51
-          caseId: this.caseId
51
+          caseId: this.caseId,
52
+          id: this.userCode
52
         }
53
         }
53
       });
54
       });
54
     },
55
     },
58
     // 根据案件id查询主持人信息
59
     // 根据案件id查询主持人信息
59
     async reserveConferenceListFn(data) {
60
     async reserveConferenceListFn(data) {
60
       await reserveConferenceList(data).then(res => {
61
       await reserveConferenceList(data).then(res => {
61
-        if (res.data.length > 1) {
62
+        if (res.data.length >= 1) {
62
           if (this.userCode == res.data[0].userId) {
63
           if (this.userCode == res.data[0].userId) {
63
             this.roleFlag = true;
64
             this.roleFlag = true;
64
           } else {
65
           } else {
65
             this.roleFlag = false;
66
             this.roleFlag = false;
66
           }
67
           }
67
-        } else {
68
+        }else{
68
           this.roleFlag = false;
69
           this.roleFlag = false;
69
         }
70
         }
70
       });
71
       });
76
     this.roomId = routeParams.roomId;
77
     this.roomId = routeParams.roomId;
77
     this.userCode = routeParams.userId;
78
     this.userCode = routeParams.userId;
78
     this.caseId = routeParams.id;
79
     this.caseId = routeParams.id;
79
-    sessionStorage.setItem('type',appType);
80
     if (this.caseId) {
80
     if (this.caseId) {
81
       await this.reserveConferenceListFn(this.caseId);
81
       await this.reserveConferenceListFn(this.caseId);
82
       await this.enterRoom();
82
       await this.enterRoom();

+ 0
- 1
src/views/room.vue Ver arquivo

286
             needvad: 1,
286
             needvad: 1,
287
             audioTrack: trtc.getAudioTrack(),
287
             audioTrack: trtc.getAudioTrack(),
288
         });
288
         });
289
-        console.log(trtc.getAudioTrack('zhongcaibai'),);
290
         this.localStreamAsr.start();
289
         this.localStreamAsr.start();
291
         // 开始识别
290
         // 开始识别
292
         this.localStreamAsr.OnRecognitionStart = (res) => {
291
         this.localStreamAsr.OnRecognitionStart = (res) => {