chunk-2d10bb15.fd2ee356.js.map
25.3 KB
{"version":3,"sources":["webpack:///./src/components/study/train.vue?cbc8","webpack:///src/components/study/train.vue","webpack:///./src/components/study/train.vue?ca83","webpack:///./src/components/study/train.vue","webpack:///./src/assets/bofang_icon@2x.png","webpack:///./src/components/study/train.vue?d5c9"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_m","attrs","path","query","id","_l","item","index","key","class","orderindex","on","selorder","url","_s","text","addki","name","class_hour","min","expirationtime","is_join","$event","jixue","_e","videofang","coutent","video_image","video_file","controls","domProps","muted","content","staticRenderFns","components","daohan","dibu","dingbu","data","zhebi","addkio","vio","duration","gosid","orderid","miao","is_endt","created","console","log","$route","mounted","getzan","window","onbeforeunload","e","event","that","ad","getvideo_detail","methods","alert","currentTarget","dataset","localStorage","setItem","$router","push","document","getElementById","scrollIntoView","mo","preventDefault","body","style","overflow","addEventListener","documentElement","scrollTop","sym","video","setInterval","timel","currentTime","paused","time","play","Math","floor","pause","n","ting","post","param","component","module","exports"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,UAAUA,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,OAAO,CAACE,YAAY,UAAU,CAACN,EAAIO,GAAG,QAAQP,EAAIQ,GAAG,GAAGJ,EAAG,cAAc,CAACE,YAAY,UAAUG,MAAM,CAAC,IAAM,OAAO,GAAK,WAAW,CAACT,EAAIO,GAAG,UAAUP,EAAIQ,GAAG,GAAGJ,EAAG,cAAc,CAACE,YAAY,UAAUG,MAAM,CAAC,IAAM,OAAO,GAAK,CAACC,KAAK,WAAWC,MAAM,CAACC,GAAGX,KAAKW,OAAO,CAACZ,EAAIO,GAAG,UAAUH,EAAG,OAAO,IAAIJ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._c||_h;return _c('div',{staticClass:\"inform\"},[_c('dingbu'),_c('div',{staticClass:\"inform-box\"},[_c('div',{staticClass:\"box-top\"},[_c('span',{staticClass:\"shouye\"},[_vm._v(\"首页\")]),_vm._m(0),_c('router-link',{staticClass:\"tonzhil\",attrs:{\"tag\":\"span\",\"to\":\"/learn\"}},[_vm._v(\"学习系统\")]),_vm._m(1),_c('router-link',{staticClass:\"tonzhil\",attrs:{\"tag\":\"span\",\"to\":{path:'/profile',query:{id:this.id}}}},[_vm._v(\"课程列表\")]),_c('span',{}),_vm._m(2),_c('span',{staticClass:\"tonzhi\"},[_vm._v(\"课程详情\")])],1)]),_c('div',{staticClass:\"box-mat\"},[_c('div',{staticClass:\"box-lok\"},_vm._l((_vm.addkio),function(item,index){return _c('div',{key:index,staticClass:\"box-list\",class:_vm.orderindex==index?'orderactivegd':'',attrs:{\"data-index\":index},on:{\"click\":_vm.selorder}},[_c('img',{staticClass:\"ziliao\",attrs:{\"src\":item.url,\"alt\":\"\"}}),_c('div',{staticClass:\"ziliao-text\"},[_vm._v(_vm._s(item.text))])])}),0),_c('div',{staticClass:\"box-contentukj\"},[_c('div',{staticClass:\"ke-title\"},[_vm._v(_vm._s(_vm.addki.name))]),_c('div',{staticClass:\"kecheng-listto\"},[_c('div',{staticClass:\"listto-ke\"},[_c('div',{staticClass:\"class_hour\"},[_vm._v(_vm._s(_vm.addki.class_hour)+\"课时\")]),_c('div',{staticClass:\"minrd\"},[_vm._v(\"课程时长:\"+_vm._s(_vm.addki.min)+\"分钟\")]),_c('div',{staticClass:\"jiezhi-time\"},[_vm._v(\"截止时间:\"+_vm._s(_vm.addki.expirationtime))])]),(_vm.addki.is_join == 1)?_c('div',{staticClass:\"xuexi-jihua\",attrs:{\"plain\":\"true\"},on:{\"click\":function($event){return _vm.jixue(_vm.addki.id)}}},[_vm._v(\"+ 加入学习计划\")]):_vm._e(),(_vm.addki.is_join == 2)?_c('div',{staticClass:\"xuexi-jihuaa\",attrs:{\"plain\":\"trueo\"},on:{\"click\":function($event){return _vm.jixue(_vm.addki.id)}}},[_vm._v(\"已加入\")]):_vm._e()]),_c('div',{staticClass:\"shiping\",attrs:{\"id\":\"shi\"},on:{\"click\":function($event){return _vm.videofang(_vm.coutent)}}},[(_vm.vio)?_c('img',{staticClass:\"bofang_icon\",attrs:{\"src\":require(\"../../assets/bofang_icon@2x.png\"),\"alt\":\"\"}}):_vm._e(),_c('video',{attrs:{\"poster\":_vm.addki.video_image,\"id\":\"video\",\"src\":_vm.addki.video_file,\"loop\":\"loop\",\"controlslist\":\"nodownload\",\"height\":\"100%\",\"width\":\"100%\",\"controls\":_vm.controls},domProps:{\"muted\":_vm.muted}})]),_c('div',{staticClass:\"kecheng\"},[_vm._v(\"课程详情\")]),_c('div',{staticClass:\"kecheng-text\",domProps:{\"innerHTML\":_vm._s(_vm.addki.content)}})])]),_c('dibu'),_c('daohan')],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('img',{staticClass:\"img-o\",attrs:{\"src\":require(\"../../assets/xiangyou (2).png\"),\"alt\":\"\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('img',{staticClass:\"img-o\",attrs:{\"src\":require(\"../../assets/xiangyou (2).png\"),\"alt\":\"\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('img',{staticClass:\"img-o\",attrs:{\"src\":require(\"../../assets/xiangyou (2).png\"),\"alt\":\"\"}})])}]\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"inform\">\r\n <dingbu></dingbu>\r\n <div class=\"inform-box\">\r\n <div class=\"box-top\">\r\n <span class=\"shouye\">首页</span>\r\n <span>\r\n <img class=\"img-o\" src=\"../../assets/xiangyou (2).png\" alt />\r\n </span>\r\n <router-link tag=\"span\" class=\"tonzhil\" to=\"/learn\">学习系统</router-link>\r\n <span>\r\n <img class=\"img-o\" src=\"../../assets/xiangyou (2).png\" alt />\r\n </span>\r\n <router-link tag=\"span\" class=\"tonzhil\" :to=\"{path:'/profile',query:{id:this.id}}\">课程列表</router-link>\r\n <span class></span>\r\n <span>\r\n <img class=\"img-o\" src=\"../../assets/xiangyou (2).png\" alt />\r\n </span>\r\n <span class=\"tonzhi\">课程详情</span>\r\n </div>\r\n </div>\r\n <div class=\"box-mat\">\r\n <div class=\"box-lok\">\r\n <div\r\n class=\"box-list\"\r\n v-for=\"(item,index) in addkio\"\r\n :key=\"index\"\r\n :data-index=\"index\"\r\n :class=\"orderindex==index?'orderactivegd':''\"\r\n @click=\"selorder\"\r\n >\r\n <img class=\"ziliao\" :src=\"item.url\" alt />\r\n <div class=\"ziliao-text\">{{item.text}}</div>\r\n </div>\r\n </div>\r\n <div class=\"box-contentukj\">\r\n <div class=\"ke-title\">{{addki.name}}</div>\r\n <div class=\"kecheng-listto\">\r\n <div class=\"listto-ke\">\r\n <div class=\"class_hour\">{{addki.class_hour}}课时</div>\r\n <div class=\"minrd\">课程时长:{{addki.min}}分钟</div>\r\n <div class=\"jiezhi-time\">截止时间:{{addki.expirationtime}}</div>\r\n </div>\r\n <div\r\n class=\"xuexi-jihua\"\r\n plain=\"true\"\r\n @click=\"jixue(addki.id)\"\r\n v-if=\"addki.is_join == 1\"\r\n >+ 加入学习计划</div>\r\n <div\r\n class=\"xuexi-jihuaa\"\r\n plain=\"trueo\"\r\n @click=\"jixue(addki.id)\"\r\n v-if=\"addki.is_join == 2\"\r\n >已加入</div>\r\n </div>\r\n <div class=\"shiping\" @click=\"videofang(coutent)\" id=\"shi\">\r\n <!-- <img class=\"shi_img\" :src=\"addki.image\" alt v-if=\"vio\" /> -->\r\n <img class=\"bofang_icon\" src=\"../../assets/bofang_icon@2x.png\" alt v-if=\"vio\" />\r\n <video\r\n :poster=\"addki.video_image\"\r\n id=\"video\"\r\n :src=\"addki.video_file\"\r\n loop=\"loop\"\r\n controlslist=\"nodownload\"\r\n height=\"100%\"\r\n width=\"100%\"\r\n :controls=\"controls\"\r\n :muted=\"muted\"\r\n ></video>\r\n <!-- <div class=\"vok\" v-if=\"zhebi\"></div> -->\r\n </div>\r\n\r\n <div class=\"kecheng\">课程详情</div>\r\n <div class=\"kecheng-text\" v-html=\"addki.content\"></div>\r\n </div>\r\n </div>\r\n\r\n <dibu></dibu>\r\n <daohan></daohan>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport daohan from \"../daohan\";\r\nimport dibu from \"../dibu\";\r\nimport dingbu from \"../dingbu\";\r\n\r\nexport default {\r\n components: {\r\n daohan,\r\n dibu,\r\n dingbu\r\n },\r\n data() {\r\n return {\r\n id: \"\",\r\n muted: false,\r\n orderindex: 1,\r\n zhebi:true,\r\n addki: [],\r\n addkio: [\r\n {\r\n url: require(\"../../assets/6_icon@2x.png\"),\r\n text: \"我的资料\",\r\n },\r\n {\r\n url: require(\"../../assets/5_icon@2x.png\"),\r\n text: \"课程列表\",\r\n },\r\n {\r\n url: require(\"../../assets/4_icon@2x.png\"),\r\n text: \"我的考试\",\r\n },\r\n {\r\n url: require(\"../../assets/3_icon@2x.png\"),\r\n text: \"考试记录\",\r\n },\r\n {\r\n url: require(\"../../assets/2_icon@2x.png\"),\r\n text: \"修改密码\",\r\n },\r\n {\r\n url: require(\"../../assets/7_icon@2x.png\"),\r\n text: \"学习系统导引\",\r\n },\r\n ],\r\n vio: true,\r\n duration: \"\",\r\n controls: false,\r\n coutent: \"\",\r\n gosid: \"\",\r\n orderid: \"\",\r\n miao: \"\",\r\n is_endt: \"\",\r\n };\r\n },\r\n created() {\r\n console.log(this.id)\r\n window.addEventListener(\"beforeunload\", (e) => this.test(e));\r\n let that = this;\r\n this.id = this.$route.query.id;\r\n this.gosid = this.$route.query.gosid;\r\n console.log(this.id);\r\n // window.addEventListener('beforeunload', e=>this.ad())\r\n },\r\n mounted() {\r\n this.getzan();\r\n this.gosid = this.$route.query.gosid;\r\n this.orderid = this.$route.query.orderid;\r\n window.onbeforeunload = function (e) {\r\n console.log(e);\r\n e = e || window.event;\r\n if (e) {\r\n that.ad();\r\n // e.returnValue = '关闭提示';\r\n }\r\n\r\n return \"\";\r\n };\r\n\r\n this.getvideo_detail();\r\n },\r\n methods: {\r\n test(e) {\r\n \r\n alert('111')\r\n },\r\n //侧边导航按钮\r\n selorder(e) {\r\n this.orderindex = e.currentTarget.dataset.index;\r\n localStorage.setItem(\"ordertodo\", this.orderindex);\r\n if (this.orderindex == 0) {\r\n this.$router.push({ path: \"/profile\", query: { id: this.id } });\r\n }\r\n if (this.orderindex == 2) {\r\n this.$router.push({ path: \"/profile\", query: { id: this.id } });\r\n }\r\n if (this.orderindex == 3) {\r\n this.$router.push({ path: \"/profile\", query: { id: this.id } });\r\n }\r\n if (this.orderindex == 4) {\r\n this.$router.push({ path: \"/profile\", query: { id: this.id } });\r\n document.getElementById(\"app\").scrollIntoView();\r\n var mo = function (e) {\r\n e.preventDefault();\r\n };\r\n document.body.style.overflow = \"hidden\";\r\n document.addEventListener(\"touchmove\", mo, false); //禁止页面滑动\r\n }\r\n if (this.orderindex == 5) {\r\n this.$router.push({ path: \"/profile\", query: { id: this.gosid } });\r\n document.documentElement.scrollTop = 200;\r\n document.getElementById(\"app\").scrollIntoView();\r\n var mo = function (e) {\r\n e.preventDefault();\r\n };\r\n document.body.style.overflow = \"hidden\";\r\n document.addEventListener(\"touchmove\", mo, false); //禁止页面滑动\r\n }\r\n },\r\n //视屏播放\r\n videofang(time) {\r\n this.controls = true;\r\n let n = 1;\r\n let that = this;\r\n let ting = that.miao;\r\n var sym;\r\n var sec;\r\n\r\n var video = document.getElementById(\"video\");\r\n if (this.is_endt == 2) {\r\n // this.zhebi = true\r\n setInterval(function () {\r\n var timel = video.currentTime;\r\n if (timel - sym > 1) {\r\n video.currentTime = sym;\r\n }\r\n sym = video.currentTime;\r\n }, 500);\r\n\r\n } else {\r\n this.zhebi = false\r\n }\r\n\r\n if (video.paused) {\r\n video.currentTime = time;\r\n if (this.controls == false) {\r\n video.play();\r\n }\r\n\r\n this.vio = false;\r\n video.addEventListener(\"timeupdate\", function () {\r\n var timeDisplay;\r\n //用秒数来显示当前播放进度\r\n timeDisplay = Math.floor(video.currentTime);\r\n console.log(Math.floor(video.currentTime));\r\n that.duration = Math.floor(video.currentTime);\r\n that.coutent = that.duration;\r\n\r\n //播放一定时间暂停\r\n if (that.coutent == that.miao) {\r\n video.pause();\r\n n = n + 1;\r\n ting = ting * n;\r\n that.miao = ting;\r\n console.log(that.miao);\r\n that.vio = true;\r\n }\r\n if (that.duration >= that.addki.duration) {\r\n that.ad();\r\n that.controls = true;\r\n }\r\n });\r\n } else {\r\n if (this.controls == false) {\r\n video.pause();\r\n }\r\n\r\n console.log(that.duration);\r\n if (that.duration > 0) {\r\n this.ad();\r\n }\r\n }\r\n },\r\n\r\n //播放按钮\r\n ad() {\r\n let that = this;\r\n var url = \"user/bofang\";\r\n let param = {\r\n id: this.id,\r\n duration: this.duration,\r\n };\r\n this.post(url, param)\r\n .then((res) => {\r\n console.log(res);\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n });\r\n },\r\n //加入学习计划\r\n jixue(id) {\r\n let that = this;\r\n var url = \"user/join\";\r\n let param = {\r\n id: this.id,\r\n duration: this.duration,\r\n };\r\n this.post(url, param)\r\n .then((res) => {\r\n this.$message(res.msg);\r\n localStorage.setItem(\"id\", id);\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n });\r\n },\r\n //通知公告详情接口\r\n getvideo_detail() {\r\n let that = this;\r\n var url = \"user/video_detail\";\r\n let param = {\r\n id: this.id,\r\n };\r\n this.post(url, param)\r\n .then((res) => {\r\n this.addki = res.data;\r\n this.is_endt = res.data.is_end;\r\n console.log(this.is_endt);\r\n if (this.addki.is_end == 1) {\r\n this.controls = true;\r\n this.coutent = 0;\r\n } else {\r\n this.coutent = this.addki.bofangtime;\r\n }\r\n console.log(this.coutent);\r\n console.log(res);\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n });\r\n },\r\n //到达一定时间暂停接口\r\n getzan() {\r\n let that = this;\r\n var url = \"index/zan\";\r\n let param = {};\r\n this.post(url)\r\n .then((res) => {\r\n this.miao = res.data.stopnum;\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n<style>\r\n</style>\r\n<style scoped>\r\n@import \"../../css/train.css\";\r\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./train.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./train.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./train.vue?vue&type=template&id=8d96452e&scoped=true&\"\nimport script from \"./train.vue?vue&type=script&lang=js&\"\nexport * from \"./train.vue?vue&type=script&lang=js&\"\nimport style1 from \"./train.vue?vue&type=style&index=1&id=8d96452e&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8d96452e\",\n null\n \n)\n\nexport default component.exports","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAHYElEQVR4Xu2dj5FcNQzGrQrgKiCpgKQCchWQVACpgFwFhArIVQCpgKQCSAUkFZCrgKQCMb8dv8X77lmWn+23u3fxzM7tzL4/9mdJnyTLPglHbKr6dQjh2xDCoxDCg/iXHvGdT9o+hhD40N7H7/z9ICKfjjUM2frFqvp9COFJ/ABcjwa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UddtC2xXAhGBgPuzRqQAJcNMJml3s7jSr3QFMxSVuF2V58FhAAhx1g8PO9hoKYKLaGHskEhVfQzY1agw5QAzE5t1UNdeBTQCcSSUgthxfvDSW/XHKraxaM1NcuzmAMzBxdAkPl/4dxlztUcelf4dBLXdXu1YD4n8P99ujgHASOwAAAABJRU5ErkJggg==\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./train.vue?vue&type=style&index=1&id=8d96452e&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./train.vue?vue&type=style&index=1&id=8d96452e&scoped=true&lang=css&\""],"sourceRoot":""}