(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-de98e30e"],{"0af4":function(e,t,s){"use strict";t["a"]={filters:{playerTimeFormat:function(e){e=+e;var t=parseInt(e/60),s=parseInt(e%60);return t=t>=10?t:"0"+t,s=s>=10?s:"0"+s,t+":"+s}}}},"2a78":function(e,t,s){e.exports=s.p+"img/img_member_vip_head.e5960398.png"},"3ccf":function(e,t,s){e.exports=s.p+"img/mflq_new.859d5a7c.png"},"446a":function(e,t,s){"use strict";s.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vip_page"},[n("Audio",{attrs:{"is-show":e.showPlayer,record:e.curRecord},on:{close:function(t){e.showPlayer=!1},change:function(t){return e.curRecord.isPlay=t}}}),n("img",{staticClass:"header-img",attrs:{src:s("2a78")}}),n("div",{staticClass:"container"},[n("div",{staticClass:"book-list"},[n("div",{staticClass:"head-item"},[n("img",{attrs:{src:"https://test-kodo.shenyiedu.com//image/20230210/1623937483911860224.png"}}),e.firstBook.isPlay?n("img",{staticClass:"play-icon",attrs:{src:s("cd53")},on:{click:function(t){return e.handleClick(e.firstBook)}}}):n("img",{staticClass:"play-icon",attrs:{src:s("8ff8")},on:{click:function(t){return e.handleClick(e.firstBook)}}})]),e._l(e.bookList,(function(t,i){return n("div",{key:i,staticClass:"list-item",class:{one:0===i,two:1===i,three:2===i}},e._l(t,(function(t,i){return n("div",{key:i,staticClass:"book-item"},[n("img",{attrs:{src:t.background}}),t.isPlay?n("img",{staticClass:"play-icon",attrs:{src:s("cd53")},on:{click:function(s){return e.handleClick(t)}}}):n("img",{staticClass:"play-icon",attrs:{src:s("8ff8")},on:{click:function(s){return e.handleClick(t)}}})])})),0)}))],2),n("img",{staticClass:"section-img",attrs:{src:"https://pre-kodo.shenyiedu.com//image/20230228/1630467383493791744.png"}})]),n("div",{staticClass:"vip_bottom"},[e.isShow?n("div",{on:{click:e.buyMember}},[0!==+e.productPrice?n("div",{staticClass:"bgcBtn"},[n("div",{staticClass:"qian"},[n("span",{staticClass:"xiao"},[e._v("¥ ")]),n("span",{staticClass:"je"},[e._v(e._s(e.productPrice))]),n("span",{staticClass:"xiaos"},[e._v("/"+e._s(e.descb?e.descb:"年"))])])]):n("div",{staticClass:"imgs"},[n("img",{attrs:{src:s("3ccf")}})])]):n("div",{staticClass:"bgcBtn no_text"},[e._m(0)])]),e.loginFlag?n("Login",{attrs:{"show-close":"",channel:e.channel,courseNo:e.businessNo,"login-flag":e.loginFlag,type:parseInt(e.type),shareUserNo:e.shareUserNo,source:6},on:{loginsuccess:e.onSuccess,close:function(t){e.loginFlag=!1}}}):e._e()],1)},i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"qian"},[s("span",{staticClass:"je",staticStyle:{"font-size":"0.2rem"}},[e._v("此课程已下架")])])}],r=s("1da1"),o=(s("96cf"),s("fb6a"),s("ac1f"),s("466d"),s("d466")),a=s("578a"),c=s("163b"),u=s("60fe"),l=s("bc3a"),d=s.n(l),p=s("f121"),h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("van-popup",{staticStyle:{background:"transparent"},attrs:{value:e.isShow,position:"right",overlay:!1,"lock-scroll":!1,closeable:!0,"close-on-click-overlay":!1},on:{open:e.onOpen,input:e.onInput,close:function(t){return e.$emit("change",!1)}}},[n("div",{staticClass:"player-bg"},[n("div",{staticClass:"player-status-box"},[n("van-circle",{staticClass:"process",attrs:{rate:parseInt(e.currentTime/e.record.videoTime*100),"layer-color":"#EEEEEE",color:"#FFD200","stroke-width":90,duration:0},model:{value:e.currentRate,callback:function(t){e.currentRate=t},expression:"currentRate"}}),e.record.isPlay?n("img",{staticClass:"play-icon",attrs:{src:s("81b4")},on:{click:e.onClick}}):n("img",{staticClass:"play-icon",attrs:{src:s("76db")},on:{click:e.onClick}})],1),n("div",{staticClass:"info"},[e.isShow?n("van-notice-bar",{staticClass:"title",attrs:{speed:20,background:"none",text:e.record.name}}):e._e(),n("div",{staticClass:"timer"},[e._v(e._s(e._f("playerTimeFormat")(e.currentTime))+"/"+e._s(e._f("playerTimeFormat")(e.record.videoTime)))])],1)]),n("audio",{ref:"audio",attrs:{src:e.record.fileUrl,preload:""}})])},m=[],f=s("0af4"),g={props:{isShow:{type:Boolean,default:!1},record:{type:Object,default:function(){}}},mixins:[f["a"]],computed:{player:function(){return this.$refs.audio}},watch:{"record.isPlay":function(){var e=this;this.$nextTick((function(){e.record.isPlay?e.player.play():e.player.pause()}))},"record.courseNo":function(){var e=this;this.$nextTick((function(){e.player.play()}))}},data:function(){return{currentRate:0,currentTime:0}},methods:{onInput:function(){this.player.load(),this.$emit("close")},onClick:function(){this.$emit("change",!this.record.isPlay)},onOpen:function(){var e=this;this.$nextTick((function(){e.player.play(),e.player.ontimeupdate=function(t){e.currentTime=Math.floor(e.player.currentTime)},e.player.addEventListener("ended",(function(){e.$emit("change",!1)}),!1)}))}}},b=g,A=(s("7432"),s("2877")),v=Object(A["a"])(b,h,m,!1,null,"7b296b69",null),y=v.exports,C={name:"VipActivite",components:{Login:a["a"],Audio:y},data:function(){return{isShow:!0,channel:"",loginFlag:!1,isLogin:!1,userInfo:{},cardInfo:[],app:"123",type:0,businessNo:"0",productPrice:"",shareUserNo:"",descb:"",showPlayer:!1,curRecord:{},bookList:[],firstBook:{},report:{}}},created:function(){this.productId=this.$route.params.productId,this.channel=0==this.$route.params.channel?"":this.$route.params.channel,window.sessionStorage.setItem("channel",this.channel),window.sessionStorage.setItem("productId",this.productId),this.userNoInit(this.channel),Object(c["b"])({eventKey:u["g"],extra:JSON.stringify({agent_name:this.channel})})},mounted:function(){this.getMemberInfo(),this.initDetail(),this.getMemberRecommendCourse()},methods:{getMemberRecommendCourse:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var s,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["W"])();case 2:if(s=t.sent,n=s.code,i=s.data,200===n){t.next=7;break}return t.abrupt("return");case 7:e.firstBook=i[0][0],e.bookList=i.slice(1,4);case 9:case"end":return t.stop()}}),t)})))()},handleClick:function(e){this.curRecord.courseNo===e.courseNo?this.$set(e,"isPlay",!e.isPlay):(this.curRecord.isPlay=!1,this.$set(e,"isPlay",!0)),this.curRecord=e,this.showPlayer=!0,this.report[e.courseNo]||(this.report[e.courseNo]=!0,Object(c["b"])({eventKey:u["e"],extra:JSON.stringify({course_no:e.courseNo,agent_name:this.channel})}))},userNoInit:function(e){var t=this,s="https://agenttest.shenyiedu.com/agent/openapi/userforcode";"https://test.shenyiedu.com/"!=p["b"]&&(s="https://agent.shenyiedu.com/agent/openapi/userforcode");var n={code:e};d.a.post(s,n).then((function(e){200==e.data.code&&(t.shareUserNo=e.data.data.userNo)}))},initDetail:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var s,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["z"])({productId:e.$route.params.productId});case 2:if(s=t.sent,n=s.code,i=s.data,200===n){t.next=8;break}return e.isShow=!1,t.abrupt("return");case 8:e.isShow=!0,sessionStorage.setItem("changeAgent",i.changeAgent),sessionStorage.setItem("memberNo",i.businessNo),e.businessNo=i.businessNo,e.productPrice=i.productPrice,e.descb=i.descb,Object(c["b"])({businessNo:e.businessNo,eventKey:u["m"]});case 15:case"end":return t.stop()}}),t)})))()},onSuccess:function(e){Object(c["b"])({businessNo:this.businessNo,eventKey:u["k"]}),1==e&&Object(c["b"])({businessNo:this.businessNo,eventKey:u["j"]}),this.$router.push("/memberOrders/".concat(this.businessNo)),this.$store.dispatch("loginPrompt",!1),this.loginFlag=this.$store.state.loginPrompt,this.isBuy=this.$store.state.loginStatus.isBuy},getMemberInfo:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var s,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["X"])();case 2:if(s=t.sent,n=s.code,i=s.data,200===n){t.next=7;break}return t.abrupt("return");case 7:e.userInfo=i,e.isLogin=!0;case 9:case"end":return t.stop()}}),t)})))()},appSource:function(){var e=navigator.userAgent,t=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return t?"ios":"android"},buyMember:function(){Object(c["b"])({businessNo:this.businessNo,eventKey:u["i"]}),Object(c["b"])({eventKey:u["f"],extra:JSON.stringify({member_no:this.businessNo,agent_name:this.channel})});var e=window.sessionStorage.getItem("token");e?this.$router.push("/memberOrders/".concat(this.businessNo)):this.loginFlag=!0},handleToLogin:function(){"ios"==this.appSource()?window.webkit.messageHandlers.login.postMessage(""):window.syds.login()}}},k=C,w=(s("9b6f"),Object(A["a"])(k,n,i,!1,null,"ff85b530",null));t["default"]=w.exports},7432:function(e,t,s){"use strict";s("8a51")},"76db":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAwFJREFUaEPlmb9rFEEUx+e7kz094bpgk8o/IAcWIoKNiI2F4A2rpZeIl0aIYKEgkotGI2q0CFikkKiH3Lr7FsRoZWUhosbgb/wD1MoYSGFMvHuywZMz5JLZy+7eLm79Zvb7ed+Z92ZnIVL+IOX6xf8HUCgU9gDYL4TICCFe5XI5e3JycqFTTmo7UCwWN8/Pz08x894VYr8BOElEtzoBoQ2glKoy8+FWIgE8Mgyj5DjO5zhBtACUUjuZ+ZmGsDkAJ+J0QxdglJlPawAsh/humKZ5rFqtftEd026cLsA9ZrYCviQWN7QACoWCJ4Q4GBCgEf4wk8mUonIjDgAfZM4wjEHXdW+3mYSWw+ICiMyNuAFCd6MTAKG60UmAUNzoNECjb0yZpjnQTqVKBMCf5vfd7+JBK1ViABobA8BUNpstVSqVrzolN3EADTeYedDzvDvrQSQSoMmNB9lsdmAtNxIN0OTGcc/z7q7mRuIBmtwYIqJzKyFSA+ALNwzjkOu6TjNEqgAAPCaifWkGWCSiTWkG+EFEW9IM8JKIdqQZ4CgR3UwlAIBKb2/vkXK5XE8VAIA6gOsATjmOU0tVHwDwCUC/67pPW52JEtkH/KwLIa7lcrmz6927JhHgo2ma/bZt69wE6l2vb/BeaL0TceOrrMbMV3t6eobGx8d/ag3ybwF1AqMGAPC+q6urz7btFzp6klSFfgkhLksphx3HWQwqfvm4rTMoCgcAvDUMo89xnGkdDUmqQn7WR6WUI+1mvZNL6DWAPiKa2UjWYwcAsMTMF7q7uy9OTEwshSU+lj0AwM92kYjehCn876emzqRKqcA/OAAsMvP5fD5/qVwu++s+kkerCimlRpj5TAAF06ZpFm3bfhdgTFuhWgCWZR2o1Wr3Nd7gd9DhfD5/JcqsB97EzAyl1BMhxO41IJ5LKf26/kEDNLQQLQf8t1mWta1erxMzb/8nA8ACMw9JKcdWO6+HprTFRNoA/vhSqWTOzs72M/MuIcRWZp6RUt6I++d24CUUdRY3Mv9vPGNJQJYjrkkAAAAASUVORK5CYII="},"81b4":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAATRJREFUaEPtmUFuwjAQRT1W7lJV5TSJpexZtFIPAEvosj0AEl2wj2TnNJVa7hJ5EFsqGMu/giL9bIm+/8OeP4YRd+eP3Ll/R4Bb72DxDnRdN1fVVxF5UNW9iGxSSru/AqjVLwIIIbznnBenZr33HzHGJQqB6JsAfd8/TtP0par+1KiI5KZpZsMwfNdCoPomQNu2z8657QWDL+M4ftYCoPomQAhhnXNenTPovX+LMa5rAVB9AnAHwCPKI8QjxCNkBDia01Z/QPVZxCxiFjGLmLdR6LrOGGWMMkYZo4xRxujFKkDv6/w9YPxxxk7MTsxOzE78zzsxOoCw+gCqb8aoNQJyzj2llH4so+c+R/VNgOPCyBCuBAzRLwI4mqgdg5YAIPrFAKVGrv0eAa79jf+aVd/aALr+AQqIlE8tubKFAAAAAElFTkSuQmCC"},"8a51":function(e,t,s){},"8ff8":function(e,t,s){e.exports=s.p+"img/btn_play.9c284e51.png"},"9b6f":function(e,t,s){"use strict";s("eba2")},cd53:function(e,t,s){e.exports=s.p+"img/btn_pause.f401fbe6.png"},eba2:function(e,t,s){}}]);