webpackJsonp([21],{"1BAo":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={data:function(){return{id:this.$route.query.id,uid:this.$route.query.uid,type:this.$route.query.type,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:{}}},methods:{onPlayerCanplay:function(t){var e=navigator.userAgent.toLocaleLowerCase();null!=e.match(/tencenttraveler/)||null!=e.match(/qqbrowse/)?$("body").find("video").attr("x-webkit-airplay",!0).attr("x5-playsinline",!0).attr("webkit-playsinline",!0).attr("playsinline",!0):$("body").find("video").attr("webkit-playsinline","true").attr("playsinline","true")},onPlayerPlay:function(t){},goBack:function(){if(this.$router.isBack=!0,window.history.length<=1)return this.$router.push({path:"/"}),!1;this.$router.go(-1)},time:function(){if(this.now){var t=(new Date).getTime();return t-this.now>3e3&&(this.now=t,!0)}return this.now=(new Date).getTime(),!0},checkNow:function(){var t=this;if(this.time()){var e=[{hid:this.id,uid:this.uid,type:1,utid:this.$store.state.userInfo.userid}];this.ajax.post(this.$store.state.api+"examineWork",e).then(function(e){t.$toast.success("审核任务通过成功"),setTimeout(function(){t.goBack()},1e3),console.log(e.data)}).catch(function(e){t.$toast.success("审核任务通过失败"),console.error(e)})}},getDetail:function(){var t=this,e={hid:this.id,uid:this.uid};this.ajax.get(this.$store.state.api+"getExamineDetail",e).then(function(e){t.res=e.data[0][0],t.photo=JSON.parse(t.res.content).photo.split(","),t.res.text=JSON.parse(t.res.content).content,t.playerOptions.poster=t.photo[0],t.playerOptions.sources[0].src=JSON.parse(t.res.content).media,t.playerO=t.playerOptions}).catch(function(e){t.loading=!1,t.refreshing=!1,console.error(e)})}},created:function(){this.getDetail()}},a={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"pb_content2",staticStyle:{background:"#e8e7e7"}},[s("div",{staticClass:"pb_head"},[s("van-icon",{staticClass:"pb_back",attrs:{name:"arrow-left",color:"#fff",size:"1.2rem"},on:{click:t.goBack}}),t._v(" "),s("span",[t._v(t._s(t.res.name)+"的义工任务")])],1),t._v(" "),s("div",{staticClass:"pb_content_body",staticStyle:{position:"relative","min-height":"calc(100% - 3.5rem)"}},[s("div",{staticClass:"is_who_work"},[s("div",{staticClass:"new_left"},[s("div",{staticClass:"tx"},[s("img",{attrs:{src:t.res.smailheadportrait?t.res.smailheadportrait:i("eMeI"),alt:""}})]),t._v(" "),s("div",{staticClass:"tx_nav"},[s("div",{staticClass:"new_title"},[t._v(t._s(t.res.name))]),t._v(" "),s("div",{staticClass:"new_content"},[t._v(t._s(t.res.classname))])])])]),t._v(" "),s("div",{staticClass:"work_detail"},[s("div",{staticClass:"work_top"},[t._m(0),t._v(" "),s("div",{staticClass:"work_title"},[t._v(t._s(t.res.workName))])]),t._v(" "),s("div",{staticClass:"work_time"},[t._v(t._s(t.res.time)+"发布")]),t._v(" "),s("div",{staticClass:"work_pic"},[s("div",{staticClass:"work_img",staticStyle:{width:"98%"}},[s("video-player",{ref:"videoPlayer",staticClass:"video-player vjs-custom-skin",staticStyle:{width:"100%",height:"100%"},attrs:{playsinline:t.playsinline,options:t.playerO},on:{canplay:function(e){return t.onPlayerCanplay(e)},play:function(e){return t.onPlayerPlay(e)}}})],1),t._v(" "),s("div",{staticClass:"work_img"},[t._v(t._s(t.res.text))]),t._v(" "),s("div",{staticClass:"work_img"},t._l(t.photo,function(t){return s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"item"}],key:t,attrs:{alt:""}})}),0)])]),t._v(" "),2==t.type?s("div",{staticClass:"work_is_right",on:{click:t.checkNow}},[t._v("\n      审核任务通过\n    ")]):t._e()])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"lag"},[e("img",{attrs:{src:i("C/b2"),alt:""}})])}]};var r=i("VU/8")(s,a,!1,function(t){i("O0UV")},"data-v-ed5ccc40",null);e.default=r.exports},O0UV:function(t,e){}});
//# sourceMappingURL=21.1edcd36c5466653a5b95.js.map