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

1 line
13 KiB
JSON
Raw Normal View History

2024-01-18 10:46:33 +08:00
{"ast":null,"code":"// 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 // 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 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 //