webpackJsonp([29],{Ti7U:function(t,i){},"mkI/":function(t,i,s){"use strict";s("eqfM");var e=s("/QYm"),n=s("bOdI"),o=s.n(n),a=(s("q/am"),s("4VPn")),c=s.n(a),l=s("S+8+"),h=s.n(l),r=s("97UH"),u=s.n(r),d=s("CCn6"),p={name:"fun",props:["showObj","sc"],components:o()({},c.a.name,c.a),data:function(){return{popupVisible:!1,collectPop:!1,hasCollect:!1,closeUrl:u.a,ageShow:!1,imgPop:!1,startTime:"00:00",overTime:"00:00",range:0,tapToVideo:h.a,playFlag:!1,transformStatus:"",offset:0,timer:null,playType:0|Number(localStorage.getItem("playType"))}},mounted:function(){this.checkCollect()},methods:{imgPopFn:function(){this.imgPop=!0},changeCollect:function(){var t=this;if(this.hasCollect)Object(d.h)(this.hasCollect).then(function(i){t.hasCollect=!1,Object(e.a)("取消收藏"),t.checkCollect()});else{var i={category_id:this.showObj.audio[this.showObj.audioIndex].category_id,type:1,title:this.showObj.audio[this.showObj.audioIndex].title,sub_title:"来自于 "+this.showObj.audio[this.showObj.audioIndex].sub_title,url:this.showObj.audio[this.showObj.audioIndex].link,cover:this.showObj.audio[this.showObj.audioIndex].url};Object(d.b)(i).then(function(i){Object(e.a)("收藏成功"),t.checkCollect()})}},checkCollect:function(){var t=this;if(0==this.sc){var i={url:this.showObj.audio[this.showObj.audioIndex].link};Object(d.N)(i).then(function(i){t.hasCollect=!(i.list.length<1)&&i.list[0].id})}},onPlay:function(){this.$refs.audio.play()},lastOne:function(){this.showObj.audioIndex>0?(this.showObj.audioIndex--,this.keepPlay()):0===this.playType&&this.showObj.audio.length>1?(this.showObj.audioIndex=this.showObj.audio.length-1,this.keepPlay()):Object(e.a)("已经是第一首")},changeIndex:function(t){this.showObj.audioIndex=t,this.popupVisible=!1,this.keepPlay()},keepPlay:function(){var t=this;this.playFlag?this.$nextTick(function(){t.onPlay()}):this.$nextTick(function(){t.onStop()})},nextOne:function(){this.showObj.audioIndex1?(this.showObj.audioIndex=0,this.keepPlay()):Object(e.a)("已经是最后一首")},canPlay:function(){var t=this,i=this.$refs.audio;this.offset=Math.ceil(0|parseInt(i.duration)),this.$nextTick(function(){t.getDuration()})},playing:function(){var t=this,i=this.$refs.audio;this.playFlag=!0,this.$refs.imgItem.classList.add("swin"),this.timer=setInterval(function(){var s=null;s=parseInt(i.currentTime/60)<10?"0"+parseInt(i.currentTime/60):parseInt(i.currentTime/60);var e=parseInt(i.currentTime%60);e<10&&(e="0"+e),t.startTime=s+":"+e,t.range=parseInt(i.currentTime),t.range===t.offset&&0!==t.offset&&(t.range=0,t.startTime="00:00",t.onOver(),clearInterval(t.timer))},1e3)},stopTime:function(){clearInterval(this.timer)},getDuration:function(){var t=null;if(0===this.offset)this.overTime="正在加载中...";else{t=parseInt(this.offset/60)<10?"0"+parseInt(this.offset/60):parseInt(this.offset/60);var i=parseInt(this.offset%60);i<10&&(i="0"+i),this.overTime=t+":"+i}},onStop:function(){this.$refs.audio.pause(),this.playFlag=!1;var t=getComputedStyle(this.$refs.imgItem).transform,i=getComputedStyle(this.$refs.imageBlock).transform;this.$refs.imageBlock.style.transform="none"===i?t:t.concat(" ",i),this.$refs.imgItem.classList.remove("swin")},close:function(){this.showObj.show=!1,this.onStop()},onOver:function(){var t=this;switch(this.playType){case 0:this.showObj.audioIndex2&&(this.timer=setInterval(function(){var t=null;t=parseInt(e.currentTime/60)<10?"0"+parseInt(e.currentTime/60):parseInt(e.currentTime/60);var i=parseInt(e.currentTime%60);i<10&&(i="0"+i),s.startTime=t+":"+i,s.range=parseInt(e.currentTime),s.range==s.offset&&0!==s.offset&&(s.range=0,s.startTime="00:00",s.onOver(),clearInterval(s.timer))},1e3),e.currentTime=t)}}},f={render:function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"audio-page"},[t.showObj.audio?s("div",{staticClass:"content"},[s("img",{staticClass:"colse-btn",attrs:{src:t.closeUrl},on:{click:t.close}}),t._v(" "),s("audio",{ref:"audio",attrs:{id:"audioTag",src:t.showObj.audio[t.showObj.audioIndex].link},on:{durationchange:t.canPlay,play:function(i){t.playing()}}}),t._v(" "),s("div",{staticClass:"hp-left"},[s("div",{staticClass:"hp-top"},[s("div",{staticClass:"title-block"},[s("div",{staticClass:"title"},[t._v(t._s(t.showObj.audio[t.showObj.audioIndex].title))]),t._v(" "),s("div",{staticClass:"tips"},[t._v(t._s(t.showObj.audio[t.showObj.audioIndex].sub_title))])]),t._v(" "),s("div",{ref:"imageBlock",class:{"image-block":!0},on:{click:t.imgPopFn}},[s("img",{ref:"imgItem",attrs:{src:t.showObj.audio[t.showObj.audioIndex].url}})]),t._v(" "),s("div",[s("div",{staticClass:"btn-group hp"},[0===t.playType?s("i",{staticClass:"iconfont icon-icon_change1",on:{click:function(i){t.changeType()}}}):t._e(),t._v(" "),1===t.playType?s("i",{staticClass:"iconfont icon-icon_change",on:{click:function(i){t.changeType()}}}):t._e(),t._v(" "),2===t.playType?s("i",{staticClass:"iconfont icon-icon_changge",on:{click:function(i){t.changeType()}}}):t._e(),t._v(" "),s("i",{staticClass:"iconfont icon-icon_left",on:{click:function(i){t.lastOne()}}}),t._v(" "),t.playFlag?t._e():s("i",{staticClass:"iconfont icon-icon_stop",on:{click:t.onPlay}}),t._v(" "),t.playFlag?s("i",{staticClass:"iconfont icon-icon_begin",on:{click:t.onStop}}):t._e(),t._v(" "),s("i",{staticClass:"iconfont icon-icon_right",on:{click:function(i){t.nextOne()}}}),t._v(" "),s("i",{staticClass:"iconfont icon-icon_list",on:{click:function(i){t.popupVisible=!t.popupVisible}}})])])]),t._v(" "),1==t.sc||t.hasCollect?t._e():s("i",{staticClass:"iconfont icon-icon_like collect",on:{click:t.changeCollect}}),t._v(" "),1!=t.sc&&t.hasCollect?s("i",{staticClass:"iconfont icon-icon_like1 collect",on:{click:t.changeCollect}}):t._e(),t._v(" "),s("div",{staticClass:"range-block"},[s("div",{staticClass:"time-block"},[s("div",{staticClass:"left-time"},[t._v(t._s(t.startTime))]),t._v(" "),s("div",{staticClass:"right-time"},[t._v(t._s(t.overTime))])]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.range,expression:"range"}],style:{backgroundSize:(t.offset?t.range/t.offset*100:0)+"% 100%"},attrs:{type:"range",min:"0",max:t.offset},domProps:{value:t.range},on:{__r:function(i){t.range=i.target.value}}})])]),t._v(" "),s("div",{staticClass:"btn-group"},[0===t.playType?s("i",{staticClass:"iconfont icon-icon_change1",on:{click:function(i){t.changeType()}}}):t._e(),t._v(" "),1===t.playType?s("i",{staticClass:"iconfont icon-icon_change",on:{click:function(i){t.changeType()}}}):t._e(),t._v(" "),2===t.playType?s("i",{staticClass:"iconfont icon-icon_changge",on:{click:function(i){t.changeType()}}}):t._e(),t._v(" "),s("i",{staticClass:"iconfont icon-icon_left",on:{click:function(i){t.lastOne()}}}),t._v(" "),t.playFlag?t._e():s("i",{staticClass:"iconfont icon-icon_stop",on:{click:t.onPlay}}),t._v(" "),t.playFlag?s("i",{staticClass:"iconfont icon-icon_begin",on:{click:t.onStop}}):t._e(),t._v(" "),s("i",{staticClass:"iconfont icon-icon_right",on:{click:function(i){t.nextOne()}}}),t._v(" "),s("i",{staticClass:"iconfont icon-icon_list",on:{click:function(i){t.popupVisible=!t.popupVisible}}})])]):t._e(),t._v(" "),s("mt-popup",{staticStyle:{background:"transparent"},attrs:{position:"bottom"},model:{value:t.popupVisible,callback:function(i){t.popupVisible=i},expression:"popupVisible"}},[t.showObj.audio?s("div",{staticClass:"list-popup"},[t._l(this.showObj.audio,function(i,e){return s("div",{class:{"list-block":!0,active:e===t.showObj.audioIndex},on:{click:function(i){t.changeIndex(e)}}},[t._v("\n "+t._s(i.title)+"\n "),s("i",{class:{playImage:!0,zDefaultIcon:e!==t.showObj.audioIndex,zIcon:e===t.showObj.audioIndex}})])}),t._v(" "),s("div",{staticClass:"close-btn",on:{click:function(i){t.popupVisible=!1}}},[t._v("关闭")])],2):t._e()]),t._v(" "),s("mt-popup",{staticStyle:{background:"transparent"},model:{value:t.imgPop,callback:function(i){t.imgPop=i},expression:"imgPop"}},[t.showObj.audio?s("div",{staticClass:"imgPop-block"},[s("img",{attrs:{src:t.showObj.audio[t.showObj.audioIndex].url}})]):t._e()])],1)},staticRenderFns:[]};var v=s("VU/8")(p,f,!1,function(t){s("Ti7U")},"data-v-0c610ef4",null);i.a=v.exports},"sj+b":function(t,i,s){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=s("CCn6"),n={name:"med",components:{audioPage:s("mkI/").a},data:function(){return{medList:[],showObj:{audio:[],audioIndex:0,show:!1}}},created:function(){this.getBannerListApi()},methods:{getBannerListApi:function(){var t=this;Object(e.c)(2,{limit:999,page:1}).then(function(i){t.medList=i.list,t.showObj.audio=i.list})},goMed:function(t){this.showObj.audioIndex=t,this.showObj.show=!0,this.$refs.audioPage.onPlay(),this.$sa.quick("trackHeatMap",this.$refs.item)},toOut:function(){this.$sa.quick("trackHeatMap",this.$refs.btn),window.location.href="https://wx840a79781fa6f66d.h5.xiaoe-tech.com/content_page/eyJ0eXBlIjozLCJyZXNvdXJjZV90eXBlIjoiIiwicmVzb3VyY2VfaWQiOiIiLCJwcm9kdWN0X2lkIjoicF81YmExZTc4YTcxODAyX0w4QXZxcGZpIiwiYXBwX2lkIjoiYXBwYU5RTGZrdEgzNzE3In0"}}},o={render:function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[t.medList.length>0?s("div",{staticClass:"contentBox med"},[t._m(0),t._v(" "),s("div",{staticClass:"content"},[t._l(t.medList,function(i,e){return s("div",{ref:"item",refInFor:!0,staticClass:"contentItem",on:{click:function(i){t.goMed(e)}}},[s("img",{attrs:{src:i.url,alt:""}}),t._v(" "),s("div",{staticClass:"white"}),t._v(" "),s("div",{staticClass:"text"},[s("div",{staticClass:"title"},[t._v(t._s(i.title))]),t._v(" "),s("div",{staticClass:"enTitle"},[t._v(t._s(i.sub_title))]),t._v(" "),s("div",{staticClass:"lookData"},[s("i",{staticClass:"iconfont icon-yanjing"}),t._v(t._s(i.watch_num)+"人")])])])}),t._v(" "),s("div",{ref:"btn",staticClass:"btn",on:{click:t.toOut}},[t._v("\r\n 获取更多资源\r\n ")])],2)]):t._e(),t._v(" "),t.showObj.audio.length>0?s("audio-page",{directives:[{name:"show",rawName:"v-show",value:t.showObj.show,expression:"showObj.show"}],ref:"audioPage",attrs:{sc:"1",showObj:t.showObj}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,i=this._self._c||t;return i("div",{staticClass:"commonTitle"},[i("span",{staticClass:"line"}),this._v(" "),i("span",{staticClass:"title"},[this._v("磨耳朵")]),this._v(" "),i("span",{staticClass:"tip"},[this._v("每天10分钟 成长看得见")]),this._v(" "),i("div",{staticClass:"more"})])}]};var a=s("VU/8")(n,o,!1,function(t){s("uHYm")},"data-v-3591da98",null);i.default=a.exports},uHYm:function(t,i){}});