Files
Arbitrate-FrontendH5/node_modules/.cache/babel-loader/f5347aaa4de6a1f23e276fdc431806153263fdce8accae018dfc150f79bbb962.json
T

1 line
14 KiB
JSON
Raw Normal View History

2024-01-18 10:46:33 +08:00
{"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'\nconst trtc = TRTC.create();\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 };\n },\n methods: {\n async enterRoom() {\n this.$router.push({\n name: 'Room',\n query: {\n userId: this.formLabelAlign.userId,\n roomId: '991123'\n }\n });\n // const userSig = \"eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwhnJSVDh4pTsxIKCzBQlK0MzAwMDQ0NDM3OITGpFQWZRKlDc1NTUCCgFES3JzAWJmRsYmBqbGhmaQU3JTAeammccEOWU4*dnmu5eHG7om5cTbhajn*LslpGamJJvWFTsZlZe4h3gG*qYWBppq1QLAMYCMOU_\";\n // const userId = \"hcb\";\n // const sdkAppId = 1600011167;\n // try {\n // await trtc.enterRoom({ roomId: 991123, scene: 'rtc', sdkAppId, userId, userSig });\n // await trtc.startLocalVideo({\n // view: document.getElementById('video'), // 在 DOM 中的 elementId 为 localVideo 的标签上预览视频。\n // });\n // console.log('进房成功');\n // } catch (error) {\n // console.error('进房失败 ' + error);\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, \"tabletabletablet