(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b8dfa23"],{"0cb2":function(e,t,r){var n=r("7b0b"),a=Math.floor,s="".replace,i=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,c,u,l){var d=r+e.length,f=c.length,g=o;return void 0!==u&&(u=n(u),g=i),s.call(l,g,(function(n,s){var i;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(d);case"<":i=u[s.slice(1,-1)];break;default:var o=+s;if(0===o)return n;if(o>f){var l=a(o/10);return 0===l?n:l<=f?void 0===c[l-1]?s.charAt(1):c[l-1]+s.charAt(1):n}i=c[o-1]}return void 0===i?"":i}))}},"1ac5":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[1===e.detail.pricingType&&!e.hasBuy||e.detail.pricingType&&3!==e.memberStatus?n("div",{staticClass:"bottom"},[1===e.detail.pricingType?n("div",{staticClass:"course-btn"},[n("div",{staticClass:"bottom__left"},[n("div",[n("img",{attrs:{src:r("f779")}}),n("span",{staticClass:"price"},[e._v(e._s(0==e.productPrice?"免费":""+e.productPrice))]),e.detail.linePrice>e.productPrice&&0!=e.productPrice&&e.detail.linePrice>0?n("span",{staticClass:"ori-price"},[e._v(e._s(e.detail.linePrice))]):e._e()])]),n("div",{staticClass:"bottom__right",on:{click:e.buyBtn}},[e._v(" 立即购买 ")])]):e._e(),2===e.detail.pricingType?n("div",{staticClass:"member-btn",on:{click:e.buyBtn}},[e._v(" 开通365读书会免费听 ")]):e._e(),e.loginFlag?n("Login",{attrs:{channel:e.channel,courseNo:e.courseNo,"login-flag":e.loginFlag,type:1,source:6,"show-close":""},on:{close:e.close,userInfoFn:e.loginSuccess}}):e._e()],1):e._e()])},a=[],s=(r("e17f"),r("2241")),i=r("1da1"),o=r("5530"),c=(r("96cf"),r("f121")),u=r("60fe"),l=r("163b"),d=r("578a"),f=r("d466"),g=r("2f62"),p={components:{Login:d["a"]},props:{detail:{type:Object,default:function(){return{}}},courseNo:{type:String,default:""},productPrice:{type:String,default:sessionStorage.getItem("productPrice")||0}},data:function(){return{showDialog:!1,dialogImgType:"",memberStatus:0,channel:this.$route.params.channel,isLogin:!1,hasBuy:!1,loginFlag:!1}},created:function(){var e=JSON.parse(localStorage.getItem("setLoginStatus"));this.isLogin=(null===e||void 0===e?void 0:e.flag)||!1,this.isLogin&&(this.getCourseStatus(),this.memberStatus=e.memberStatus)},methods:Object(o["a"])(Object(o["a"])({},Object(g["b"])("agent",["setLoginInfo"])),{},{close:function(){this.loginFlag=!1,this.maskShow=!0,this.$store.dispatch("loginPrompt",!1)},getCourseStatus:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(f["I"])({courseNo:e.courseNo});case 2:r=t.sent,n=r.data,e.hasBuy=!!n.flag,e.setLoginInfo({showLogin:!1,hasBuy:e.hasBuy});case 6:case"end":return t.stop()}}),t)})))()},loginSuccess:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return Object(l["b"])({businessNo:t.courseNo,eventKey:u["k"]}),e.isNew&&Object(l["b"])({businessNo:t.courseNo,eventKey:u["j"]}),t.loginFlag=!1,t.isLogin=!0,t.memberStatus=e.memberStatus,r.next=7,t.getCourseStatus();case 7:if(!(1===t.detail.pricingType&&!t.hasBuy||2===t.detail.pricingType&&3!==e.memberStatus)){r.next=10;break}return t.buyCourse(),r.abrupt("return");case 10:window.location.reload();case 11:case"end":return r.stop()}}),r)})))()},buyBtn:function(){this.isLogin?this.buyCourse():this.loginFlag=!0},buyCourse:function(){var e=this;s["a"].confirm({title:"购买后可学习全部内容",confirmButtonColor:"#FFA241",cancelButtonColor:"#999999"}).then((function(){1===e.detail.pricingType?e.$router.push("/order2/".concat(e.courseNo,"/")):e.$router.push("/memberOrder/".concat(c["d"])),Object(l["b"])({businessNo:e.courseNo,eventKey:u["h"]})}))}})},v=p,h=(r("87f9"),r("2877")),m=Object(h["a"])(v,n,a,!1,null,"5320ed6a",null);t["a"]=m.exports},4076:function(e,t,r){},"4ec9":function(e,t,r){"use strict";var n=r("6d61"),a=r("6566");e.exports=n("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},5319:function(e,t,r){"use strict";var n=r("d784"),a=r("825a"),s=r("50c4"),i=r("a691"),o=r("1d80"),c=r("8aa5"),u=r("0cb2"),l=r("14c3"),d=Math.max,f=Math.min,g=function(e){return void 0===e?e:String(e)};n("replace",2,(function(e,t,r,n){var p=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=n.REPLACE_KEEPS_$0,h=p?"$":"$0";return[function(r,n){var a=o(this),s=void 0==r?void 0:r[e];return void 0!==s?s.call(r,a,n):t.call(String(a),r,n)},function(e,n){if(!p&&v||"string"===typeof n&&-1===n.indexOf(h)){var o=r(t,e,this,n);if(o.done)return o.value}var m=a(e),b=String(this),y="function"===typeof n;y||(n=String(n));var x=m.global;if(x){var w=m.unicode;m.lastIndex=0}var _=[];while(1){var S=l(m,b);if(null===S)break;if(_.push(S),!x)break;var C=String(S[0]);""===C&&(m.lastIndex=c(b,s(m.lastIndex),w))}for(var N="",T=0,L=0;L<_.length;L++){S=_[L];for(var k=String(S[0]),I=d(f(i(S.index),b.length),0),O=[],E=1;E=T&&(N+=b.slice(T,I)+F,T=I+k.length)}return N+b.slice(T)}]}))},5459:function(e,t,r){},"58f0":function(e,t,r){e.exports=r.p+"img/img_blender_overdue.53f86f3e.png"},6566:function(e,t,r){"use strict";var n=r("9bf2").f,a=r("7c73"),s=r("e2cc"),i=r("0366"),o=r("19aa"),c=r("2266"),u=r("7dd0"),l=r("2626"),d=r("83ab"),f=r("f183").fastKey,g=r("69f3"),p=g.set,v=g.getterFor;e.exports={getConstructor:function(e,t,r,u){var l=e((function(e,n){o(e,l,t),p(e,{type:t,index:a(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=n&&c(n,e[u],{that:e,AS_ENTRIES:r})})),g=v(t),h=function(e,t,r){var n,a,s=g(e),i=m(e,t);return i?i.value=r:(s.last=i={index:a=f(t,!0),key:t,value:r,previous:n=s.last,next:void 0,removed:!1},s.first||(s.first=i),n&&(n.next=i),d?s.size++:e.size++,"F"!==a&&(s.index[a]=i)),e},m=function(e,t){var r,n=g(e),a=f(t);if("F"!==a)return n.index[a];for(r=n.first;r;r=r.next)if(r.key==t)return r};return s(l.prototype,{clear:function(){var e=this,t=g(e),r=t.index,n=t.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,r=g(t),n=m(t,e);if(n){var a=n.next,s=n.previous;delete r.index[n.index],n.removed=!0,s&&(s.next=a),a&&(a.previous=s),r.first==n&&(r.first=a),r.last==n&&(r.last=s),d?r.size--:t.size--}return!!n},forEach:function(e){var t,r=g(this),n=i(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:r.first){n(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!m(this,e)}}),s(l.prototype,r?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return h(this,0===e?0:e,t)}}:{add:function(e){return h(this,e=0===e?0:e,e)}}),d&&n(l.prototype,"size",{get:function(){return g(this).size}}),l},setStrong:function(e,t,r){var n=t+" Iterator",a=v(t),s=v(n);u(e,t,(function(e,t){p(this,{type:n,target:e,state:a(e),kind:t,last:void 0})}),(function(){var e=s(this),t=e.kind,r=e.last;while(r&&r.removed)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),l(t)}}},"6d61":function(e,t,r){"use strict";var n=r("23e7"),a=r("da84"),s=r("94ca"),i=r("6eeb"),o=r("f183"),c=r("2266"),u=r("19aa"),l=r("861d"),d=r("d039"),f=r("1c7e"),g=r("d44e"),p=r("7156");e.exports=function(e,t,r){var v=-1!==e.indexOf("Map"),h=-1!==e.indexOf("Weak"),m=v?"set":"add",b=a[e],y=b&&b.prototype,x=b,w={},_=function(e){var t=y[e];i(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(h&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return h&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(h&&!l(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})},S=s(e,"function"!=typeof b||!(h||y.forEach&&!d((function(){(new b).entries().next()}))));if(S)x=r.getConstructor(t,e,v,m),o.REQUIRED=!0;else if(s(e,!0)){var C=new x,N=C[m](h?{}:-0,1)!=C,T=d((function(){C.has(1)})),L=f((function(e){new b(e)})),k=!h&&d((function(){var e=new b,t=5;while(t--)e[m](t,t);return!e.has(-0)}));L||(x=t((function(t,r){u(t,x,e);var n=p(new b,t,x);return void 0!=r&&c(r,n[m],{that:n,AS_ENTRIES:v}),n})),x.prototype=y,y.constructor=x),(T||k)&&(_("delete"),_("has"),v&&_("get")),(k||N)&&_(m),h&&y.clear&&delete y.clear}return w[e]=x,n({global:!0,forced:x!=b},w),g(x,e),h||r.setStrong(x,e,v),x}},"87f9":function(e,t,r){"use strict";r("5459")},"89fe":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"expired"}},[n("div",{staticClass:"expired_box"},[n("img",{attrs:{src:r("58f0")}}),n("div",{staticClass:"expired_text"},[e._v("内容已过期~")])])])}],s={data:function(){return{}}},i=s,o=(r("fbaa"),r("2877")),c=Object(o["a"])(i,n,a,!1,null,"724c6f7c",null);t["a"]=c.exports},b6dc:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"wechat-title",rawName:"v-wechat-title",value:e.productName,expression:"productName"}],staticClass:"container"},[e.isExpired?e._e():r("div",[r("Top",{attrs:{type:e.type,businessNo:e.courseNo}}),r("div",{staticClass:"base-info",style:"background: "+(e.detail.coverColor||"#ffffff")},[r("div",{staticClass:"base-info__box"},[r("img",{staticClass:"base-info__box__image",attrs:{src:e.detail.coverUrl}}),r("div",{staticClass:"base-info__box__right"},[r("div",{staticClass:"base-info__box__title"},[e._v(e._s(e.detail.name))]),r("div",{staticClass:"base-info__box__brief"},[e._v(e._s(e.detail.brief))])])])]),r("div",{staticStyle:{"margin-top":"-0.15rem"}},[r("van-tabs",{attrs:{background:"#F7F7F7","title-active-color":"#333333","title-inactive-color":"#666666",color:"#FFD200","line-width":"0.21rem","line-height":"0.04rem",border:!1},on:{click:e.onClickTab}},e._l(e.tabList,(function(e){return r("van-tab",{key:e.moduleType,attrs:{title:e.moduleName,name:e.moduleType}})})),1),r("div",{directives:[{name:"show",rawName:"v-show",value:6===e.activeTab,expression:"activeTab === 6"}],staticClass:"main"},[r("div",{staticClass:"stage-box",on:{click:function(t){e.drawerVisible=!e.drawerVisible}}},[r("span",[e._v(e._s(e.stageDesc))]),r("span",{staticClass:"drawer-container"},[r("span",{staticClass:"drawer-toggle"},[e._v(e._s(e.curStage.stageTitle))]),r("van-icon",{attrs:{name:"arrow-down"}}),r("ul",{staticClass:"drawer",class:{open:e.drawerVisible}},e._l(e.stageList,(function(t){return r("li",{key:t.stageNo,class:{active:t.stageNo===e.curStage.stageNo},on:{click:function(r){return e.onSelectStage(t)}}},[e._v(" "+e._s(t.stageTitle))])})),0)],1)]),r("div",{staticClass:"tag-box"},e._l(e.secondLabel,(function(t){return r("div",{key:t.moduleId,staticClass:"tag-item",class:{active:t.moduleId===e.curLabel.moduleId},on:{click:function(r){return e.onSelectLabel(t)}}},[e._v(" "+e._s(t.moduleName)+" ")])})),0)]),r("div",{directives:[{name:"show",rawName:"v-show",value:9===e.activeTab||6===e.activeTab&&9===e.curLabel.moduleType,expression:"activeTab === 9 || (activeTab === 6 && curLabel.moduleType === 9)"}],staticClass:"tag-content",domProps:{innerHTML:e._s(e.imageContent.content)}}),r("div",{directives:[{name:"show",rawName:"v-show",value:1===e.activeTab,expression:"activeTab === 1"}],staticClass:"tag-content",domProps:{innerHTML:e._s(e.detail.description)}}),e.showMenu&&e.menuList.length?r("Menu",{staticClass:"main",attrs:{list:e.menuList,type:e.detail.pricingType,"has-catalogue":!!e.catalogueFlag},on:{change:e.changeLesson}}):e._e()],1),r("AgtBottom",{ref:"bottomRef",attrs:{"product-price":e.productPrice.toString(),detail:e.detail,courseNo:e.courseNo}})],1),e.isExpired?r("Expired"):e._e()],1)},a=[],s=(r("e17f"),r("2241")),i=r("1da1"),o=(r("a4d3"),r("e01a"),r("ac1f"),r("5319"),r("4de4"),r("caad"),r("2532"),r("99af"),r("96cf"),r("89fe")),c=r("d466"),u=r("2ff5"),l=r("163b"),d=r("cf45"),f=r("60fe"),g=r("f121"),p=r("e9c9"),v=r("cc0c"),h=r("1ac5"),m=!1,b={name:"Home",components:{Top:p["a"],Expired:o["a"],Menu:v["a"],AgtBottom:h["a"]},data:function(){return{drawerVisible:!1,productPrice:"",channel:"",isExpired:!1,detail:{},courseNo:"",productId:"",type:0,isBuy:0,lessonsType:"",productName:"",tabList:[],activeTab:0,curTab:{},stageList:[],curStage:{},stageDesc:"选择你所在的阶段",secondLabel:[],curLabel:{moduleId:""},imageContent:"",showMenu:!1,menuList:[]}},beforeRouteEnter:function(e,t,r){var n=Object(g["c"])(),a=e.params.channel,s=e.params.productId;m=n?"1633294218594140160"===s&&"232"===a:("1633309731332341760"===s||"1585840002854600704"===s)&&"vkOd6szjh"===a,m?r({path:"/wechat-qrcode"}):r()},computed:{catalogueFlag:function(){return!(1===this.menuList.length&&0===this.menuList[0].showFlag)}},created:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(c["z"])({productId:e.$route.params.productId});case 2:if(r=t.sent,n=r.code,a=r.data,200===n){t.next=7;break}return t.abrupt("return");case 7:e.productName=a.productName,e.productPrice=a.productPrice,e.courseNo=a.businessNo,e.channel=e.$route.params.channel,sessionStorage.setItem("changeAgent",a.changeAgent),sessionStorage.setItem("productId",e.$route.params.productId),sessionStorage.setItem("channel",e.channel),localStorage.setItem("courseNo",e.courseNo),sessionStorage.setItem("productType",a.productType),sessionStorage.setItem("productPrice",a.productPrice),Object(l["b"])({businessNo:e.courseNo,eventKey:f["m"]}),e.getCourseModules(),e.getCourseStatus(),e.getCourseDetail();case 21:case"end":return t.stop()}}),t)})))()},methods:{getCourseStatus:function(){var e=this;Object(c["I"])({courseNo:this.courseNo}).then((function(t){var r=t.code,n=t.data;t.msg;200==r&&(e.isBuy=n.flag)}))},getCourseDetail:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,n,a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(u["j"])({courseNo:e.courseNo});case 2:if(r=t.sent,n=r.code,a=r.data,7001!==n){t.next=10;break}return e.isExpired=!0,t.abrupt("return");case 10:if(200===n){t.next=12;break}return t.abrupt("return");case 12:a.courseCatalogue&&a.courseCatalogue.length&&(e.fileUrl=Object(d["c"])(a.courseCatalogue[0].couresLessons[0].fileUrl),e.lessonsType=a.courseCatalogue[0].couresLessons[0].lessonsType,e.videoTime=a.courseCatalogue[0].couresLessons[0].videoTime,s=a.assistantQRCodeImg?a.assistantQRCodeImg:"",sessionStorage.setItem("assistantQrCodeImg",s),a.description=a.description.replace(/