classDetail.js.map 25 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/classDetail.vue?e172","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/classDetail.vue?08a8","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/classDetail.vue?2d3e","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/classDetail.vue?b46f","uni-app:///pagesClass/classDetail.vue","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/classDetail.vue?9baa","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/classDetail.vue?86c3","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/classDetail.vue?4d84","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/classDetail.vue?1282"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,wG;AACAA,UAAU,CAACC,oBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAoI;AACpI;AAC+D;AACL;AACa;AACyB;;;AAGhG;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,iFAAM;AACR,EAAE,kGAAM;AACR,EAAE,2GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,sGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACxBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,uMAEN;AACP,KAAK;AACL;AACA,aAAa,uMAEN;AACP,KAAK;AACL;AACA,aAAa,uMAEN;AACP,KAAK;AACL;AACA,aAAa,qOAEN;AACP,KAAK;AACL;AACA,aAAa,6MAEN;AACP,KAAK;AACL;AACA,aAAa,mNAEN;AACP,KAAK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AAAA;AAA+nC,CAAgB,ymCAAG,EAAC,C;;;;;;;;;;;ACAnpC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pagesClass/classDetail.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pagesClass/classDetail.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./classDetail.vue?vue&type=template&id=66437308&scoped=true&\"\nvar renderjs\nimport script from \"./classDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./classDetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./classDetail.vue?vue&type=style&index=0&lang=css&\"\nimport style1 from \"./classDetail.vue?vue&type=style&index=1&id=66437308&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"66437308\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesClass/classDetail.vue\"\nexport default component.exports","export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./classDetail.vue?vue&type=template&id=66437308&scoped=true&\"","var components\ntry {\n components = {\n uCard: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-card/u-card\" */ \"@/uview-ui/components/u-card/u-card.vue\"\n )\n },\n uIcon: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-icon/u-icon\" */ \"@/uview-ui/components/u-icon/u-icon.vue\"\n )\n },\n uGrid: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-grid/u-grid\" */ \"@/uview-ui/components/u-grid/u-grid.vue\"\n )\n },\n uGridItem: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-grid-item/u-grid-item\" */ \"@/uview-ui/components/u-grid-item/u-grid-item.vue\"\n )\n },\n uImage: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-image/u-image\" */ \"@/uview-ui/components/u-image/u-image.vue\"\n )\n },\n uButton: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-button/u-button\" */ \"@/uview-ui/components/u-button/u-button.vue\"\n )\n },\n uActionSheet: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-action-sheet/u-action-sheet\" */ \"@/uview-ui/components/u-action-sheet/u-action-sheet.vue\"\n )\n },\n uTopTips: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-top-tips/u-top-tips\" */ \"@/uview-ui/components/u-top-tips/u-top-tips.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var m0 = _vm.getStudentsNumber()\n\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.imgEdit = !_vm.imgEdit\n }\n\n _vm.e1 = function($event) {\n _vm.uploadTypeShow = true\n }\n }\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n m0: m0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./classDetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./classDetail.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"content\">\r\n\t\t<u-card :title=\"classInfo.name\" :show-foot=\"false\" title-size=\"32\" margin=\"0px 0px 10px 0px\" :head-style=\"cardStyle\">\r\n\t\t\t<view slot=\"body\">\r\n\t\t\t\t<view class=\"class-info-text\">\r\n\t\t\t\t\t<u-icon name=\"clock\"></u-icon>\r\n\t\t\t\t\t{{classInfo.classStartDate}}&nbsp;~&nbsp;{{classInfo.classEndDate}}\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"class-info-text\" v-for=\"(item, index) in classInfo.classExtrasList\" :key=\"index\">\r\n\t\t\t\t\t<u-icon name=\"calendar\" style=\"visibility: hidden;\"></u-icon>\r\n\t\t\t\t\t<text>{{item.week}}&nbsp;{{item.startTime}}-{{item.endTime}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"class-info-text\">\r\n\t\t\t\t\t<u-icon name=\"map\"></u-icon>\r\n\t\t\t\t\t{{classInfo.address}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</u-card>\r\n\t\t<u-card :title=\"'学员信息(' + getStudentsNumber() + ')'\" title-size=\"32\" margin=\"0px 0px 10px 0px\" :head-style=\"cardStyle\">\r\n\t\t\t<u-grid :col=\"3\" slot=\"body\" :border=\"false\">\r\n\t\t\t\t<u-grid-item v-for=\"(item, index) in classInfo.studentSignList\" :key=\"index\" :custom-style=\"gridCustomStyle\" @click=\"goToStudentInfo(item)\">\r\n\t\t\t\t\t<view class=\"class-student-col\" :class=\"item.state ? 'student-active' : ''\">\r\n\t\t\t\t\t\t{{item.name}}\r\n\t\t\t\t\t\t<u-icon name=\"bookmark\" :color=\"mainColor\" size=\"48\"></u-icon>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</u-grid-item>\r\n\t\t\t</u-grid>\r\n\t\t</u-card>\r\n\t\t<u-card title=\"班级近况\" :sub-title=\"imgEdit ? '完成' : '管理'\" :sub-title-color=\"imgEdit ? '#19be6b' : '#909399'\" :show-foot=\"false\"\r\n\t\t title-size=\"32\" margin=\"0px\" :head-style=\"cardStyle\" @sub-click=\"imgEdit = !imgEdit\">\r\n\t\t\t<view class=\"class-show-box\" slot=\"body\">\r\n\t\t\t\t<view v-for=\"(item, index) in classShowList\" :key=\"index\" class=\"class-show-card\">\r\n\t\t\t\t\t<u-image :src=\"item.url\" mode=\"aspectFill\" height=\"30vw\" border-radius=\"10px\" v-if=\"item.type == 0\"></u-image>\r\n\t\t\t\t\t<view class=\"video-col\" v-if=\"item.type == 1\">\r\n\t\t\t\t\t\t<video :src=\"item.url\" object-fit=\"cover\" controls :id=\"'video' + index\"></video>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"class-show-name\">{{item.name}}</view>\r\n\t\t\t\t\t<u-icon name=\"close-circle-fill\" color=\"#fa3534\" size=\"48\" v-if=\"imgEdit\" class=\"delete-icon\" @click=\"deleteClassShow(item)\"></u-icon>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"class-show-card\" style=\"width: calc(100% - 16px);text-align: center;\" v-if=\"imgEdit\">\r\n\t\t\t\t\t<u-icon name=\"plus-circle-fill\" size=\"100\" :color=\"mainColor\" @click=\"uploadTypeShow = true\"></u-icon>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</u-card>\r\n\t\t<view class=\"handle-fix-box\">\r\n\t\t\t<u-button type=\"warning\" shape=\"circle\" :ripple=\"true\" :custom-style=\"customStyle\" @click=\"goToSignForm()\">立即签到</u-button>\r\n\t\t</view>\r\n\t\t<u-action-sheet :list=\"uploadTypeList\" v-model=\"uploadTypeShow\" @click=\"selectUploadType\"></u-action-sheet>\r\n\t\t<u-top-tips ref=\"uTips\"></u-top-tips>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\tmapGetters\r\n\t} from 'vuex'\r\n\tconst NET = require('@/utils/request')\r\n\tconst API = require('@/config/api')\r\n\texport default {\r\n\t\tcomputed: {\r\n\t\t\t...mapGetters([\r\n\t\t\t\t'mainColor',\r\n\t\t\t\t'customStyle',\r\n\t\t\t])\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tclassId: '',\r\n\t\t\t\tclassInfo: {\r\n\t\t\t\t\tname: '',\r\n\t\t\t\t\tclassStartDate: '',\r\n\t\t\t\t\tclassStartHours: '',\r\n\t\t\t\t\tclassEndDate: '',\r\n\t\t\t\t\tclassEndHours: '',\r\n\t\t\t\t\tresidue: '',\r\n\t\t\t\t\taddress: '',\r\n\t\t\t\t\tclassExtrasList: [],\r\n\t\t\t\t\tstudentSignList: [],\r\n\t\t\t\t\tshowList: [],\r\n\t\t\t\t},\r\n\t\t\t\tclassShowList: [],\r\n\t\t\t\tuploadTypeShow: false,\r\n\t\t\t\tuploadTypeList: [{\r\n\t\t\t\t\t\ttext: '图片'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttext: '视频'\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\timgEdit: false,\r\n\t\t\t\tcardStyle: {\r\n\t\t\t\t\tfontWeight: 'bold'\r\n\t\t\t\t},\r\n\t\t\t\tgridCustomStyle: {\r\n\t\t\t\t\tpadding: '0 2px'\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\tthis.classId = options.id\r\n\t\t\tthis.initialize()\r\n\t\t\tthis.getClassShow()\r\n\t\t},\r\n\t\tonReady() {},\r\n\t\tonPullDownRefresh() {\r\n\t\t\tthis.initialize()\r\n\t\t\tthis.getClassShow()\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 获取初始化数据\r\n\t\t\tinitialize() {\r\n\t\t\t\tNET.request(API.getClassDetail, {\r\n\t\t\t\t\tid: this.classId\r\n\t\t\t\t}, 'POST').then(res => {\r\n\t\t\t\t\tthis.classInfo = res.data\r\n\t\t\t\t\tuni.stopPullDownRefresh();\r\n\t\t\t\t}).catch(error => {\r\n\t\t\t\t\tthis.$refs.uTips.show({\r\n\t\t\t\t\t\ttitle: error.message,\r\n\t\t\t\t\t\ttype: 'warning',\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 文件上传成功回调\r\n\t\t\tgetClassShow() {\r\n\t\t\t\tNET.request(API.getClassDetailShowList, {\r\n\t\t\t\t\tid: this.classId,\r\n\t\t\t\t\tpage: 0,\r\n\t\t\t\t\tsize: 1000\r\n\t\t\t\t}, 'POST').then(res => {\r\n\t\t\t\t\tthis.classShowList = res.data.row\r\n\t\t\t\t}).catch(error => {\r\n\t\t\t\t\tthis.$refs.uTips.show({\r\n\t\t\t\t\t\ttitle: error.message,\r\n\t\t\t\t\t\ttype: 'warning',\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 获取学生数量\r\n\t\t\tgetStudentsNumber() {\r\n\t\t\t\treturn this.classInfo.studentSignList.length\r\n\t\t\t},\r\n\t\t\t// 选择上传文件类型\r\n\t\t\tselectUploadType(index) {\r\n\t\t\t\tif (index == 0) {\r\n\t\t\t\t\tuni.chooseImage({\r\n\t\t\t\t\t\tcount: 1,\r\n\t\t\t\t\t\tsuccess: (res) => {\r\n\t\t\t\t\t\t\tthis.uploadFile(res.tempFilePaths[0])\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tfail: (error) => {\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t} else if (index) {\r\n\t\t\t\t\tuni.chooseVideo({\r\n\t\t\t\t\t\tcount: 1,\r\n\t\t\t\t\t\tsuccess: (res) => {\r\n\t\t\t\t\t\t\tthis.uploadFile(res.tempFilePath)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tfail: (error) => {\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 上传文件\r\n\t\t\tuploadFile(path) {\r\n\t\t\t\tlet that = this\r\n\t\t\t\tuni.uploadFile({\r\n\t\t\t\t\turl: API.uploadFile,\r\n\t\t\t\t\tfilePath: path,\r\n\t\t\t\t\tname: 'file',\r\n\t\t\t\t\theader: {\r\n\t\t\t\t\t\tAuthorization: uni.getStorageSync('token')\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsuccess: (uploadFileRes) => {\r\n\t\t\t\t\t\tthat.uploadSuccess(JSON.parse(uploadFileRes.data).data.id)\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t// 文件上传成功回调\r\n\t\t\tuploadSuccess(id) {\r\n\t\t\t\tNET.request(API.insertClassShow, {\r\n\t\t\t\t\tfileId: [id],\r\n\t\t\t\t\tid: this.classId,\r\n\t\t\t\t}, 'POST').then(res => {\r\n\t\t\t\t\tthis.getClassShow()\r\n\t\t\t\t\tthis.$refs.uTips.show({\r\n\t\t\t\t\t\ttitle: '班级近况发布成功',\r\n\t\t\t\t\t\ttype: 'success',\r\n\t\t\t\t\t})\r\n\t\t\t\t}).catch(error => {\r\n\t\t\t\t\tthis.$refs.uTips.show({\r\n\t\t\t\t\t\ttitle: error.message,\r\n\t\t\t\t\t\ttype: 'warning',\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 删除班级近况\r\n\t\t\tdeleteClassShow(site) {\r\n\t\t\t\tNET.request(API.deleteClassShow, {\r\n\t\t\t\t\tid: site.id,\r\n\t\t\t\t}, 'POST').then(res => {\r\n\t\t\t\t\tthis.getClassShow()\r\n\t\t\t\t\tthis.$refs.uTips.show({\r\n\t\t\t\t\t\ttitle: '删除成功',\r\n\t\t\t\t\t\ttype: 'success',\r\n\t\t\t\t\t})\r\n\t\t\t\t}).catch(error => {\r\n\t\t\t\t\tthis.$refs.uTips.show({\r\n\t\t\t\t\t\ttitle: error.message,\r\n\t\t\t\t\t\ttype: 'warning',\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 跳转学生详情\r\n\t\t\tgoToStudentInfo(item) {\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: '/pagesMain/studentInfo?type=1&id=' + item.id + '&classId=' + this.classId\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t// 跳转签到表单\r\n\t\t\tgoToSignForm() {\r\n\t\t\t\tuni.removeStorageSync('signUserList')\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: '/pagesClass/signForm?id=' + this.classId + '&status=' + this.classInfo.signStatus\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\tpage {\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tbackground-color: #f7f7f7;\r\n\t\tposition: relative;\r\n\t}\r\n</style>\r\n<style lang=\"scss\" scoped>\r\n\t@import \"@/static/css/themes.scss\";\r\n\r\n\t.content {\r\n\t\twidth: 100%;\r\n\t\tfloat: left;\r\n\t\tpadding-bottom: 60px;\r\n\r\n\t\t.class-info-text {\r\n\t\t\tcolor: #999999;\r\n\t\t\tline-height: 18px;\r\n\r\n\t\t\tu-icon {\r\n\t\t\t\tmargin-right: 4px;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.class-student-col {\r\n\t\t\theight: 28px;\r\n\t\t\tdisplay: flex;\r\n\t\t\tpadding: 0 10px;\r\n\t\t\tline-height: 28px;\r\n\t\t\tcolor: $mainColor;\r\n\t\t\twhite-space: nowrap;\r\n\t\t\tborder: 1px solid $mainColor;\r\n\t\t\tborder-radius: 5px;\r\n\r\n\t\t\t/deep/u-icon {\r\n\t\t\t\tmargin-left: 5px;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.student-active {\r\n\t\t\tbackground-color: $mainColor;\r\n\t\t\tcolor: #FFFFFF;\r\n\t\t}\r\n\r\n\t\t.class-student-box {\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: space-around;\r\n\t\t}\r\n\r\n\t\t.class-show-box {\r\n\t\t\twidth: 100%;\r\n\t\t\tfloat: left;\r\n\r\n\t\t\t.class-show-card {\r\n\t\t\t\twidth: calc(50% - 16px);\r\n\t\t\t\tmargin: 0 8px 16px 8px;\r\n\t\t\t\tfloat: left;\r\n\t\t\t\tposition: relative;\r\n\r\n\t\t\t\t.class-show-name {\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\tline-height: 20px;\r\n\t\t\t\t\tfont-size: 14px;\r\n\t\t\t\t\tmargin-top: 5px;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.delete-icon {\r\n\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\tright: -5px;\r\n\t\t\t\t\ttop: -5px;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.video-col {\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\theight: 30vw;\r\n\t\t\t\t\tborder-radius: 10px;\r\n\r\n\t\t\t\t\tvideo {\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\theight: 30vw;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>\r\n","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./classDetail.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./classDetail.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1631761629594\n var cssReload = require(\"E:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n ","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./classDetail.vue?vue&type=style&index=1&id=66437308&lang=scss&scoped=true&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./classDetail.vue?vue&type=style&index=1&id=66437308&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1631761632900\n var cssReload = require(\"E:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}