1 line
12 KiB
JSON
1 line
12 KiB
JSON
{"ast":null,"code":"import \"core-js/modules/es.array.push.js\";\n// import moment from 'moment';\nimport TRTC from 'trtc-sdk-v5';\n// import { getRoomId } from '@/api/home'\nlet trtc = null;\nexport default {\n name: 'App',\n data() {\n return {\n formLabelAlign: {},\n enterRoomFrom: {},\n rules: {\n startTime: [{\n required: true,\n message: \"请选择开始时间\",\n trigger: \"blur\"\n }],\n endTime: [{\n required: true,\n message: \"请选择结束时间\",\n trigger: \"blur\"\n }]\n },\n trtc: null\n };\n },\n methods: {\n async enterRoom() {\n this.$router.push({\n name: 'Room',\n query: {\n userId: this.formLabelAlign.userId,\n roomId: this.enterRoomFrom.roomId\n }\n });\n },\n submitRoom() {\n // this.$refs[\"formLabelAlign\"].validate((valid) => {\n // if (valid) {\n // this.formLabelAlign.startTime = moment(\n // this.formLabelAlign.startTime\n // ).format(\"YYYY-MM-DD HH:mm:ss\");\n // this.formLabelAlign.endTime = moment(\n // this.formLabelAlign.endTime\n // ).format(\"YYYY-MM-DD HH:mm:ss\");\n // axios({\n // method: \"post\",\n // url: `https://api.xayunmei.com/zhongcaiapi/caseApplication/reservedConference`,\n // data: {\n // // caseId: this.$route.query.id,\n // caseId: '140',\n // // ownerId: this.userId,\n // ownerId: 'hcb',\n // roomId: '991123',\n // scheduleStartTime: this.formLabelAlign.startTime,\n // scheduleEndTime: this.formLabelAlign.endTime\n // }\n // }).then(res => {\n // if (res.data.code == 200) {\n // this.$message({\n // message: '预约成功',\n // type: 'success'\n // });\n // // axios({\n // // method: \"post\",\n // // url: \"https://api.xayunmei.com/zhongcaiapi/caseApplication/sendRoomNoMessage\",\n // // data: {\n // // id: this.caseId,\n // // roomNo: this.roomidForm2.roomId2,\n // // scheduleStartTime: this.roomidForm2.timer[0],\n // // scheduleEndTime: this.roomidForm2.timer[1]\n // // }\n // // }).then(res => {\n // // console.log(res);\n // // // this.data = res.data /* 将拿到的值,赋值给data */\n // // })\n // // axios({\n // // method: \"get\",\n // // url: `https://api.xayunmei.com/zhongcaiapi/caseApplication/reserveConferenceList?caseId=${this.$route.query.id}`,\n // // }).then(res => {\n // // // this.userName = res.data.data.userName;\n // // console.log(res, \"tabletabletabletabletabletabletabletabletabletabletabletabletabletable\");\n // // this.tableData = res.data.data;\n // // })\n // } else {\n // this.$message({\n // message: res.data.msg,\n // type: 'error'\n // });\n // }\n // })\n // }\n // })\n }\n },\n async mounted() {\n trtc = TRTC.create();\n const config = {\n view: document.getElementById('video'),\n publish: false\n };\n // await trtc.startLocalVideo(config);\n // getRoomId('1396').then(res=>{\n // console.log(res,\"Ppppppppppppppp\
|