webpackJsonp([25],{"0UR+":function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s("OF5A"),r=s.n(a),i={data:function(){return{id:this.$route.query.id,res:[],photo:[],playerOptions:{playbackRates:[.7,1,1.5,2],autoplay:!1,muted:!1,loop:!1,preload:"auto",language:"zh-CN",aspectRatio:"16:9",fluid:!0,sources:[{type:"video/mp4",src:""}],notSupportedMessage:"此视频暂无法播放，请稍后再试",controlBar:{timeDivider:!0,durationDisplay:!0,remainingTimeDisplay:!1,fullscreenToggle:!0}},playerO:{}}},computed:{playsinline:function(){var e=navigator.userAgent.toLocaleLowerCase();return null==e.match(/tencenttraveler/)&&null==e.match(/qqbrowse/)}},methods:{goTo:function(e){this.$router.push(e)},goBack:function(){if(this.$router.isBack=!0,window.history.length<=1)return this.$router.push({path:"/"}),!1;this.$router.go(-1)},getDetail:function(){var e=this,t={id:this.id};this.ajax.get(this.$store.state.api+"getHomeSchoolDetail",t).then(function(t){e.res=t.data[0][0],e.photo=JSON.parse(e.res.content).photo.split(","),e.res.text=JSON.parse(e.res.content).content,e.playerOptions.poster=e.photo[0],e.playerOptions.sources[0].src=JSON.parse(e.res.content).media,e.playerO=e.playerOptions,e.res.score=e.res.rate?JSON.parse(e.res.rate).score:0,e.res.scoreC=e.res.rate?JSON.parse(e.res.rate).content:"",console.log(t.data)}).catch(function(e){console.error(e)})},onPlayerCanplay:function(e){var t=navigator.userAgent.toLocaleLowerCase();null!=t.match(/tencenttraveler/)||null!=t.match(/qqbrowse/)?r()("body").find("video").attr("x-webkit-airplay",!0).attr("x5-playsinline",!0).attr("webkit-playsinline",!0).attr("playsinline",!0):r()("body").find("video").attr("webkit-playsinline","true").attr("playsinline","true")},onPlayerPlay:function(e){}},created:function(){this.getDetail()}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pb_content2",staticStyle:{background:"#fff","max-height":"100%"}},[a("div",{staticClass:"pb_head"},[a("van-icon",{staticClass:"pb_back",attrs:{name:"arrow-left",color:"#fff",size:"1.2rem"},on:{click:e.goBack}}),e._v(" "),a("span",[e._v("详情")])],1),e._v(" "),a("div",{staticClass:"pb_content_body"},[a("div",{staticClass:"my_wordBox"},[a("div",{staticClass:"mwd_title"},[a("div",[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:s("wl5n"),expression:"require('../../assets/icon/word.png')"}],attrs:{alt:""}}),e._v(" "),a("span",[e._v(e._s(e.res.workName))])]),e._v(" "),a("div",["2"!=e.res.dtype?a("span",{staticStyle:{"font-size":"14px",color:"#69b4f6"},on:{click:function(t){return e.goTo("/learning2")}}},[e._v("五育融合")]):e._e()])]),e._v(" "),a("div",{staticClass:"myw_work_img"},[a("video-player",{ref:"videoPlayer",staticClass:"video-player vjs-custom-skin",staticStyle:{width:"100%",height:"100%"},attrs:{playsinline:e.playsinline,options:e.playerO},on:{canplay:function(t){return e.onPlayerCanplay(t)},play:function(t){return e.onPlayerPlay(t)}}})],1),e._v(" "),a("div",{staticClass:"mwd_content"},[e._v("\n        "+e._s(e.res.text)+"\n      ")]),e._v(" "),a("div",{staticClass:"mwd_img"},e._l(e.photo,function(e){return a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e,expression:"item"}],key:e,attrs:{alt:""}})}),0),e._v(" "),e._m(0),e._v(" "),a("div",{staticClass:"mwd_comment"},["2"==e.res.dtype&&"1"==e.res.examine?a("span",[e._v(e._s(e.res.tn)+"老师审核")]):e.res.rate?a("span",[e._v(e._s(e.res.tn)+"老师评价")]):a("span"),e._v(" "),"2"==e.res.dtype?a("span",{class:{finish:"1"==e.res.examine}},[e._v("\n          "+e._s("1"==e.res.examine?"已审批,任务完成":"未审批"))]):a("span",{class:{finish:""!=e.res.rate&&null!=e.res.rate}},[e._v("\n          "+e._s(""!=e.res.rate&&null!=e.res.rate?"已评价":"未评价"))])])]),e._v(" "),e.res.rate?a("div",{staticClass:"ex_datebox"},[a("div",{staticClass:"ex_date"},[a("div",{staticClass:"ex_left"},[a("div",{staticClass:"ex_time"},[e._v(e._s(e.res.classname))])]),e._v(" "),a("div",{staticClass:"ex_right"},[a("van-rate",{attrs:{color:"#f7ba2a"},model:{value:e.res.score,callback:function(t){e.$set(e.res,"score",t)},expression:"res.score"}})],1)]),e._v(" "),a("div",{staticClass:"ex_date"},[e._m(1),e._v(" "),a("div",{staticClass:"ex_right"},[e._v("\n          "+e._s(e.res.scoreC)+"\n        ")])])]):e._e()])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"mwd_time"},[t("span",[this._v("09-24 18:00")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ex_left"},[t("div",{staticClass:"ex_time"},[this._v("老师评价")])])}]};var o=s("VU/8")(i,n,!1,function(e){s("OC83")},"data-v-c7d941b6",null);t.default=o.exports},OC83:function(e,t){}});
//# sourceMappingURL=25.ba7ea9818ae1eb9d0af3.js.map