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

1 line
4.4 KiB
JSON
Raw Normal View History

2024-01-18 10:46:33 +08:00
{"ast":null,"code":"import { startVideo, stopVideo, destructionRoom } from '@/api/room.js';\nexport default {\n name: 'FooterPhone',\n components: {},\n data() {\n return {\n roomId: null,\n taskId: null,\n roleFlag: false\n };\n },\n methods: {\n // 解散房间\n destructionRoomFn(data) {\n destructionRoom(data).then(res => {\n console.log(res, \"解散房间\");\n });\n },\n exitRoom() {\n if (this.roleFlag) {\n this.stopVideoFn();\n this.destructionRoomFn({\n roomId: this.roomId\n });\n this.$emit('exitRoom');\n } else {\n this.$emit('exitRoom');\n }\n },\n async startVideoFn() {\n await startVideo({\n caseId: 12865,\n roomId: this.roomId\n }).then(res => {\n this.taskId = res.data.taskId;\n console.log(res.data.taskId, \"pppppp\");\n });\n },\n stopVideoFn() {\n stopVideo(this.taskId).then(res => {\n console.log(res, \"KKKKKK\");\n });\n }\n },\n async mounted() {\n this.roomId = this.$route.query.roomId;\n let roleFlag = this.$route.query.flag;\n this.roleFlag = roleFlag;\n if (roleFlag) {\n await this.startVideoFn();\n }\n }\n};","map":{"version":3,"names":["startVideo","stopVideo","destructionRoom","name","components","data","roomId","taskId","roleFlag","methods","destructionRoomFn","then","res","console","log","exitRoom","stopVideoFn","$emit","startVideoFn","caseId","mounted","$route","query","flag"],"sources":["src/views/components/footerPhone.vue"],"sourcesContent":["<template>\n <div class=\"roomFooter\">\n <el-button type=\"danger\" @click=\"exitRoom\" v-if=\"!roleFlag\">退出房间</el-button>\n <el-button type=\"danger\" @click=\"exitRoom\" v-if=\"roleFlag\">解散房间</el-button>\n </div>\n</template>\n \n<script>\nimport { startVideo, stopVideo, destructionRoom } from '@/api/room.js'\nexport default {\n name: 'FooterPhone',\n components: {\n\n },\n data() {\n return {\n roomId: null,\n taskId: null,\n roleFlag: false\n };\n },\n methods: {\n // 解散房间\n destructionRoomFn(data) {\n destructionRoom(data).then(res => {\n console.log(res, \"解散房间\");\n })\n },\n exitRoom() {\n if (this.roleFlag) {\n this.stopVideoFn();\n this.destructionRoomFn({ roomId: this.roomId })\n this.$emit('exitRoom');\n } else {\n this.$emit('exitRoom');\n }\n },\n async startVideoFn() {\n await startVideo({\n caseId: 12865,\n roomId: this.roomId\n }).then(res => {\n this.taskId = res.data.taskId\n console.log(res.data.taskId, \"pppppp\");\n })\n },\n stopVideoFn() {\n stopVideo(this.taskId).then(res => {\n console.log(res, \"KKKKKK\");\n })\n },\n },\n async mounted() {\n this.roomId = this.$route.query.roomId;\n let roleFlag = this.$route.query.flag;\n this.roleFlag = roleFlag;\n if (roleFlag) {\n await this.startVideoFn();\n }\n },\n};\n</script>\n \n<style scoped>\n.roomFooter {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n flex-direction: row-reverse;\n}\n</style>\n \n \n "],"mappings":"AAQA,SAAAA,UAAA,EAAAC,SAAA,EAAAC,eAAA;AACA;EACAC,IAAA;EACAC,UAAA,GAEA;EACAC,KAAA;IACA;MACAC,MAAA;MACAC,MAAA;MACAC,QAAA;IACA;EACA;EACAC,OAAA;IACA;IACAC,kBAAAL,IAAA;MACAH,eAAA,CAAAG,IAAA,EAAAM,IAAA,CAAAC,GAAA;QACAC,OAAA,CAAAC,GAAA,CAAAF,GAAA;MACA;IACA;IACAG,SAAA;MACA,SAAAP,QAAA;QACA,KAAAQ,WAAA;QACA,KAAAN,iBAAA;UAAAJ,MAAA,OAAAA;QAAA;QACA,KAAAW,KAAA;MACA;QACA,KAAAA,KAAA;MACA;IACA;IACA,MAAAC,aAAA;MACA,MAAAlB,UAAA;QACAmB,MAAA;QACAb,MAAA,OAAAA;MACA,GAAAK,IAAA,CAAAC,GAAA;QACA,KAAAL,MAAA,GAAAK,GAAA,CAAAP,IAAA,CAAAE,MAAA;Q