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

1 line
5.8 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\";\nimport { reserveConferenceList } from '@/api/home.js';\nimport TRTC from 'trtc-sdk-v5';\nlet trtc = null;\nexport default {\n name: 'App',\n data() {\n return {\n formLabelAlign: {},\n enterRoomFrom: {},\n trtc: null,\n userId: null\n };\n },\n methods: {\n async enterRoom() {\n if (this.roomId != this.enterRoomFrom.roomId) {\n this.$message({\n message: \"房间号不是对应的房间号\",\n type: 'error'\n });\n return;\n }\n await this.$router.push({\n name: 'Room',\n query: {\n userId: this.userId,\n roomId: this.enterRoomFrom.roomId\n }\n });\n },\n submitRoom() {\n this.$refs[\"formLabelAlign\"].validate(valid => {});\n },\n // 根据案件id查询主持人信息\n async reserveConferenceListFn(data) {\n reserveConferenceList(data).then(res => {\n console.log(res, \"oooooooooooo\");\n });\n }\n },\n async mounted() {\n let routeParams = this.$route.query;\n this.userId = routeParams.name;\n this.roomId = routeParams.roomId;\n this.userCode = routeParams.userId;\n trtc = TRTC.create();\n const config = {\n view: document.getElementById('video'),\n publish: false\n };\n await trtc.startLocalVideo(config);\n }\n};","map":{"version":3,"names":["reserveConferenceList","TRTC","trtc","name","data","formLabelAlign","enterRoomFrom","userId","methods","enterRoom","roomId","$message","message","type","$router","push","query","submitRoom","$refs","validate","valid","reserveConferenceListFn","then","res","console","log","mounted","routeParams","$route","userCode","create","config","view","document","getElementById","publish","startLocalVideo"],"sources":["src/components/homepc.vue"],"sourcesContent":["<template>\n <div class=\"homepage\">\n <div id=\"video\">\n\n </div>\n <div class=\"enterRoom\">\n <div class=\"title\">\n 仲裁会议室\n </div>\n <div class=\"enterForm\">\n <el-form :model=\"enterRoomFrom\" ref=\"enterRoomFrom\">\n <el-form-item>\n <el-input placeholder=\"请输入房间号\" v-model=\"enterRoomFrom.roomId\">\n <template slot=\"append\"><el-button type=\"primary\" @click=\"enterRoom\"\n icon=\"el-icon-right\">进入</el-button></template></el-input>\n </el-form-item>\n </el-form>\n </div>\n </div>\n </div>\n</template>\n \n<script>\nimport {reserveConferenceList} from '@/api/home.js'\nimport TRTC from 'trtc-sdk-v5';\nlet trtc = null;\nexport default {\n name: 'App',\n data() {\n return {\n formLabelAlign: {},\n enterRoomFrom: {},\n trtc: null,\n userId: null\n };\n },\n methods: {\n async enterRoom() {\n if (this.roomId != this.enterRoomFrom.roomId) {\n this.$message({\n message: \"房间号不是对应的房间号\",\n type: 'error'\n });\n return\n }\n await this.$router.push({\n name: 'Room',\n query: {\n userId: this.userId,\n roomId: this.enterRoomFrom.roomId\n }\n })\n },\n submitRoom() {\n this.$refs[\"formLabelAlign\"].validate((valid) => {\n\n })\n },\n // 根据案件id查询主持人信息\n async reserveConferenceListFn(data){\n reserveConferenceList(data).then(res=>{\n console.log(res,\"oooooooooooo\");\n })\n }\n },\n async mounted() {\n let routeParams = this.$route.query;\n this.userId = routeParams.name;\n this.roomId = routeParams.roomId;\n this.userCode = routeP