Commit 9c2f7c50 authored by IvyXia123's avatar IvyXia123

gg

parent 659be5cf
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([10],{"1fWZ":function(e,t,i){"use strict";var s=i("RfZZ"),r=i("AA6R"),n=i.n(r),a=i("o69Z"),o=i("noWC"),c=i("rhik"),l=i("n8HW"),d=i("+2ln"),u=Object(a.h)("cell"),h=u[0],m=u[1];function v(e,t,i,s){var r=t.icon,o=t.size,u=t.title,h=t.label,v=t.value,f=t.isLink,p=t.arrowDirection,g=i.title||Object(a.c)(u),_=i.default||Object(a.c)(v),b=(i.label||Object(a.c)(h))&&e("div",{class:[m("label"),t.labelClass]},[i.label?i.label():h]),y=g&&e("div",{class:[m("title"),t.titleClass]},[i.title?i.title():e("span",[u]),b]),C=_&&e("div",{class:[m("value",{alone:!i.title&&!u}),t.valueClass]},[i.default?i.default():e("span",[v])]),k=i.icon?i.icon():r&&e(d.a,{class:m("left-icon"),attrs:{name:r}}),$=i["right-icon"],O=$?$():f&&e(d.a,{class:m("right-icon"),attrs:{name:p?"arrow-"+p:"arrow"}}),A={center:t.center,required:t.required,borderless:!t.border,clickable:f||t.clickable};return o&&(A[o]=o),e("div",n()([{class:m(A),on:{click:function(e){Object(c.a)(s,"click",e),Object(l.a)(s)}}},Object(c.b)(s)]),[k,y,C,O,i.extra&&i.extra()])}v.props=Object(s.a)({},o.a,l.b,{clickable:Boolean,arrowDirection:String}),t.a=h(v)},"4aw7":function(e,t,i){"use strict";var s=i("bOdI"),r=i.n(s),n=(i("q/am"),i("4VPn")),a=i.n(n),o=(i("CCn6"),i("4dzY")),c=i.n(o),l={name:"orderCancelDialog",components:r()({},a.a.name,a.a),props:["orderCancel"],data:function(){return{popup_img:c.a}},mounted:function(){},methods:{payOrder:function(){this.$emit("payEven")},dis:function(){this.$emit("cancel")}},watch:{orderCancel:function(){}}},d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("mt-popup",{staticClass:"orderCancel",attrs:{overlay:!0},model:{value:e.orderCancel,callback:function(t){e.orderCancel=t},expression:"orderCancel"}},[i("div",{staticClass:"box"},[i("img",{staticClass:"img",attrs:{src:e.popup_img,alt:""}}),e._v(" "),i("div",{staticClass:"content"},[i("h2",[e._v("参与未成功")]),e._v(" "),i("p",[e._v("真的要放弃孩子启蒙英语的黄金机会吗?")]),e._v(" "),i("p",{staticClass:"warn"},[e._v("每天10分钟,英语启蒙很轻松!")]),e._v(" "),i("div",{staticClass:"btnbox"},[i("div",{staticClass:"btn fal",on:{click:e.dis}},[e._v("含泪放弃")]),e._v(" "),i("div",{staticClass:"btn suc",on:{click:function(t){e.payOrder()}}},[e._v("报名课程")])])])])])},staticRenderFns:[]};var u=i("VU/8")(l,d,!1,function(e){i("wij0")},"data-v-f7863a06",null);t.a=u.exports},"4dzY":function(e,t,i){e.exports=i.p+"static/img/popup_img@2x.afca647.png"},"5FXK":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i("pFYg");var s,r=i("mvHQ"),n=i.n(r),a=(i("eqfM"),i("/QYm")),o=i("bOdI"),c=i.n(o),l=(i("nsZj"),i("px3J"),i("AA6R")),d=i.n(l),u=i("RfZZ"),h=i("o69Z"),m=i("+2ln"),v=i("1fWZ"),f=i("noWC"),p=Object(h.h)("field"),g=p[0],_=p[1],b=g({inheritAttrs:!1,props:Object(u.a)({},f.a,{error:Boolean,leftIcon:String,rightIcon:String,readonly:Boolean,clearable:Boolean,labelAlign:String,inputAlign:String,onIconClick:Function,autosize:[Boolean,Object],errorMessage:String,errorMessageAlign:String,type:{type:String,default:"text"}}),data:function(){return{focused:!1}},watch:{value:function(){this.$nextTick(this.adjustSize)}},mounted:function(){this.format(),this.$nextTick(this.adjustSize)},computed:{showClear:function(){return this.clearable&&this.focused&&""!==this.value&&Object(h.c)(this.value)&&!this.readonly},listeners:function(){return Object(u.a)({},this.$listeners,{input:this.onInput,keypress:this.onKeypress,focus:this.onFocus,blur:this.onBlur})}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},format:function(e){void 0===e&&(e=this.$refs.input);var t=e.value,i=this.$attrs.maxlength;return"number"===this.type&&Object(h.c)(i)&&t.length>i&&(t=t.slice(0,i),e.value=t),t},onInput:function(e){this.$emit("input",this.format(e.target))},onFocus:function(e){this.focused=!0,this.$emit("focus",e),this.readonly&&this.blur()},onBlur:function(e){this.focused=!1,this.$emit("blur",e)},onClickLeftIcon:function(){this.$emit("click-left-icon")},onClickRightIcon:function(){this.$emit("click-icon"),this.$emit("click-right-icon"),this.onIconClick&&this.onIconClick()},onClear:function(e){e.preventDefault(),this.$emit("input",""),this.$emit("clear")},onKeypress:function(e){if("number"===this.type){var t=e.keyCode,i=-1===String(this.value).indexOf(".");t>=48&&t<=57||46===t&&i||45===t||e.preventDefault()}"search"===this.type&&13===e.keyCode&&this.blur(),this.$emit("keypress",e)},adjustSize:function(){var e=this.$refs.input;if("textarea"===this.type&&this.autosize&&e){e.style.height="auto";var t=e.scrollHeight;if(Object(h.d)(this.autosize)){var i=this.autosize,s=i.maxHeight,r=i.minHeight;s&&(t=Math.min(t,s)),r&&(t=Math.max(t,r))}t&&(e.style.height=t+"px")}},renderInput:function(){var e=this.$createElement,t={ref:"input",class:_("control",this.inputAlign),domProps:{value:this.value},attrs:Object(u.a)({},this.$attrs,{readonly:this.readonly}),on:this.listeners};return"textarea"===this.type?e("textarea",d()([{},t])):e("input",d()([{attrs:{type:this.type}},t]))},renderLeftIcon:function(){var e=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return e("div",{class:_("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||e(m.a,{attrs:{name:this.leftIcon}})])},renderRightIcon:function(){var e=this.$createElement,t=this.slots;if(t("right-icon")||t("icon")||this.rightIcon||this.icon)return e("div",{class:_("right-icon"),on:{click:this.onClickRightIcon}},[t("right-icon")||t("icon")||e(m.a,{attrs:{name:this.rightIcon||this.icon}})])}},render:function(e){var t,i=this.slots,s=this.labelAlign,r={icon:this.renderLeftIcon};return i("label")&&(r.title=function(){return i("label")}),e(v.a,{attrs:{icon:this.leftIcon,size:this.size,title:this.label,center:this.center,border:this.border,isLink:this.isLink,required:this.required,titleClass:_("label",s)},class:_((t={error:this.error,disabled:this.$attrs.disabled},t["label-"+s]=s,t["min-height"]="textarea"===this.type&&!this.autosize,t)),scopedSlots:r},[e("div",{class:_("body")},[this.renderInput(),this.showClear&&e(m.a,{attrs:{name:"clear"},class:_("clear"),on:{touchstart:this.onClear}}),this.renderRightIcon(),i("button")&&e("div",{class:_("button")},[i("button")])]),this.errorMessage&&e("div",{class:_("error-message",this.errorMessageAlign)},[this.errorMessage])])}}),y=(i("OWWB"),i("CCn6")),C=i("4aw7"),k=i("xpkA"),$=i.n(k),O=i("qUD4"),A=i("NuXJ"),P={name:"ybOrderRender",data:function(){return{addressInfo:{},open:!1,link:!0,orderParams:{name:"",mobile:"",verify_code:"",address:""},showAddressPicker:!1,addressArea:"",time:0,invite_code:"",this_code:"",groupDetail:{},orderCancel:!1,imgprize:$.a,deliverDetail:{},query:{},jsApiParameters:"",orderFlag:!1}},components:(s={},c()(s,v.a.name,v.a),c()(s,b.name,b),c()(s,"MyAddress",O.a),c()(s,"orderCancelDialog",C.a),s),mounted:function(){this.initPage()},methods:{test:function(){this.showAddressPicker=tr},buttonClick:function(e,t){this.$sa.track("buttonClick",{tabTitle:"商品",moduleTitle:"详情页",buttonType:e,buttonName:t})},getAddressCode:function(){this.addressData.province_name;for(var e=this.addressData.city_name,t=(this.addressData.area_name,void 0),i=void 0,s=void 0,r=0,n=A.a.length;r<n;r++){var a=A.a[r];if(e==a.label){t=a.value;for(var o=a.children,c=0,l=o.length;c<l;c++){var d=o[c];if(e==d.label){i=d.value;for(var u=d.children,h=0,m=u.length;h<m;h++)if(u[h].label){s=u[h].value;break}}}}}this.addressAreaCode=t+"-"+i+"-"+s},payOrder:function(){var e=this,t={};if(!this.orderParams.name)return Object(a.a)("收货人不能为空"),!1;if(!this.orderParams.mobile)return Object(a.a)("手机号不能为空"),!1;if(!/^1\d{10,12}$/.test(this.orderParams.mobile))return Object(a.a)("手机号格式不正确"),!1;if(!this.addressArea)return Object(a.a)("所在地区不能为空"),!1;if(!this.orderParams.verify_code)return Object(a.a)("验证码不能为空"),!1;if(!this.orderParams.address)return Object(a.a)("详细地址不能为空"),!1;var i=this.addressAreaCode.split("-"),s=this.addressArea.split("-");t.receive_name=this.orderParams.name,t.receive_mobile=this.orderParams.mobile,t.address=this.orderParams.address,t.province_id=i[0],t.province_name=s[0],t.city_id=i[1],t.city=s[1],t.area_id=i[2],t.area=s[2],t.verify_code=this.orderParams.verify_code,Object(y._6)(t).then(function(t){e.pay()})},pay:function(){var e=this;this.orderCancel=!1;var t={goods_id:50};2!==this.groupDetail.goods_type||this.type||(t.buy_type=2),this.invite_code&&(t.invite_code=this.invite_code),this.saleObj&&(t.order_coupon_id=this.saleObj.id);this.$route.query.invite_code;window.location.href.indexOf("gdt_vid")>-1&&(t.gdt_vid=this.$route.query.gdt_vid),window.location.href.indexOf("cct_user_id")>-1&&(t.cct_user_id=this.$route.query.cct_user_id),window.location.href.indexOf("redeem_code")>-1&&(t.redeem_code=this.$route.query.redeem_code),window.location.href.indexOf("cct_user_id")>-1&&(t.cct_user_id=this.$route.query.cct_user_id),this.orderFlag=!1,Object(y._2)(t).then(function(i){if(i.out_trade_no&&!i.appId)e.$router.push({name:"ybPaySuccess",query:that.$route.query});else{var s=e;e.orderNo=i.out_trade_no,e.jsApiParameters=i,wx.miniProgram.getEnv(function(e){if(e.miniprogram){var i=encodeURIComponent(n()(t));wx.miniProgram.navigateTo({url:"pages/wxPay/main?payParam="+i})}else"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",s.jsApiCall,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",s.jsApiCall),document.attachEvent("onWeixinJSBridgeReady",s.jsApiCall)):s.jsApiCall()})}}).catch(function(t){e.orderFlag=!0})},jsApiCall:function(){var e=this;WeixinJSBridge.invoke("getBrandWCPayRequest",this.jsApiParameters,function(t){e.orderFlag=!0,"get_brand_wcpay_request:ok"===t.err_msg&&(Object(a.a)("支付成功"),setTimeout(function(){e.$router.push({name:"ybPaySuccess",query:e.$route.query})},1e3)),t.err_msg,"get_brand_wcpay_request:cancel"===t.err_msg&&(e.orderCancel=!0)})},timeO:function(){var e=this;this.time>0&&(this.time--,setTimeout(function(){e.timeO()},1e3))},sendCode:function(){var e=this,t={};if(!this.orderParams.mobile.match(/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/))return Object(a.a)("请正确填写手机号"),!1;t.mobile=this.orderParams.mobile,this.time=30,this.timeO(),this.$sa.track("clickSendcode",{}),Object(y._12)(t).then(function(t){"操作成功"===t?Object(a.a)("验证码已发送"):(e.time=0,Object(a.a)(t))}).catch(function(e){})},hidePicker:function(){this.showAddressPicker=!1},saveAddress:function(e,t){this.addressArea=e,this.addressAreaCode=t,this.showAddressPicker=!this.showAddressPicker},initPage:function(){var e=this;this.invite_code=this.$route.query.invite_code,Object(y.W)({redeem_code:this.$route.query.redeem_code}).then(function(t){1==t.res?e.$router.push({name:"ybOrderRender",query:e.$route.query}):2==t.res||4==t.res?e.$router.push({name:"ybPaySuccess",query:e.$route.query}):window.location.href="https://ebiz.aia.com.cn/salesplus/goodstart/singing-English-Index.action?parentId="+e.$route.query.parentId+"&agentId="+e.$route.query.agentId}),Object(y.N)().then(function(t){var i=t;e.addressData=i,e.orderParams.name=i.receive_name,e.orderParams.mobile=i.receive_mobile,e.orderParams.address=i.address,e.deliverId=i.id,e.addressArea=i.province_name+"-"+i.city+"-"+i.area,e.getAddressCode()});var t=this.invite_code;Object(y.q)(50).then(function(i){e.groupDetail=i,e.$sa.track("ViewDetailPageAIA",{goodsID:e.groupDetail.id.toString(),courseCate:1===e.groupDetail.course_type?"体验课":"正式课",lessonNumber:e.groupDetail.watch_num,goodsName:e.groupDetail.name,coursePrice:Number(e.groupDetail.original_price/100),discountPrice:Number(e.groupDetail.current_price/100),courseID:e.groupDetail.course_id,courseName:"",salesType:t?t.split("-")[1]:"null",salesID:t?Number(t.split("-")[2]):0})}),this.user_id=JSON.parse(localStorage.getItem("userDesc")).user_id,this.onShare()},handleInviteCode:function(){if(this.invite_code){var e=this.invite_code.split("-"),t=e[0]+"-"+e[1];this.this_code=t+"-"+this.user_id}else this.this_code="CC-AIA-"+this.user_id},onShare:function(e){this.handleInviteCode();var t="https://wechat.changchangenglish.com/#/ybNav?parentId="+this.$route.query.parentId+"&agentId="+this.$route.query.agentId;this.enableShare({product_title:"【免费领】价值498元亲子早教英语启蒙训练课",desc:"友邦助您启蒙宝贝快乐家庭",shareIcon:"https://cdn.singsingenglish.com/new-sing/6c51175a99f73ee3a410ea9fbf66123f9f49f0f6.png",shareUrl:t})},enableShare:function(e){Object(y.Y)({api_list:"onMenuShareAppMessage,onMenuShareTimeline",url:window.location.href.split("#")[0]}).then(function(t){wx.config({debug:!1,appId:t.appId,timestamp:parseInt(t.timestamp),nonceStr:t.nonceStr,signature:t.signature,jsApiList:t.jsApiList}),wx.ready(function(){wx.onMenuShareTimeline({title:"【庆百年 友惊喜】暑期亲子礼︱价值498元唱唱启蒙英语线上课程免费领",desc:"【庆百年 友惊喜】暑期亲子礼︱价值498元唱唱启蒙英语线上课程免费领",link:e.shareUrl,imgUrl:e.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}}),wx.onMenuShareAppMessage({title:"【庆百年 友惊喜】暑期亲子礼",desc:"价值498元唱唱启蒙英语线上课程免费领",link:e.shareUrl,imgUrl:e.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}})})})}}},x={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ybOrderRender"},[i("div",{staticClass:"container"},[i("p",{staticClass:"title"},[e._v("*课程教材收货地址")]),e._v(" "),i("div",{staticClass:"content"},[e.open?e._e():i("van-cell",{ref:"order",attrs:{title:"收货地址",value:"点击填写","is-link":""},on:{click:function(t){e.open=!0,e.buttonClick("按钮点击","友邦点击填写")}}}),e._v(" "),e.open?i("div",[i("van-field",{attrs:{type:"text",label:"收货人",placeholder:"请输入收货人"},model:{value:e.orderParams.name,callback:function(t){e.$set(e.orderParams,"name",t)},expression:"orderParams.name"}}),e._v(" "),i("van-field",{attrs:{type:"tel",label:"手机号",placeholder:"请输入手机号"},model:{value:e.orderParams.mobile,callback:function(t){e.$set(e.orderParams,"mobile",t)},expression:"orderParams.mobile"}}),e._v(" "),i("van-field",{attrs:{maxlength:"4",type:"number",label:"验证码",placeholder:"请输入短信验证码"},model:{value:e.orderParams.verify_code,callback:function(t){e.$set(e.orderParams,"verify_code",t)},expression:"orderParams.verify_code"}},[0==e.time?i("van-button",{attrs:{slot:"button",plain:"",round:"",size:"small",type:"primary"},on:{click:function(t){e.sendCode(),e.buttonClick("按钮点击","友邦发送验证码")}},slot:"button"},[e._v("发送验证码")]):e._e(),e._v(" "),e.time>0?i("van-button",{attrs:{slot:"button",plain:"",round:"",size:"small",disabled:"",type:"primary"},slot:"button"},[e._v(e._s(e.time)+"s后重新发送")]):e._e()],1),e._v(" "),i("div",{staticStyle:{position:"relative"}},[i("van-field",{attrs:{type:"text",label:"所在地区","is-link":e.link,placeholder:"请选择"},model:{value:e.addressArea,callback:function(t){e.addressArea=t},expression:"addressArea"}}),e._v(" "),i("div",{staticClass:"clickItem",on:{click:function(t){e.showAddressPicker=!0}}})],1),e._v(" "),i("van-field",{attrs:{type:"text",label:"详细地址",placeholder:"请输入详细地址"},model:{value:e.orderParams.address,callback:function(t){e.$set(e.orderParams,"address",t)},expression:"orderParams.address"}})],1):e._e()],1)]),e._v(" "),i("div",{staticClass:"container"},[i("p",{staticClass:"title"},[e._v("订单信息")]),e._v(" "),i("div",{staticClass:"content"},[e._m(0),e._v(" "),i("div",{staticClass:"line"}),e._v(" "),i("div",{staticClass:"main"},[e._m(1),e._v(" "),e._m(2),e._v(" "),i("div",{staticClass:"info"},[i("p",{staticStyle:{"margin-top":"6px"}},[e._v("课程教材(共31件)")]),e._v(" "),i("img",{staticClass:"imgprize",attrs:{src:e.imgprize,alt:""}})])])])]),e._v(" "),i("div",{staticClass:"bottom"},[e._m(3),e._v(" "),i("div",{staticClass:"right"},[i("van-button",{staticClass:"pay-btn",attrs:{slot:"button",round:"",size:"normal",type:""},on:{click:function(t){e.payOrder(),e.buttonClick("按钮点击","友邦去支付")}},slot:"button"},[e._v("去支付")])],1)]),e._v(" "),i("my-address",{attrs:{showAddressPicker:e.showAddressPicker,init:e.addressArea},on:{"save-address":e.saveAddress,"hide-picker":e.hidePicker}}),e._v(" "),e.orderCancel?i("order-cancel-dialog",{attrs:{orderCancel:e.orderCancel},on:{cancel:function(t){e.orderCancel=!1},payEven:e.pay}}):e._e()],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"top"},[t("div",{staticClass:"left"},[t("div",[this._v("唱唱启蒙英语精品课(适合1-5岁)")]),this._v(" "),t("p",[this._v("课时10天")])]),this._v(" "),t("div",{staticClass:"right"},[this._v("\n ¥0\n ")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"tip"},[t("span",[this._v("[优惠]")]),this._v("限时福利,0元专享10节课\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"tip"},[t("span",[this._v("[赠品]")]),this._v("配套教材礼包\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"left"},[t("div",[this._v("邮费:"),t("span",[this._v("¥5.0")])])])}]};var j=i("VU/8")(P,x,!1,function(e){i("Otln"),i("F1Ah")},"data-v-3a841440",null);t.default=j.exports},F1Ah:function(e,t){},OWWB:function(e,t,i){"use strict";var s=i("nsZj");i.n(s)},Otln:function(e,t){},noWC:function(e,t,i){"use strict";i.d(t,"a",function(){return s});var s={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,titleClass:null,valueClass:null,labelClass:null,title:[String,Number],value:[String,Number],label:[String,Number],border:{type:Boolean,default:!0}}},px3J:function(e,t){},wij0:function(e,t){},xpkA:function(e,t,i){e.exports=i.p+"static/img/imghh@2x.d05217f.png"}});
\ No newline at end of file
webpackJsonp([8],{"+4G6":function(t,s,e){"use strict";var i=e("RfZZ"),n=e("AA6R"),o=e.n(n),a=e("o69Z"),r=e("rhik"),c=e("CsZI"),l=e("+2ln"),u=e("pIDD"),p=e("qYlo"),d=Object(a.h)("actionsheet"),h=d[0],_=d[1];function g(t,s,e,i){var n=s.title,a=s.cancelText,c=function(){Object(r.a)(i,"input",!1),Object(r.a)(i,"cancel")};return t(p.a,o()([{class:_(),attrs:{value:s.value,position:"bottom",overlay:s.overlay,lazyRender:s.lazyRender,getContainer:s.getContainer,closeOnClickOverlay:s.closeOnClickOverlay},on:{input:function(t){Object(r.a)(i,"input",t)}}},Object(r.b)(i)]),[n?t("div",{class:[_("header"),"van-hairline--top-bottom"]},[n,t(l.a,{attrs:{name:"close"},class:_("close"),on:{click:c}})]):s.actions.map(function(s,e){return t("div",{class:[_("item",{disabled:s.disabled||s.loading}),s.className,"van-hairline--top"],on:{click:function(t){t.stopPropagation(),s.disabled||s.loading||(s.callback&&s.callback(s),Object(r.a)(i,"select",s,e))}}},[s.loading?t(u.a,{class:_("loading"),attrs:{size:"20px"}}):[t("span",{class:_("name")},[s.name]),s.subname&&t("span",{class:_("subname")},[s.subname])]])}),e.default&&t("div",{class:_("content")},[e.default()]),a&&t("div",{class:_("cancel"),on:{click:c}},[a])])}g.props=Object(i.a)({},c.a.props,{title:String,actions:Array,cancelText:String,overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),s.a=h(g)},"+wl/":function(t,s,e){t.exports=e.p+"static/img/nextUnit.f575be1.png"},"064q":function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAALVBMVEVHcEzm5ubl5eXo6Ojl5eXn5+fk5OTk5OTn5+fm5ubm5ubu7u7p6ens7Ozi4uK0qOZPAAAAC3RSTlMA/u5GimDaGA14ujRrE5cAAAGMSURBVCjPlZK/S8NQEMeDNdZuPiviEIqKqEMJcVA3EcFVWnDu0k1Uiu4i4uImuHQSJ0cH1/CGVN0ug1U7+HJD+ge8v8G7JC/VZvKGUj65H9/v3bOs/8dWu8im3WGnACe13i3AM63XCvBAx3PjrOxq0esUWsYQjDe90gLC9TF4rx2A13GVMSD2L//AClVjBL+bljf3YidExJW7TMD54aOrOZECRO1of5v2oDliB0KFIQRCx7ptUZYWIgCqVpQaiJoeWqfMnIRJDCMAEPNWi6xARP2UkhKpAwRVy2YryKN9n2eRsIZltWgwFyvf51QM30iSzV5Q+kkQjjwWukO6lZ8F4kuivsTCMyrx3Us9bbDFFCqsZtZLS2B64rNnFtIEk4kf+ZaaVJ/Br9ElR/Azh08GSvzOoSsMlP188ZqgYu/kx5ypxFAqXqiMvPxqyYHSHTXy18FwcMJfInPQKYYDzz6GMFIPGZyg1zGgMrsOCIsZvIhFL2lVqQMs5I9rtpv+u6kHM2b6atdIvl6+pd8frsIfkLbTcagAAAAASUVORK5CYII="},"1Uto":function(t,s,e){t.exports=e.p+"static/img/mok4.4ffec77.png"},"3QU7":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("mvHQ"),n=e.n(i),o=(e("eqfM"),e("/QYm")),a=e("bOdI"),r=e.n(a),c=(e("zH3V"),e("+4G6")),l=e("CCn6"),u=e("QkSs"),p=e.n(u),d=e("064q"),h=e.n(d),_=e("e2Pt"),g=e.n(_),m=e("1Uto"),v=e.n(m),y=(e("v2ns"),e("7QTg")),f=e("2oJL"),A=e("3xxH"),C=e.n(A),L=e("+wl/"),w=e.n(L),I=e("wQkO"),b=e.n(I),k=e("C5QI"),S=e.n(k),D={name:"mapDefault",components:r()({swiper:y.swiper,swiperSlide:y.swiperSlide,bottomTab:f.a},c.a.name,c.a),data:function(){var t=this;return{zhong:S.a,actions:[],secActions:{},adVisible:!1,actionsheetShow:!1,star_act:p.a,star_def:h.a,shopType:this.$route.query.course_type,diaBGI:g.a,mok4:v.a,goodsID:"",themeName:"",course_id:"",push_time:"",course_name:"",nextUnitUrl:w.a,parent_category_id:this.$route.query.parent_category_id,unitList:[],more:!1,errorURL:C.a,popupVisible:!1,lessonList:[],lesson:"",classID:"",noLesson:!1,hpLessonList:[],thisLesson:null,btn_kechegn:b.a,swiperOption:{width:.25*window.innerWidth,on:{slideChangeTransitionStart:function(){this.activeIndex>=t.swiper.slides.length-4&&t.more&&t.swiper.slidePrev()},resize:function(){this.params.width=.25*window.innerWidth,this.update(!0)}},pagination:{el:".swiper-pagination"}},swiperOption2:{slidesPerView:5,navigation:{nextEl:".banner-right",prevEl:".banner-left"},on:{slideChangeTransitionStart:function(){this.activeIndex==t.swiper2.slides.length-5&&t.more&&t.swiper2.slidePrev()}},pagination:{el:".swiper-pagination"}},swiperOptionLesson:{slidesPerView:"auto",spaceBetween:20},userCourse:{},teacher_alias:!1,teacher_qr:""}},created:function(){this.initPage()},filters:{substr10:function(t){return t.substr(0,10)}},computed:{swiper:function(){return 0==this.shopType?this.$refs.mySwiper.swiper:""},swiper2:function(){return 0==this.shopType?this.$refs.mySwiper2.swiper:""},swiperLesson:function(){return this.$refs.mySwiperLesson.swiper},splitContent:function(){var t=[];return this.thisLesson.content.tips.title1_content&&(t=this.thisLesson.content.tips.title1_content.split("\n")),t}},methods:{initPage:function(){var t=this;sessionStorage.setItem("frist",!0),o.a.loading({mask:!0,message:""}),this.$route.query.periods_id?Object(l.n)(this.$route.query.periods_id).then(function(s){localStorage.setItem("userCourse",""),t.userCourse=t.$common.deepCopy(s),localStorage.setItem("userCourse",n()(s)),t.setCourse()}):localStorage.getItem("userCourse")?(this.userCourse=JSON.parse(localStorage.getItem("userCourse")),this.setCourse()):Object(l.n)().then(function(s){localStorage.setItem("userCourse",""),t.userCourse=t.$common.deepCopy(s),localStorage.setItem("userCourse",n()(s)),t.setCourse()}),this.userCourse.teacher_alias&&1==this.userCourse.teacher_alias.substr(0,1)&&(this.teacher_alias=!0,this.teacher_qr=this.userCourse.teacher_qr)},adControl:function(){if(-1==document.cookie.indexOf("myad=1")){var t=new Date;t.setHours(t.getHours()+24),document.cookie="myad=1;expires="+t.toGMTString(),this.adVisible=!0}},onSelect:function(t){var s=this;this.actionsheetShow=!1,this.shopType=t.course_type,"x"==t.id?this.$router.replace({name:"secMap",query:{}}):(this.secActions=t,this.shopType=t.course_type,this.actions.forEach(function(t){t.className="",t.id==s.secActions.id&&(t.className="activit")}),t.is_start_course?0==this.secActions.course_type?this.getUnitList():this.getLessonList():(this.userCourse=t,this.unitList=[],this.lessonList=[],document.documentElement.scrollTop=0,document.body.scrollTop=0))},findUnit:function(t){return this.unitList.find(function(s){return s.category_id==t})},dateParse:function(t){var s;return s=t.indexOf("-")>-1?t.split("-"):t.indexOf("/")>-1?t.split("/"):t.split("."),new Date(s[0],s[1]-1,s[2])},dateCompare:function(t){var s=(new Date).getTime(),e=t.getTime();return e>s?1:e==s?0:-1},goDetail:function(){if(this.$sa.track("StartCourse",{elementID:this.thisLesson.id.toString(),dayModule:this.thisLesson.domTitle.slice(0,9),weekName:this.thisLesson.domTitle.slice(10,this.thisLesson.domTitle.length),elementName:this.thisLesson.domTitle.slice(0,9)+"-"+this.thisLesson.domTitle.slice(10,this.thisLesson.domTitle.length),themeID:this.parent_category_id,themeName:this.themeName,goodsID:this.goodsID,classID:this.classID,is_view_today:!!(new Date).setHours(0,0,0,0)===new Date(this.push_time).setHours(0,0,0,0)}),this.thisLesson.content.tips){var t={periods_id:this.secActions.id,category_id:this.thisLesson.categoryId,elementId:this.thisLesson.id,course_type:this.shopType,parent_category_id:this.parent_category_id},s=JSON.parse(n()(this.thisLesson));s.push_time=this.push_time,s.themeID=this.parent_category_id,s.themeName=this.themeName,s.goodsID=this.goodsID,s.classID=this.classID,s.nowTime=Date.parse(new Date),s.course_title=this.secActions.course_title,localStorage.setItem("lessonDetail",n()(s)),this.$router.push({name:"newLesson",query:t})}else{var e={periods_id:this.secActions.id,category_id:this.thisLesson.categoryId,parent_category_id:this.parent_category_id,element_id:this.thisLesson.id,course_type:this.shopType,type:"1"};this.$router.push({name:"lesson",query:e})}},changeCateGory:function(t,s,e){e==this.swiper.activeIndex&&0!=this.swiper.activeIndex?this.swiper.slideTo(this.swiper.activeIndex-1,800,!1):e>this.swiper.activeIndex+2&&e!=this.unitList.length-1&&this.swiper.slideTo(this.swiper.activeIndex+1,800,!1),this.themeName=t.category_name.toString(),this.$sa.track("selectCategory",{themeID:t.category_id.toString(),themeName:t.category_name.toString(),courseID:this.course_id.toString(),goodsID:this.goodsID,classID:this.classID}),s||(this.parent_category_id=t.category_id,this.$router.push({name:"map",query:{periods_id:this.secActions.id,course_type:this.shopType,parent_category_id:this.parent_category_id}}),this.getLessonList(!0))},showDia:function(t,s){var e=this;"0000-00-00"!==t.push_time?Object(l.v)(this.secActions.id,t.id,t.ele_id).then(function(i){i.content=JSON.parse(i.content),e.thisLesson=i,e.thisLesson.id=t.ele_id.toString(),e.thisLesson.categoryId=t.id,e.thisLesson.domTitle=t.name,e.thisLesson.day=s,e.thisLesson.star_num=t.star_num;var o={periods_id:e.secActions.id,category_id:e.thisLesson.categoryId,elementId:e.thisLesson.id,course_type:e.shopType,parent_category_id:e.parent_category_id};e.$store.dispatch("setClassQuery",o),sessionStorage.setItem("classQuery",n()(o)),e.popupVisible=!0,e.push_time=t.push_time,e.$sa.track("selectElement",{elementID:t.ele_id.toString(),dayModule:t.name.slice(0,9),weekName:t.name.slice(10,t.name.length),elementName:t.name.slice(0,9)+"-"+t.name.slice(10,t.name.length),themeID:e.parent_category_id.toString(),themeName:e.parent_category_id.toString(),goodsID:e.goodsID,classID:e.classID,courseID:e.course_id.toString()})}):Object(o.a)("课程还未开始哦")},getUnitList:function(){var t=this;Object(l.o)(this.secActions.id).then(function(s){t.unitList=[],s.forEach(function(s){1!==s.status&&2!==s.status||(t.unitList.push(s),2===s.status&&(t.parent_category_id=s.category_id))}),t.$route.query.parent_category_id&&1!=s.length&&(t.parent_category_id=t.$route.query.parent_category_id),t.getLessonList(),s.find(function(t){return 0===t.status})&&(t.more=!0),t.$nextTick(function(){var s=null,e=null;t.unitList.forEach(function(i,n){i.category_id==t.parent_category_id&&(setTimeout(function(){t.themeName=i.category_name,t.$sa.track("selectCategory",{themeID:i.category_id.toString(),themeName:i.category_name.toString(),courseID:t.course_id.toString(),goodsID:t.goodsID,classID:t.classID})},1e3),s=n>=3?n-3:0,e=n>=4?n-4:0)}),t.$refs.mySwiper.swiper.slideTo(s,800,!1),t.$refs.mySwiper2.swiper.slideTo(e,800,!1)})})},getLessonList:function(t){var s=this;Object(l.w)(this.secActions.id+"/v2",{category_id:this.parent_category_id}).then(function(e){s.course_id!==e.periods_info.course_id&&(s.course_id=e.periods_info.course_id,s.course_name=e.periods_info.title,s.goodsID=e.periods_info.goods_id,s.classID=e.periods_info.class_id,s.$sa.track("EnterCourse",{goodsID:e.periods_info.goods_id,classID:e.periods_info.class_id})),s.lessonList=[],s.hpLessonList=[],s.noLesson=!!e.list.length<1;for(var i=[],n=0,o=0;o<e.list.length;o++)"0000-00-00"!==e.list[o].push_time&&n++,e.list[o].name.indexOf("Day1")>-1&&i.length>0?(s.lessonList.push(i),(i=[]).push(e.list[o])):(i.push(e.list[o]),o==e.list.length-1&&s.lessonList.push(i)),e.list[o].dayText="DAY "+i.length,s.hpLessonList.push(e.list[o]);t?(s.scroll_to(0),s.swiperLesson.slideTo(0)):s.$nextTick(function(){if(n!==s.hpLessonList.length?s.swiperLesson.slideTo(n-1):s.$route.query.category_id,s.$route.query.category_id){var t=document.getElementsByClassName("cid"+s.$route.query.category_id);if(t.length>0&&"none"!==t[0].style.display){s.scroll_to(t[0].offsetTop);var e=null,i=0;s.lessonList.forEach(function(t){t.forEach(function(t,n){t.id==s.$route.query.category_id&&(e=t,i=n+1)})}),s.showDia(e,i)}}else s.$route.query.back_id?setTimeout(function(){var t=document.getElementsByClassName("cid"+s.$route.query.back_id);t.length>0&&"none"!==t[0].style.display&&s.scroll_to(t[0].offsetTop)},300):setTimeout(function(){var t=document.getElementsByClassName("money");t.length>0&&0!==t[0].offsetLeft&&s.scroll_to(t[0].offsetParent.offsetTop)},300)})})},scroll_to:function(t){for(var s=t-200,e=function(t){var e=document.documentElement.scrollTop|document.body.scrollTop,i=e-s;setTimeout(function(){document.documentElement.scrollTop=e-i/30*t,document.body.scrollTop=e-i/30*t},10*t)},i=0;i<30;i++)e(i)},setCourse:function(){var t=this;if(this.userCourse.automation_id&&this.userCourse.automation_id.length>0){var s={name:"VIP高效体验营",id:"x"};this.actions.push(s),o.a.clear()}this.userCourse.periods_list?(this.userCourse.periods_list.forEach(function(s){s.name=s.course_title,t.actions.push(s),t.$route.query.item?t.secActions=t.$route.query.item:null!=t.userCourse.start_periods_id&&0==t.userCourse.start_periods_id?t.secActions=t.userCourse.periods_list[0]:null!=t.userCourse.start_periods_id&&s.id==t.userCourse.start_periods_id&&(t.secActions=s)}),o.a.clear()):this.$router.replace({name:"secMap",query:{}}),this.actions.forEach(function(s){s.className="",s.id==t.secActions.id&&(s.className="activit")}),this.shopType=this.secActions.course_type,this.secActions.is_start_course&&(0==this.secActions.course_type?this.getUnitList():this.getLessonList())},timerClick:function(){alert(999)}}},x={render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("van-actionsheet",{attrs:{actions:t.actions},on:{select:t.onSelect},model:{value:t.actionsheetShow,callback:function(s){t.actionsheetShow=s},expression:"actionsheetShow"}}),t._v(" "),e("div",{staticClass:"unit-block"},[e("div",{staticClass:"course_title",on:{click:function(s){t.actionsheetShow=!0}}},[t._v(t._s(t.secActions.name)+" "),e("i",{staticClass:"iconfont icon-below-s"})]),t._v(" "),0==t.shopType&&t.unitList.length>0?e("swiper",{ref:"mySwiper",staticClass:"banner",attrs:{options:t.swiperOption}},[t._l(t.unitList,function(s,i){return e("swiper-slide",{key:i},[e("div",{staticClass:"line"}),t._v(" "),e("div",{class:{"unit-li":!0,active:s.category_id==t.parent_category_id},on:{click:function(e){t.changeCateGory(s,s.category_id==t.parent_category_id,i)}}},[e("div",[e("img",{attrs:{src:s.category_cover}})]),t._v("\n "+t._s(s.category_name)+"\n ")])])}),t._v(" "),t.more?e("swiper-slide",[e("div",{staticClass:"line"}),t._v(" "),e("div",{staticClass:"unit-li"},[e("div",[e("img",{attrs:{src:t.nextUnitUrl}})]),t._v(" "),e("span",{staticStyle:{color:"#cccccc"}},[t._v("敬请期待")])])]):t._e(),t._v(" "),t._l(3-t.unitList.length>0?3-t.unitList.length:0,function(t){return e("swiper-slide",{key:10*t},[e("div",{staticClass:"unit-li"},[e("div")])])})],2):t._e(),t._v(" "),0==t.shopType?e("swiper",{ref:"mySwiper2",staticClass:"banner2",attrs:{options:t.swiperOption2}},[t._l(t.unitList,function(s,i){return e("swiper-slide",{key:i},[e("div",{staticClass:"line"}),t._v(" "),e("div",{class:{"unit-li":!0,active:s.category_id==t.parent_category_id},on:{click:function(e){t.changeCateGory(s,s.category_id==t.parent_category_id)}}},[e("img",{attrs:{src:s.category_cover}}),t._v(" "),e("div",[t._v(t._s(s.category_name))])])])}),t._v(" "),t.more?e("swiper-slide",[e("div",{staticClass:"line"}),t._v(" "),e("div",{staticClass:"unit-li"},[e("div",[e("img",{attrs:{src:t.nextUnitUrl}})]),t._v(" "),e("span",{staticStyle:{color:"#cccccc"}},[t._v("敬请期待")])])]):t._e(),t._v(" "),t._l(6-t.unitList.length>0?6-t.unitList.length:0,function(t){return e("swiper-slide",{key:10*t},[e("div",{staticClass:"unit-li"},[e("div")])])})],2):t._e()],1),t._v(" "),t.secActions.is_start_course?e("div",{class:{"lesson-block":0==t.shopType,"lesson-block nounit":1==t.shopType}},[t.noLesson?e("div",{staticClass:"noLesson"},[e("img",{attrs:{src:t.errorURL}}),t._v(" "),e("div",[t._v("\n 暂无课程\n ")])]):t._e(),t._v(" "),t._l(t.lessonList,function(s,i){return e("div",{staticClass:"card-block"},[e("img",{attrs:{src:s[0].cover+"?imageslim"}}),t._v(" "),t._l(s,function(n,o){return e("div",{class:"card-li cid"+n.id,on:{click:function(s){t.showDia(n,o+1)}}},[e("div",{staticClass:"text-block"},[e("div",{staticClass:"title"},[t._v("\n "+t._s(t._f("substr10")(n.name))+"\n ")]),t._v(" "),e("div",{staticClass:"tips"},["0000-00-00"!==n.push_time?e("span",[t._v(" 开课时间:"+t._s(n.push_time))]):t._e(),t._v(" "),"0000-00-00"===n.push_time?e("span",[t._v("课程还未开始哦")]):t._e()])]),t._v(" "),"0000-00-00"!==n.push_time?e("div",{staticClass:"star-block"},[t._l(n.star_num,function(s){return e("img",{staticClass:"star-img",attrs:{src:t.star_act}})}),t._v(" "),t._l(3-n.star_num,function(s){return e("img",{staticClass:"star-img",attrs:{src:t.star_def}})})],2):t._e(),t._v(" "),e("div",{staticClass:"icon-block"},[e("i",{class:{map:!0,right:i!==n.length-1&&"0000-00-00"!==n.push_time,money:"0000-00-00"!==n.push_time&&(s[o+1]&&"0000-00-00"===s[o+1].push_time||o===s.length-1&&t.lessonList[i+1]&&"0000-00-00"===t.lessonList[i+1][0].push_time||(0==t.shopType&&t.findUnit(t.parent_category_id)&&2===t.findUnit(t.parent_category_id).status||1==t.shopType)&&o===s.length-1&&i==t.lessonList.length-1),clock:"0000-00-00"===n.push_time}})])])})],2)})],2):t._e(),t._v(" "),t.lessonList.length>0?e("div",{staticClass:"lesson-block-hp"},[e("swiper",{ref:"mySwiperLesson",staticClass:"lesson-sw",attrs:{options:t.swiperOptionLesson}},t._l(t.hpLessonList,function(s,i){return e("swiper-slide",{key:i,staticStyle:{width:"50vh"}},[e("div",{staticClass:"lesson-content-hp",on:{click:function(e){t.showDia(s)}}},["0000-00-00"===s.push_time?e("div",{staticClass:"clock-hp"},[t._v("\n 等待开课\n ")]):t._e(),t._v(" "),e("div",{staticClass:"lesson-day-hp"},[t._v(t._s(s.dayText))]),t._v(" "),e("div",{staticClass:"lesson-img-hp"},[e("img",{attrs:{src:s.cover}})]),t._v(" "),e("div",{staticClass:"lesson-name-hp"},[t._v("\n "+t._s(s.sub_title)+"\n ")]),t._v(" "),e("div",{staticClass:"star-block"},[t._l(s.star_num,function(s){return e("img",{staticClass:"star-img",attrs:{src:t.star_act}})}),t._v(" "),t._l(3-s.star_num,function(s){return e("img",{staticClass:"star-img",attrs:{src:t.star_def}})})],2),t._v(" "),"0000-00-00"!==s.push_time&&(t.hpLessonList[i+1]&&"0000-00-00"===t.hpLessonList[i+1].push_time||(0==t.shopType&&t.findUnit(t.parent_category_id)&&2===t.findUnit(t.parent_category_id).status||1==t.shopType)&&i===t.hpLessonList.length-1)?e("i",{staticClass:"map money"}):t._e()])])}))],1):t._e(),t._v(" "),t.secActions.is_start_course||t.teacher_alias?t._e():e("div",{staticClass:"unStart"},[e("img",{attrs:{src:t.mok4,alt:""}}),t._v(" "),e("p",[t._v("您的课程尚未开始")]),t._v(" "),e("div",[t._v("课程开始时间:"+t._s(t.secActions.start_at))])]),t._v(" "),!t.secActions.is_start_course&&t.teacher_alias?e("div",{staticClass:"unStartTeacher"},[e("p",[t._v("您的课程尚未开始")]),t._v(" "),e("div",{staticClass:"container"},[e("img",{attrs:{src:t.teacher_qr,alt:""}}),t._v(" "),e("p",[t._v("请扫码添加班主任")]),t._v(" "),e("p",[t._v("以便及时获取课程相关服务")])]),t._v(" "),e("div",{staticClass:"date"},[t._v("课程开始时间:"+t._s(t.secActions.start_at))])]):t._e(),t._v(" "),e("van-popup",{model:{value:t.popupVisible,callback:function(s){t.popupVisible=s},expression:"popupVisible"}},[t.thisLesson?e("div",{staticClass:"popup-block"},[e("i",{staticClass:"map close",on:{click:function(s){t.popupVisible=!1}}}),t._v(" "),e("div",{staticClass:"header",style:{backgroundImage:"url("+t.diaBGI+")"}},[e("div",{staticClass:"title"},[t._v("\n "+t._s(t.thisLesson.title)+"\n ")]),t._v(" "),t.thisLesson.content.tips?e("div",{staticClass:"tips"},[t._v("\n "+t._s(t.thisLesson.content.tips.content)+"\n ")]):t._e(),t._v(" "),t.thisLesson.content.tips?t._e():e("div",{staticClass:"tips"},[t._v("\n DAY "+t._s(t.thisLesson.day)+"\n ")])]),t._v(" "),t.thisLesson.content.tips?e("div",{staticClass:"content"},[e("div",{staticClass:"tips-title"},[t._v(t._s(t.thisLesson.content.tips.title1))]),t._v(" "),e("div",{staticClass:"title-content"},[e("ul",t._l(t.splitContent,function(s){return e("li",{staticStyle:{"text-align":"center"}},[t._v(t._s(s))])}))]),t._v(" "),e("div",{staticClass:"tips-title"},[t._v(t._s(t.thisLesson.content.tips.title2))]),t._v(" "),e("div",{staticClass:"title-content"},[t._v(t._s(t.thisLesson.content.tips.title2_content))])]):t._e(),t._v(" "),t.thisLesson.content.tips?t._e():e("div",{staticClass:"content"},[e("div",{staticStyle:{color:"#cccccc",padding:"21.3333vw 0","font-size":"5.3333vw"}},[t._v("快去开始课程吧!")])]),t._v(" "),e("div",[e("i",{staticClass:"goLesson",on:{click:function(s){t.goDetail()}}},[e("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.btn_kechegn,alt:""}})])])]):t._e()]),t._v(" "),e("bottom-tab")],1)},staticRenderFns:[]};var T=e("VU/8")(D,x,!1,function(t){e("O78b")},"data-v-744dff4e",null);s.default=T.exports},"7YDQ":function(t,s){},C5QI:function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAFgElEQVRYR72ZW6hUVRjHf9/MdDS1zCCpHiwIijIjECWj45nxEhFJmbnHS96CtCR9qV4sjIR8qacUU4NMy8vso6koEWHOHo2MTChEwUIqHyoM0uxonuPMfLH22XvOnvttH/fbzF7rW7/97e/y32sJFa74Fh0qI9iqyuMRZfnhpOysNC7s/6akdG5e2CDCl9rDImeJXC1dQ0r/MLAMZy/KE+49wXEsSdSCG39Ah424zFgR7gNuV+Emd6ryL/CnKmd6hnPqxAy5UstO3NY0Stxb9wsuM7MUugi4DBZyEsFKz5bPShfq3KN3RLPMV5gBPCLQUQtGoQ/4VuBALsb2o7Pkj9LxiW59VvPYQLQadAG4Eiyw2EnKp0HDk20dF1FWITyHEmspLIQsyu68sPaIJSeDNuIpfR74uBq0C9wI7CRbbx2qrM3DiwKREtBe4LgqpyPCbypc8kLi5rxylwgPABOAIcF5CvkIfHhVWHXMkr/9e7WgpRHYhK1deWWHwJ2BBa8h7EPY1qt8dcyS/2p5e5KtNw4RpqIsRHkGuMEfr/B7RJiXtiRTD1oS3ZrSPJY3MFcaBl22vizwvv/6Pa9s1Q7WODPl11LIybv0fony4F/K/tOWmLgtu+J79W7pY3UeFhXelpBVWJmx5INq0BLBlritF1BuAcpgEyldpfBOYMWzkTwLD8+VbyqBdNp6W1T5BRgusC6dlJW1vD5lpz6aj7ANuMdLMhXlzXRS1vrzumxdIMoWN6aFi+LVvqUirAtWA9ezygZ/osDnUWHeIUv+qQaRsHW8Kt979w85SZleLymn2Toyp+xQeLIQIsLyoKfd6qGsiCiby+qwmWRiVuFQoApsZzSLnYRkawG0AuwmfVpjnHcrw3zP01mBacGYDjiuGMFUgw7lpJ9gxrM6mqfrwXoP2rSHC/Ga1picZ7/vaZOIfcK4YPVwK0+pxxIp3aiwzPv/bEwYXysMgvNb9bBvw4RHVjnhx7TApnRSXgquUQRsmoIoP5jMNdUgmqezWoJVCo12gY1Nk4i5CEd9BhUeDjaX4tacUiNy5niu35JOygv1kiZMD/u2Ein9SGGJ93uXk5S5ZTHsaoMc57xEu0YH91aqs4ORdKU2TZ2mj5/c5iJkc1HG+NpjQEuk9DXgXS9Lux1L/GbSsJPDCIlCEtpqo8z2fr/uJOW9oqTrSmlGYLI7IMIMZ7YcbJjUGxgqcLc+RZ4DxrTCkUxSugrArp69wgVPIvb2CqPqaYPBSjrfrqs9lAtGMBlp2jOMUUZPuyHRtUcnSJbvvMFfO0npbNa7ZnyYHjb24ik9CjzmejnGxMwsOd4vL/s16Cce5CanpPY1Ch8EVrgk8HOduX0Imx1LTJcru+Ip3chAT1hgtLkPXEg4gTeC4qNRWDNu6m59KJfjx2bmmAfLJGVkxRArFl9u4vWHhK1vi7LaqxArHEvWN7NoIbP7NcFBhekVRH6ZSRObEWF92pJXK3rY1ldQ1rkhIazJWPJWqMCtPGStOfFqwPFADW4nJMIGLtHjAyERVtKFDdy1SzeJsNSzO5B0YZW1sIGLypoyMTPHK2thNY4wgcsax0VGnVjmNQ63UoTQmsMEjtdqzV7zaFv8hApcT/yEIS/DAm5IXnpebkvAhwXckIA3i7X7iRQGcFOfSGbBdj5C2wVu+iPULNjOZ347wGZvoqXPfNfLLW6ktArc1kaKv2grW1WtADeyVRW0W3Gryh/Q7GZgs8Blm4H9Ozs19XhNYLcDNrnd2gh0o9utlWzVBfZj+npvaFd78IaA/epR78gAOCVwLnhkoDAGGNvMkUGtt9QwsG9ksA9l6oVU08C+wcE49qoHa+63DBw07urpPsZKtsrBYowzPR31DxavG3AjC4U15n/uSlfvH5r1rAAAAABJRU5ErkJggg=="},O78b:function(t,s){},QkSs:function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAZlBMVEVHcEz/xw7/yA7/xw//yAr/xw7/xw7/yg3/yh7/zCP/xxL/xg//xRD/xBD+42b+5XP+42P/2QX/5AH/0Ar+6IL/zAz/3gT/1Qj+64/+7Zz/213/8bP+76f/yA3/0DX/10z+3Tv+4U3sgkOvAAAADXRSTlMAOKQlCoJVbeT9xtS0QyjZWAAAAcZJREFUOMu9092agiAQBmB/UkADNVMJBfH+b3JnQGmLdtej/Q7M7H0GZqQk+YfkVZWfcRe6LPRyApJmnhtypuAMOVESCi7LiZK4QylP7JKI5SHlYxHkr4KPPX+UJArMssCl/b0kleDmGaT8tSRR0AiOBxpSP5a8pCWV0Ag6gJKS9BKJIquoWVVzv0PHCywt7/dms5ZVWVF6n2cgVgHEB2cDO5TH90asq6FZntRr24omxEnnns+EaNc6oUy1EOHTuMpYDn/H4I+tYjQhnNs2ooE5aDmHERScs/WbFPtyod7GNC+wHZCcWdiACHa/c9WmftCFHw9KtNsT+mx27CaAxTFILznXzFi7uVhrb7fbOHbd1BfPkXuph6Hvp24cb0dGrPjyKskuEXav8O2Vk6MkwiBh5ehokAPi2mMoGB+hEuGxtqMjtlJGsODPkp4C66YiglceSqL0maYsgjUPEqjDcO3r6HgfM3fDdHSCz16/wzRAbZQyvc8w6PxD0y7AMGZw0br81DRkVWplDK+o9H7A3pvmDFmW5xlSOIaQ97apXxaZ+8tdgRp8Vn9o2ihzTUN3lfEyhsxU6csgKsMiiHuso/dawlu47vdfuec6yFvvxuoAAAAASUVORK5CYII="},e2Pt:function(t,s,e){t.exports=e.p+"static/img/diaBG.5949dd1.png"},wQkO:function(t,s,e){t.exports=e.p+"static/img/btn_kechegn.ded8a66.png"},zH3V:function(t,s,e){"use strict";var i=e("nsZj"),n=(e.n(i),e("hW8u")),o=(e.n(n),e("7YDQ"));e.n(o)}});
\ No newline at end of file
webpackJsonp([9],{"2Aux":function(t,e,i){t.exports=i.p+"static/img/img_title1.e6e13c0.png"},ATfF:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAmCAYAAADeB1slAAAC3UlEQVRIS7WXz0sUYRjHv8/szLgoFGSd8lx/QN26FGWhQVa0lOu6ZT9cRQShgydBolMdpER3x5RKZ9Zii1DCipQ6RAeJDtEhqkMHISgNCszcmZ0nZhw3c0f3x6vvbS6fD+/7/BzCJh/aZD5cAbdEd1qceczgcgpITUq//nqjxK7AikXqmTjpQRfAdFLR9KcbIVm6QWNjhVVhPwOwz4OaBI7KieQ9UUk2BtzcXG5J8w8A1HhQmxltqmYkRCT/BZlDIdWsVO8QUJ+FMncpWvJqqZKcLOLubinz9dNNJrT9g1KPnNAvE8DFitZMU7MlfAWgrmUgA3eVufQFSqUyxUjWrYN0a0MHMXpWAMdk5cdp6n2yWKgkb6GlY5EoEd8GILlQxguZ0ydoIPWzEElegVsnrZFjzHwfQHAJym9kxayl3tT3fJKCBA7EbInsB3gMwBYP+kG2UE2Dxsx6koIFDiTdGt5DTE6Fb/eeayZjBw4Gbw1/XEtSlMCB/LkU3RWQMlMgVHnQWbbpiDqgv/WTFC1wI3CxocqSMQlgtwf9BVCdktBfrpaUJHAl7aEdlqlMALTXgy4Q0Rk5ro+vlJQscCXNoa0WqY9AOOBBM8x0XtX04WWJkGDpJjVllrnNSeG6bNUzdaiafsP5Fha4klAoYFaqQwSczT4P02FF059vogCHFM2YEhbkPBGDWUK7Gjf6hJ/IJ8gmEc7JcWN5/JYeA980ZT4la8kJ4TT1LTTbPqoMjL4SLjSfVvHNJru6LD76TrhVrG52DHyxJaoO9uufhZudT7t+L1uo2ZB2nTtwMC0HArXUNzwnPHByRiYwKc9Lx2lkZD4fPG8d5A59fijPmWFKpdKFwNcV5KwtREPK7GJMeG3xXbwY12XN6BRevHxXR6BTSRjXCn2SNQvNd/kliqlxfbBUeDYGvus7IyxrhrNtCx2/H5DfIK5T4klnqAuflb9Q4yAEGdykJpLTwmQP8Berj0A2h4b2MAAAAABJRU5ErkJggg=="},G3B8:function(t,e,i){t.exports=i.p+"static/img/btn.9815b8e.png"},Joag:function(t,e,i){t.exports=i.p+"static/img/img_title6.e0dd387.png"},Jt49:function(t,e,i){t.exports=i.p+"static/img/img_title3.a5fc320.png"},KCO3:function(t,e,i){t.exports=i.p+"static/img/img_title2.9b32656.png"},Kf79:function(t,e,i){t.exports=i.p+"static/img/img_bg.e1ca973.png"},T4lz:function(t,e,i){t.exports=i.p+"static/img/img_title5.2b6f130.png"},Z6Nl:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("CCn6"),n={name:"inviteFriends",components:{},data:function(){return{earnings:0,userNum:0,records:[],shareTitle:"钜惠来袭!唱唱21天英语训练营,全勤学习返66元现金",shareDesc:"21天让宝宝爱上说英语,报课即送教具礼盒,包邮送到家!",invite_code:"",shopId:"",groupId:null}},mounted:function(){this.$route.query.shopId?this.shopId=this.$route.query.shopId:this.shopId=46,this.getInviteResult(),this.getInviteList(),this.onShare(),this.$sa.track("ViewInvitationPage",{})},methods:{lookMyInviteRecords:function(){this.$refs.inviteRecord.scrollIntoView()},lookMoreRecord:function(){var t={shopId:this.shopId};this.$router.push({name:"inviteRecordList",query:t})},getInviteResult:function(){var t=this;Object(s.u)({},this.shopId).then(function(e){t.earnings=e.earnings,t.userNum=e.user_num})},getInviteList:function(){var t=this;Object(s.t)({page:1,limit:20},this.shopId).then(function(e){e&&e.list&&e.list.length>0&&(t.records=e.list)})},goToInvite:function(){var t={};window.location.href.indexOf("shopId")>-1?t.shopId=this.$route.query.shopId:t.shopId=46,window.location.href.indexOf("groupId")>-1&&(t.groupId=this.$route.query.groupId),window.location.href.indexOf("invite_code")>-1&&(t.invite_code=this.$route.query.invite_code),this.$sa.quick("trackHeatMap",this.$refs.goToInvitePage),this.$router.push({name:"activityInvite",query:t})},enableShare:function(t){var e=this;Object(s.Y)({api_list:"onMenuShareAppMessage,onMenuShareTimeline",url:window.location.href.split("#")[0]}).then(function(i){wx.config({debug:!1,appId:i.appId,timestamp:parseInt(i.timestamp),nonceStr:i.nonceStr,signature:i.signature,jsApiList:i.jsApiList}),wx.ready(function(){wx.onMenuShareTimeline({title:e.shareTitle,desc:e.shareDesc,link:t.shareUrl,imgUrl:"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}}),wx.onMenuShareAppMessage({title:e.shareTitle,desc:e.shareDesc,link:t.shareUrl,imgUrl:"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}})})})},onShare:function(t){var e=JSON.parse(localStorage.getItem("userDesc")),i="https://wechat.changchangenglish.com/#/buyDetail?shopId="+this.shopId+"&groupId="+this.groupId+"&invite_code="+this.invite_code+"&nickname="+encodeURIComponent(e.nickname);this.invite_code?(i="https://wechat.changchangenglish.com/#/buyDetail?shopId="+this.shopId+"&invite_code="+this.invite_code+"&nickname="+encodeURIComponent(e.nickname),this.enableShare({shareUrl:i})):(this.user_id=JSON.parse(localStorage.getItem("userDesc")).user_id,this.invite_code="CC-USER-"+this.user_id,i="https://wechat.changchangenglish.com/#/buyDetail?shopId="+this.shopId+"&invite_code="+this.invite_code+"&nickname="+encodeURIComponent(e.nickname),this.enableShare({shareUrl:i}))}}},c={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"invite-friends"},[t._m(0),t._v(" "),s("div",{staticClass:"invite-friends cell"},[s("img",{attrs:{src:i("2Aux"),alt:""}}),t._v(" "),s("p",{staticClass:"cell-content money"},[s("span",[t._v(t._s(t.earnings/100))]),t._v(" "),s("span",[t._v("元")])]),t._v(" "),s("p",{staticClass:"cell-content people"},[s("span",[t._v(t._s(t.userNum))]),t._v(" "),s("span",[t._v("人")])]),t._v(" "),t.earnings>0||t.userNum>0?s("div",{staticClass:"invite-record-btn",on:{click:t.lookMyInviteRecords}},[s("p",[t._v("查看我的邀请记录")]),t._v(" "),t._m(1)]):t._e()]),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),s("div",{ref:"inviteRecord",staticClass:"invite-friends cell"},[s("img",{staticClass:"invite-img",attrs:{src:i("T4lz"),alt:""}}),t._v(" "),s("div",{staticClass:"invite-record-list"},[s("div",{staticClass:"container"},[s("div",{staticClass:"record-content"},[t._m(5),t._v(" "),0==t.records.length?s("div",{staticClass:"no-record"},[t._v("您还没有成功邀请好友,快去邀请吧!")]):t._e(),t._v(" "),t.records.length>0?s("ul",{staticClass:"record"},t._l(t.records,function(e,i){return s("li",{key:i},[s("p",[t._v(t._s(e.nickname))]),t._v(" "),s("p",[t._v(t._s(e.pay_at))])])})):t._e(),t._v(" "),t.records.length>6?s("div",{staticClass:"look-more-record",on:{click:t.lookMoreRecord}},[s("p",[t._v("查看更多")]),t._v(" "),t._m(6)]):t._e()])])])]),t._v(" "),t._m(7),t._v(" "),s("div",{staticClass:"line"}),t._v(" "),s("div",{ref:"goToInvitePage",staticClass:"invite-btn"},[s("img",{attrs:{src:i("G3B8")},on:{click:t.goToInvite}})])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"invite-friends header"},[e("img",{attrs:{src:i("Kf79"),alt:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img-container"},[e("img",{attrs:{src:i("ATfF")}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"invite-friends cell"},[e("img",{attrs:{src:i("KCO3"),alt:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"invite-friends cell"},[e("img",{attrs:{src:i("Jt49"),alt:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"invite-friends cell"},[e("img",{attrs:{src:i("ykLY"),alt:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"record-title"},[e("span",[this._v("已邀好友")]),this._v(" "),e("span",[this._v("购买时间")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img-container"},[e("img",{attrs:{src:i("ATfF")}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"invite-friends cell"},[e("img",{attrs:{src:i("Joag"),alt:""}})])}]};var r=i("VU/8")(n,c,!1,function(t){i("pskz")},"data-v-f93bdca0",null);e.default=r.exports},pskz:function(t,e){},ykLY:function(t,e,i){t.exports=i.p+"static/img/img_title4.20b8135.png"}});
\ No newline at end of file
webpackJsonp([66],{CCn6:function(e,t,n){"use strict";var o=n("7+uW"),a=(n("eqfM"),n("/QYm")),r=n("//Fk"),i=n.n(r),c=n("mvHQ"),u=n.n(c),l=n("mtWM"),s=n.n(l),p=n("NC6I"),d=n.n(p),f=n("YaEn"),h=n("sf/l");s.a.defaults.timeout=5e4,s.a.defaults.baseURL="",s.a.interceptors.request.use(function(e){var t=localStorage.getItem("cc_token");if(e.headers["Content-Type"]||(e.headers={"Content-Type":"application/json"}),t&&(e.headers.token=t),"get"===e.method&&"/api/admin/login"!==e.url){e.params=e.params||{},e.params.v="09021400";var n=JSON.parse(u()(e.params));for(var o in n)null===n[o]&&(n[o]=""),"string"==typeof n[o]&&(e.params[o]=e.params[o].replace(/(^\s*)|(\s*$)/g,""),n[o]=n[o].replace(/(^\s*)|(\s*$)/g,"")),n[o]=d()(n[o].toString());n.sing="singsingenglish21000",h.a.getUrlParam().chang_test_user_id,e.params.param_token=d()(u()(n)),e.params.v="09021400"}else if("/api/admin/login"!==e.url){e.data=e.data||{},e.data.v="09021400";var a=JSON.parse(u()(e.data));for(var r in a)null===a[r]&&(a[r]=""),"string"==typeof a[r]&&(e.data[r]=e.data[r].replace(/(^\s*)|(\s*$)/g,""),a[r]=a[r].replace(/(^\s*)|(\s*$)/g,"")),a[r]=d()(a[r].toString());a.sing="singsingenglish21000",h.a.getUrlParam().chang_test_user_id,e.data.param_token=d()(u()(a)),e.data.v="09021400"}return e},function(e){return i.a.reject(e)}),s.a.interceptors.response.use(function(e){return 501===e.data.code&&f.a.push({name:"author",query:{retUrl:window.location.href.split("#")[1]||"",is_new_user_url:1}}),e},function(e){return i.a.reject(e)}),n.d(t,"c",function(){return g}),n.d(t,"Y",function(){return w}),n.d(t,"q",function(){return y}),n.d(t,"_0",function(){return b}),n.d(t,"B",function(){return v}),n.d(t,"N",function(){return $}),n.d(t,"_2",function(){return _}),n.d(t,"_10",function(){return S}),n.d(t,"_9",function(){return N}),n.d(t,"i",function(){return P}),n.d(t,"j",function(){return k}),n.d(t,"U",function(){return T}),n.d(t,"w",function(){return x}),n.d(t,"o",function(){return I}),n.d(t,"v",function(){return O}),n.d(t,"P",function(){return A}),n.d(t,"_14",function(){return R}),n.d(t,"s",function(){return U}),n.d(t,"D",function(){return D}),n.d(t,"E",function(){return M}),n.d(t,"V",function(){return E}),n.d(t,"M",function(){return C}),n.d(t,"m",function(){return L}),n.d(t,"r",function(){return j}),n.d(t,"u",function(){return V}),n.d(t,"t",function(){return q}),n.d(t,"_12",function(){return Y}),n.d(t,"e",function(){return W}),n.d(t,"_1",function(){return F}),n.d(t,"O",function(){return Q}),n.d(t,"b",function(){return G}),n.d(t,"h",function(){return H}),n.d(t,"F",function(){return B}),n.d(t,"I",function(){return J}),n.d(t,"J",function(){return K}),n.d(t,"S",function(){return z}),n.d(t,"T",function(){return X}),n.d(t,"a",function(){return Z}),n.d(t,"X",function(){return ee}),n.d(t,"_7",function(){return te}),n.d(t,"p",function(){return ne}),n.d(t,"n",function(){return oe}),n.d(t,"_8",function(){return ae}),n.d(t,"k",function(){return re}),n.d(t,"l",function(){return ie}),n.d(t,"y",function(){return ce}),n.d(t,"A",function(){return ue}),n.d(t,"z",function(){return le}),n.d(t,"_15",function(){return se}),n.d(t,"d",function(){return pe}),n.d(t,"g",function(){return de}),n.d(t,"f",function(){return fe}),n.d(t,"_13",function(){return he}),n.d(t,"Z",function(){return me}),n.d(t,"_11",function(){return ge}),n.d(t,"K",function(){return we}),n.d(t,"L",function(){return ye}),n.d(t,"H",function(){return be}),n.d(t,"G",function(){return ve}),n.d(t,"W",function(){return $e}),n.d(t,"_6",function(){return _e}),n.d(t,"x",function(){return Se}),n.d(t,"_3",function(){return Ne}),n.d(t,"_4",function(){return Pe}),n.d(t,"_5",function(){return ke}),n.d(t,"Q",function(){return Te}),n.d(t,"R",function(){return xe}),n.d(t,"C",function(){return Ie});var m="https://wechat.changchangenglish.com/";o.default.prototype.$post=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new i.a(function(n,o){s.a.post(e,t).then(function(e){200===e.data.code?n(e.data.data):501===e.data.code?(o(e.data),f.a.push({name:"author",query:{retUrl:window.location.href.split("#")[1]||"",is_new_user_url:1}})):503===e.data.code?o(e.data):(o(e.data),502!=e.data.code&&Object(a.a)(e.data.msg))},function(e){o(e)})})},o.default.prototype.$fetch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new i.a(function(n,o){s.a.get(e,{params:t}).then(function(e){if(200===e.data.code)n(e.data.data);else if(501===e.data.code){o(e.data);var t={retUrl:window.location.href.split("#")[1]};localStorage.setItem("retUrl",window.location.href.split("#")[1]),t.is_new_user_url=1,window.location.href="https://wechat.changchangenglish.com/api/client/login?redirect_url=https://wechat.changchangenglish.com"}else if(503===e.data.code)o(e.data);else if(506===e.data.code){o(e.data);var r={retUrl:window.location.href.split("#")[1]};localStorage.setItem("retUrl",window.location.href.split("#")[1]),r.is_new_user_url=1,window.location.href="https://wechat.changchangenglish.com/api/client/login?redirect_url=https://wechat.changchangenglish.com&refresh=1"}else o(e.data),Object(a.a)(e.data.msg)}).catch(function(e){o(e)})})},o.default.prototype.$patch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new i.a(function(n,o){s.a.patch(e,t).then(function(e){200===e.data.code?n(e.data.data):501===e.data.code?(o(e.data),f.a.push({name:"author",query:{retUrl:window.location.href.split("#")[1]||"",is_new_user_url:1}})):503===e.data.code?o(e.data):(o(e.data),Object(a.a)(e.data.msg))},function(e){o(e)})})},o.default.prototype.$put=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new i.a(function(n,o){s.a.put(e,t).then(function(e){200===e.data.code?n(e.data.data):501===e.data.code?(o(e.data),f.a.push({name:"author",query:{retUrl:window.location.href.split("#")[1]||"",is_new_user_url:1}})):503===e.data.code?o(e.data):(o(e.data),Object(a.a)(e.data.msg))},function(e){o(e)})})},o.default.prototype.$del=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new i.a(function(n,o){s.a.delete(e,t).then(function(e){200===e.data.code?n(e.data.data):501===e.data.code?(o(e.data),f.a.push({name:"author",query:{retUrl:window.location.href.split("#")[1]||"",is_new_user_url:1}})):503===e.data.code?o(e.data):(o(e.data),Object(a.a)(e.data.msg))},function(e){o(e)})})},o.default.prototype.$upload=function(e,t){return new i.a(function(n,o){var r=parseInt(Number(t.file.size)/Number(10485760)+1),i=0;!function c(){var u=new FormData,l=t.file.slice(1024*i*1024*10,1024*(i+1)*1024*10);u.append("chunk",i),u.append("file_name",t.file.name),u.append("count",r),u.append("type",t.type),u.append("file",l),s.a.post(e,u,{headers:{"Content-Type":"multipart/form-data"},timeout:1e7,onUploadProgress:function(e){}}).then(function(e){200===e.data.code?i+1<r?(i++,c()):(i=0,n(e.data.data)):Object(a.a)(e.data.msg)}).catch(function(e){o(e)})}()})},o.default.prototype.$ret2=function(e){return new i.a(function(t,n){s.a.get(e).then(function(e){t(e.data)}).catch(function(e){n(e)})})};var g=function(e,t){return o.default.prototype.$fetch("/api/client/banner/list/"+e,t)},w=function(e){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/jssdk",e)},y=function(e){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/goods/info/"+e)},b=function(e){return o.default.prototype.$put(m+"api/client/deliver/edit",e)},v=function(){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/deliver/newest/list")},$=function(){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/address/info")},_=function(e){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/bill/wechat/pay",e)},S=function(e){return o.default.prototype.$post("https://wechat.changchangenglish.com/api/client/address/save",e)},N=function(e){return o.default.prototype.$post(m+"api/client/user/starActivity/address",e)},P=function(e,t){return o.default.prototype.$put(m+"api/client/user/starActivity/address/edit/"+t,e)},k=function(e){return o.default.prototype.$fetch(m+"api/client/user/starActivity/address/list",e)},T=function(){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/user/course/list")},x=function(e,t){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/course/category/list/"+e,t)},I=function(e){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/course/relation/list/"+e)},O=function(e,t,n){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/element/info/"+e+"/"+t+"/"+n)},A=function(){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/me")},R=function(e,t,n,a){return o.default.prototype.$post("https://wechat.changchangenglish.com/api/client/user/watch/log/"+e+"/"+t+"/"+n,a)},U=function(e){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/group/info/"+e)},D=function(e){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/order/info/"+e)},M=function(e){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/order/list",e)},E=function(e){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/user/watch/report",e)},C=function(e){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/bill/wechat/status",e)},L=function(e){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/user/coupon/list",{goods_id:e})},j=function(e){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/goods/list",e)},V=function(e,t){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/user/invite/earnings/"+t,e)},q=function(e,t){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/user/invite/list/"+t,e)},Y=function(e){return o.default.prototype.$post("https://wechat.changchangenglish.com/api/client/mobile/code",e)},W=function(e){return o.default.prototype.$put("https://wechat.changchangenglish.com/api/client/user/mobile/bind",e)},F=function(e,t){return o.default.prototype.$put("https://wechat.changchangenglish.com/api/client/user/mobile/bind/order_id",e)},Q=function(e){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/user/collect",e)},G=function(e){return o.default.prototype.$post("https://wechat.changchangenglish.com/api/client/user/collect",e)},H=function(e){return o.default.prototype.$put("https://wechat.changchangenglish.com/api/client/user/collect/"+e)},B=function(e,t){return o.default.prototype.$fetch("/api/client/user/watch/report/"+e,t)},J=function(){return o.default.prototype.$fetch("/api/client/share/goods")},K=function(e){return o.default.prototype.$fetch("/api/public/short/url",e)},z=function(){return o.default.prototype.$fetch("/api/client/user/last/integral")},X=function(e){return o.default.prototype.$fetch("/api/client/user/integral",e)},Z=function(e){return o.default.prototype.$put("/api/client/user/mobile/bind/exchange",e)},ee=function(e){return o.default.prototype.$fetch("/api/client/yunji/config",e)},te=function(e){return o.default.prototype.$post("/api/client/user/add/class/"+e)},ne=function(){return o.default.prototype.$fetch("/api/client/user/course/status")},oe=function(e){return e?o.default.prototype.$fetch("/api/client/user/course/info",{periods_id:e}):o.default.prototype.$fetch("/api/client/user/course/info")},ae=function(e){return o.default.prototype.$put("/api/client/me/set",e)},re=function(e,t){return o.default.prototype.$fetch("/api/client/course/automation/list/"+e+"/"+t)},ie=function(){return o.default.prototype.$fetch("/api/client/recommend/conversion/goods")},ce=function(){return o.default.prototype.$fetch("/api/client/user/luckDraw")},ue=function(){return o.default.prototype.$fetch("/api/client/user/luckDraw/judge")},le=function(){return o.default.prototype.$fetch("/api/client/user/luckDraw/rand")},se=function(){return o.default.prototype.$fetch("/api/client/user/unbind/sub")},pe=function(e){return o.default.prototype.$fetch("/api/client/user/bind/sub/"+e)},de=function(){return o.default.prototype.$fetch("/api/client/user/generate/authorization")},fe=function(){return o.default.prototype.$fetch("/api/client/user/bind/chance")},he=function(){return o.default.prototype.$fetch("/api/client/user/sub/info")},me=function(e){return o.default.prototype.$fetch("/api/client/user/main/info/"+e)},ge=function(e){return o.default.prototype.$fetch("/api/client/user/click/link/"+e)},we=function(){return o.default.prototype.$fetch("/api/client/user/starActivity")},ye=function(){return o.default.prototype.$fetch("/api/client/user/startBonusActivity")},be=function(e){return o.default.prototype.$fetch("/api/client/user/receive/coupon/"+e)},ve=function(e){return o.default.prototype.$fetch("/api/client/goods/info/no/auth/"+e)},$e=function(e){return o.default.prototype.$fetch("/api/client/youbang/put",e)},_e=function(e){return o.default.prototype.$post("/api/client/youbang/address/add",e)},Se=function(e){return o.default.prototype.$fetch("/api/client/deliver/list",e)},Ne=function(e){return o.default.prototype.$post("api/client/report/errors/log",e)},Pe=function(e){return o.default.prototype.$post("/api/client/user/notify/setting",e)},ke=function(e,t,n,a){return o.default.prototype.$post("api/client/user/growth/record/"+e+"/"+t+"/"+n,a)},Te=function(e){return o.default.prototype.$fetch(m+"api/client/user/growth/record/list")},xe=function(e,t,n){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/growth/record/"+e+"/"+t+"/"+n)},Ie=function(e){return o.default.prototype.$fetch("https://wechat.changchangenglish.com/api/client/user/notify/"+e)}},IcnI:function(e,t,n){"use strict";var o=n("7+uW"),a=n("NYxO"),r=(n("zSLJ"),{setToken:function(e,t){e.token=t,localStorage.setItem("cc_token",t)},transitionGo:function(e){e.transitionName="slide-left"},transitionBack:function(e){e.transitionName="slide-right"},isMobile:function(e,t){e.isMobile=t},isWatchDetail:function(e,t){e.watchDetail=t},isClassQuery:function(e,t){e.classQuery=t},isCouponShadow:function(e,t){e.couponShadow=t},isLookStatus:function(e,t){e.lookStatus=t},isTimeout:function(e,t){e.timeout=t},setTest:function(e,t){e.test=t}});o.default.use(a.a);t.a=new a.a.Store({state:{token:"",transitionName:"slide-left",isMobile:!1,watchDetail:{},classQuery:{},couponShadow:!1,lookStatus:0,timeout:"",test:1},mutations:r,actions:{setToken:function(e,t){(0,e.commit)("setToken",t)},isMobile:function(e,t){(0,e.commit)("isMobile",t)},setWatchDetail:function(e,t){(0,e.commit)("isWatchDetail",t)},setClassQuery:function(e,t){(0,e.commit)("isClassQuery",t)},setCouponShadow:function(e,t){(0,e.commit)("isCouponShadow",t)},setLookStatus:function(e,t){(0,e.commit)("isLookStatus",t)},setTimeout:function(e,t){(0,e.commit)("isTimeout",t)}}})},JKiR:function(e,t){},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n("mMXg");var o=n("qYlo"),a=(n("qVvv"),n("8aUD")),r=(n("3Lne"),n("SSsa")),i=(n("XmAh"),n("il3B")),c=(n("eqfM"),n("/QYm")),u=n("7+uW"),l={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade"}},[this._v(">\n "),t("router-view",{staticClass:"child-view"})],1)],1)},staticRenderFns:[]};var s=n("VU/8")({name:"App",mounted:function(){}},l,!1,function(e){n("zP5g")},null,null).exports,p=n("YaEn"),d=n("IcnI"),f=n("sf/l"),h=n("wvfG"),m=n.n(h),g=n("uYVh"),w=n.n(g),y=(n("d8/S"),n("bOdI")),b=n.n(y),v=n("GQaK"),$={props:{probeType:{type:Number,default:1},click:{type:Boolean,default:!0},listenScroll:{type:Boolean,default:!1},data:{type:Array,default:null},pullup:{type:Boolean,default:!1},pulldown:{type:Boolean,default:!1},beforeScroll:{type:Boolean,default:!1},refreshDelay:{type:Number,default:100},bounce:{type:Boolean,default:!0},scrollX:{type:Boolean,default:!1},scrollY:{type:Boolean,default:!0}},mounted:function(){var e=this;setTimeout(function(){e._initScroll()},20)},methods:b()({_initScroll:function(){var e=this;if(this.$refs.wrapper){if(this.scroll=new v.a(this.$refs.wrapper,{probeType:this.probeType,click:this.click,bounce:this.bounce,scrollX:this.scrollX,scrollY:this.scrollY}),this.listenScroll){var t=this;this.scroll.on("scroll",function(e){t.$emit("scroll",e)})}this.pullup&&this.scroll.on("scrollEnd",function(){e.scroll.y<=e.scroll.maxScrollY+10&&e.$emit("pullup")}),this.pulldown&&this.scroll.on("touchend",function(t){t.y>50&&e.$emit("pulldown")}),this.beforeScroll&&this.scroll.on("beforeScrollStart",function(){e.$emit("beforeScroll")})}},disable:function(){this.scroll&&this.scroll.disable()},enable:function(){this.scroll&&this.scroll.enable()},refresh:function(){this.scroll&&this.scroll.refresh()},scrollTo:function(e,t,n){this.scroll&&this.scroll.scrollTo(e,t,n)},scrollToElement:function(e,t){this.scroll&&this.scroll.scrollToElement(e,t)}},"scrollToElement",function(){this.scroll&&this.scroll.scrollToElement.apply(this.scroll,arguments)}),watch:{data:function(){var e=this;setTimeout(function(){e.refresh()},this.refreshDelay)}}},_={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"wrapper"},[this._t("default")],2)},staticRenderFns:[]};var S=n("VU/8")($,_,!1,function(e){n("QHfu")},"data-v-867f04a4",null).exports,N=n("NVJ5"),P=n("MPCr"),k=this;N.apikey="4d414770c72b034dfa896048206a72258ede4e4ad5f9c6c4320d19b7f91a567e",Object(P.a)(N,u.default),u.default.config.productionTip=!1,u.default.prototype.$sa=w.a,u.default.prototype.$sa.init({server_url:"http://47.107.250.38:8106/sa?project=production",show_log:!1,heatmap:{clickmap:"default",scroll_notice_map:"default"},is_track_single_page:!0}),u.default.prototype.$sa.quick("autoTrack"),u.default.use(m.a),u.default.use(o.a).use(a.a).use(r.a).use(i.a).use(c.a),u.default.component("scroll",S);var T=function(e,t){u.default.prototype.$post("api/client/report/errors/log",{routes_url:t.$route.name,result_text:e.toString()})};u.default.config.errorHandler=T,u.default.prototype.$throw=function(e){return T(e,k)},u.default.prototype.$common=f.a,p.a.beforeEach(function(e,t,n){n(),null!==document.body.scrollTop&&(document.body.scrollTop=0),null!==document.documentElement&&(document.documentElement.scrollTop=0)}),new u.default({el:"#app",router:p.a,store:d.a,components:{App:s},template:"<App/>"}),Array.prototype.find||(Array.prototype.find=function(e){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),o=n.length>>>0,a=arguments[1],r=0;r<o;r++)if(t=n[r],e.call(a,t,r,n))return t})},QHfu:function(e,t){},YaEn:function(e,t,n){"use strict";var o=n("mvHQ"),a=n.n(o),r=n("7+uW"),i=n("IcnI"),c=n("sf/l"),u=n("/ocq"),l=n("uYVh"),s=n.n(l),p=n("CCn6");r.default.use(u.a);var d={versions:function(){var e=navigator.userAgent;navigator.appVersion;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1===e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Linux")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari")}}(),language:(navigator.browserLanguage||navigator.language).toLowerCase()},f=window.navigator.userAgent.toLowerCase(),h=new u.a({routes:[{path:"/",name:"index",component:function(){return Promise.all([n.e(0),n.e(19)]).then(n.bind(null,"dAjm"))},meta:{deep:0}},{path:"/extensionV1Shop",name:"extensionV1Shop",component:function(){return Promise.all([n.e(0),n.e(17)]).then(n.bind(null,"fwSI"))},meta:{deep:0,noNew:!0,title:"注册领取课程"}},{path:"/extensionV1",name:"extensionV1",component:function(){return n.e(26).then(n.bind(null,"it1F"))},meta:{deep:0,noNew:!0,title:"注册领取课程"}},{path:"/guideActivity",name:"guideActivity",component:function(){return n.e(24).then(n.bind(null,"kcFG"))},meta:{deep:0,noNew:!0}},{path:"/guide",name:"guide",component:function(){return Promise.all([n.e(0),n.e(30)]).then(n.bind(null,"J+FK"))},meta:{deep:0,noNew:!0}},{path:"/spcShop",name:"spcShop",component:function(){return Promise.all([n.e(0),n.e(42)]).then(n.bind(null,"JCOr"))},meta:{deep:0,noNew:!0}},{path:"/orderTrans",name:"orderTrans",component:function(){return n.e(28).then(n.bind(null,"qPDM"))},meta:{deep:0,noNew:!0}},{path:"/addressEdit",name:"addressEdit",component:function(){return Promise.all([n.e(0),n.e(54)]).then(n.bind(null,"784L"))},meta:{deep:0,noNew:!0}},{path:"/addressModify",name:"addressModify",component:function(){return Promise.all([n.e(0),n.e(60)]).then(n.bind(null,"t32k"))},meta:{deep:0,noNew:!0}},{path:"/subAccept",name:"subAccept",component:function(){return Promise.all([n.e(0),n.e(50)]).then(n.bind(null,"JxbE"))},meta:{deep:0,noNew:!0}},{path:"/subAccount",name:"subAccount",component:function(){return n.e(32).then(n.bind(null,"9K06"))},meta:{deep:0,noNew:!0}},{path:"/address",name:"Address",component:function(){return Promise.all([n.e(0),n.e(47)]).then(n.bind(null,"kZy8"))},meta:{deep:0,noNew:!0}},{path:"/activityAddr",name:"activityAddr",component:function(){return Promise.all([n.e(0),n.e(64)]).then(n.bind(null,"TEQG"))},meta:{deep:0,noNew:!0}},{path:"/liuyi",name:"liuyi",component:function(){return Promise.all([n.e(0),n.e(16)]).then(n.bind(null,"De9k"))},meta:{deep:0,noNew:!0}},{path:"/starRank",name:"starRank",component:function(){return Promise.all([n.e(0),n.e(46)]).then(n.bind(null,"YaSr"))},meta:{deep:0,noNew:!0}},{path:"/starRankV2",name:"starRankV2",component:function(){return Promise.all([n.e(0),n.e(37)]).then(n.bind(null,"4plS"))},meta:{deep:0,noNew:!0}},{path:"/starDetail",name:"starDetail",component:function(){return Promise.all([n.e(0),n.e(44)]).then(n.bind(null,"v+uu"))},meta:{deep:0,noNew:!0}},{path:"/starResult",name:"starResult",component:function(){return Promise.all([n.e(0),n.e(52)]).then(n.bind(null,"xi8t"))},meta:{deep:0,noNew:!0}},{path:"/starResultV2",name:"starResultV2",component:function(){return Promise.all([n.e(0),n.e(38)]).then(n.bind(null,"GSYK"))},meta:{deep:0,noNew:!0}},{path:"/zhibo",name:"zhibo",component:function(){return n.e(58).then(n.bind(null,"2tJf"))},meta:{deep:0,noNew:!0}},{path:"/med",name:"med",component:function(){return Promise.all([n.e(0),n.e(35)]).then(n.bind(null,"sj+b"))},meta:{deep:0,noNew:!0}},{path:"/preview",name:"preview",component:function(){return Promise.all([n.e(0),n.e(22)]).then(n.bind(null,"UFvj"))},meta:{deep:0,noNew:!0}},{path:"/bbda",name:"bbda",component:function(){return Promise.all([n.e(0),n.e(27)]).then(n.bind(null,"IKJm"))},meta:{deep:0,noNew:!0}},{path:"/exChange",name:"exChange",component:function(){return n.e(51).then(n.bind(null,"RaOr"))},meta:{deep:0,noNew:!0}},{path:"/newLesson",name:"newLesson",component:function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,"4t0V"))},meta:{deep:0}},{path:"/star",name:"star",component:function(){return Promise.all([n.e(0),n.e(6)]).then(n.bind(null,"riDf"))},meta:{deep:0,noNew:!0}},{path:"/shareGoods",name:"shareGoods",component:function(){return Promise.all([n.e(0),n.e(4)]).then(n.bind(null,"54Ry"))},meta:{deep:0,noNew:!0}},{path:"/myGoodsList",name:"myGoodsList",component:function(){return Promise.all([n.e(0),n.e(59)]).then(n.bind(null,"P3Wy"))},meta:{deep:1}},{path:"/mine",name:"mine",component:function(){return Promise.all([n.e(0),n.e(14)]).then(n.bind(null,"HgUD"))},meta:{deep:1}},{path:"/order",name:"order",component:function(){return Promise.all([n.e(0),n.e(36)]).then(n.bind(null,"R7Pr"))},meta:{deep:2}},{path:"/share",name:"share",component:function(){return n.e(62).then(n.bind(null,"Eg0l"))},meta:{deep:2}},{path:"/author",name:"author",component:function(){return n.e(41).then(n.bind(null,"sA+T"))},meta:{deep:100,noNew:!0}},{path:"/buyDetail",name:"buyDetail",component:function(){return Promise.all([n.e(0),n.e(25)]).then(n.bind(null,"bNYG"))},meta:{skip_login:!1,noNew:!0,deep:10}},{path:"/buy",name:"buy",component:function(){return Promise.all([n.e(0),n.e(3)]).then(n.bind(null,"Y1ei"))},meta:{noNew:!0,deep:11}},{path:"/success",name:"success",component:function(){return Promise.all([n.e(0),n.e(12)]).then(n.bind(null,"IF8E"))},meta:{noNew:!0,deep:12}},{path:"/buySuccess",name:"buySuccess",component:function(){return Promise.all([n.e(0),n.e(49)]).then(n.bind(null,"w9eS"))},meta:{noNew:!0,deep:12}},{path:"/map",name:"map",component:function(){return Promise.all([n.e(0),n.e(8)]).then(n.bind(null,"3QU7"))},meta:{deep:3}},{path:"/saleSuccess",name:"saleSuccess",component:function(){return n.e(53).then(n.bind(null,"wSE2"))},meta:{deep:4}},{path:"/bindMobile",name:"bindMobile",component:function(){return n.e(48).then(n.bind(null,"/Vxk"))},meta:{deep:0}},{path:"/activity",name:"activity",component:function(){return Promise.all([n.e(0),n.e(7)]).then(n.bind(null,"yYpN"))},meta:{skip_login:!0,noNew:!0}},{path:"/inviteFriends",name:"inviteFriends",component:function(){return n.e(9).then(n.bind(null,"Z6Nl"))},meta:{deep:0,noNew:!0}},{path:"/inviteRecordList",name:"inviteRecordList",component:function(){return n.e(56).then(n.bind(null,"iina"))},meta:{deep:0,noNew:!0}},{path:"/activityInvite",name:"activityInvite",component:function(){return Promise.all([n.e(0),n.e(20)]).then(n.bind(null,"aRHX"))},meta:{skip_login:!0,noNew:!0}},{path:"/inviteList",name:"inviteList",component:function(){return n.e(33).then(n.bind(null,"eZU3"))},meta:{skip_login:!0,noNew:!0}},{path:"/collection",name:"collection",component:function(){return Promise.all([n.e(0),n.e(18)]).then(n.bind(null,"PTpu"))},meta:{skip_login:!0}},{path:"/noWechat",name:"noWechat",component:function(){return n.e(39).then(n.bind(null,"nmbt"))},meta:{skip_login:!1}},{path:"/mpShop",name:"mpShop",component:function(){return Promise.all([n.e(0),n.e(29)]).then(n.bind(null,"VPne"))},meta:{skip_login:!1,noNew:!0}},{path:"/shareConfig",name:"shareConfig",component:function(){return Promise.all([n.e(0),n.e(63)]).then(n.bind(null,"6IIy"))},meta:{noNew:!0}},{path:"/inspectorActivit",name:"inspectorActivit",component:function(){return n.e(43).then(n.bind(null,"SLI2"))},meta:{noNew:!0}},{path:"/inspectorList",name:"inspectorList",component:function(){return Promise.all([n.e(0),n.e(45)]).then(n.bind(null,"f0iw"))},meta:{noNew:!0}},{path:"/secMap",name:"secMap",component:function(){return Promise.all([n.e(0),n.e(11)]).then(n.bind(null,"NVDN"))},meta:{noNew:!0}},{path:"/hasaccount",name:"hasaccount",component:function(){return Promise.all([n.e(0),n.e(40)]).then(n.bind(null,"5QmN"))},meta:{noNew:!0}},{path:"/oldShareGoods",name:"oldShareGoods",component:function(e){return Promise.all([n.e(0),n.e(15)]).then(function(){var t=[n("HI3+")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{noNew:!0}},{path:"/passShop",name:"passShop",component:function(e){return Promise.all([n.e(0),n.e(13)]).then(function(){var t=[n("xcXc")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{noNew:!0}},{path:"/ybIndex",name:"ybIndex",component:function(e){return Promise.all([n.e(0),n.e(5)]).then(function(){var t=[n("P8Lu")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{noNew:!0}},{path:"/ybOrderRender",name:"ybOrderRender",component:function(e){return Promise.all([n.e(0),n.e(10)]).then(function(){var t=[n("5FXK")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{noNew:!0}},{path:"/ybPaySuccess",name:"ybPaySuccess",component:function(e){return n.e(31).then(function(){var t=[n("sFet")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{noNew:!0}},{path:"/ybNav",name:"ybNav",component:function(e){return n.e(57).then(function(){var t=[n("SnBc")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{noNew:!0}},{path:"/navShare",name:"navShare",component:function(e){return n.e(61).then(function(){var t=[n("w9jd")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{noNew:!0}},{path:"/logistics",name:"logistics",component:function(e){return n.e(34).then(function(){var t=[n("H/gB")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{noNew:!0}},{path:"/evaluate",name:"evaluate",component:function(e){return Promise.all([n.e(0),n.e(2)]).then(function(){var t=[n("dlRe")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{noNew:!0}},{path:"/growthRecord",name:"growthRecord",component:function(e){return Promise.all([n.e(0),n.e(23)]).then(function(){var t=[n("3c/M")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{deep:0,noNew:!0,title:"成长记录"}},{path:"/promptTime",name:"promptTime",component:function(e){return n.e(21).then(function(){var t=[n("eVaN")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"*",component:function(){return Promise.all([n.e(0),n.e(55)]).then(n.bind(null,"Zazt"))}}]});h.beforeEach(function(e,t,n){r.default.nextTick(function(){s.a.quick("autoTrackSinglePage")}),"micromessenger"==f.match(/MicroMessenger/i)||"_sq_"==f.match(/_SQ_/i)?"noWechat"==e.name&&(e.query.url?n(decodeURIComponent(e.query.url)):n({name:"index"})):"noWechat"!==e.name&&n({name:"noWechat",query:{url:encodeURIComponent(e.fullPath)}}),i.a.dispatch("isMobile",d.versions.mobile),document.title="唱唱启蒙英语",e.meta.title&&(document.title=e.meta.title);var o=function(){if(localStorage.getItem("retUrl")&&null!==localStorage.getItem("retUrl")&&""!==localStorage.getItem("retUrl")){var e=localStorage.getItem("retUrl").toString();localStorage.removeItem("retUrl"),n(e)}else n()};if(window.location.href.indexOf("gdt_vid")>-1&&localStorage.setItem("gdt_vid",c.a.getParamhref().gdt_vid),"spcShop"===e.name||"mpShop"===e.name||"extensionV1Shop"===e.name||"extensionV1"===e.name||"author"===e.name||"bindMobile"===e.name||"noWechat"===e.name||"inspectorActivit"===e.name||"buyDetail"===e.name||"passShop"===e.name||"ybIndex"===e.name)n();else if(window.location.href.indexOf("token")>-1&&"index"===e.name){var u=c.a.getUrlParam().token||e.query.token;i.a.dispatch("setToken",u),Object(p.P)().then(function(e){localStorage.setItem("userDesc",a()(e)),s.a.login(e.user_id),o()}).catch(function(e){localStorage.getItem("userDesc")&&o()})}else if(localStorage.getItem("cc_token"))i.a.dispatch("setToken",localStorage.getItem("cc_token")),localStorage.getItem("userDesc")?(s.a.login(JSON.parse(localStorage.getItem("userDesc")).user_id),o()):Object(p.P)().then(function(e){localStorage.setItem("userDesc",a()(e)),s.a.login(e.user_id),o()}).catch(function(){localStorage.getItem("userDesc")&&o()});else{var l={retUrl:e.fullPath};localStorage.setItem("retUrl",e.fullPath),e.meta.noNew?(l.is_new_user_url=1,window.location.href="https://wechat.changchangenglish.com/api/client/login?redirect_url=https://wechat.changchangenglish.com"):window.location.href="https://wechat.changchangenglish.com/api/client/login?redirect_url=https://wechat.changchangenglish.com&is_new_user_url=1"}}),t.a=h},"d8/S":function(e,t){},eh36:function(e,t){},hW8u:function(e,t){},nsZj:function(e,t){},"sf/l":function(e,t,n){"use strict";var o=n("pFYg"),a=n.n(o);t.a={dateFmt:function(e,t){var n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var o in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[o]:("00"+n[o]).substr((""+n[o]).length)));return t},getUrlParam:function(){var e=location.search,t=new Object;if(-1!=e.indexOf("?"))for(var n=e.substr(1).split("&"),o=0;o<n.length;o++)t[n[o].split("=")[0]]=unescape(n[o].split("=")[1]);return t},toDataURL:function(e,t){var n=new XMLHttpRequest;n.onload=function(){var e=new FileReader;e.onloadend=function(){t(e.result)},e.readAsDataURL(n.response)},n.responseType="blob",n.open("GET",e,!0),n.send()},getParamhref:function(){var e=location.href,t=new Object;if(-1!=e.indexOf("?"))for(var n=e.substr(e.indexOf("?")+1).split("&"),o=0;o<n.length;o++)t[n[o].split("=")[0]]=unescape(n[o].split("=")[1]);return t},leftTimer:function(e,t){if(e>new Date)var n=e-new Date;else{t&&clearInterval(t);n=0}var o=parseInt(n/1e3/60/60/24,10),a=parseInt(n/1e3/60/60%24,10),r=parseInt(n/1e3/60%60,10),i=parseInt(n/1e3%60,10);return o=this.checkTime(o),a=this.checkTime(a),r=this.checkTime(r),i=this.checkTime(i),o>0?o+"天":a>=0||r>=0||i>=0?a+":"+r+":"+i:void 0},checkTime:function(e){return e<10&&(e="0"+e),e},letslazyload:function(e){var t=new RegExp(/(\<img )([^>]*)(src=")([^"]*")([^>]*)(\>)/,"g");return e=e.replace(t,function(e,t,n,o,a,r,i){return t+n+'data-src="'+a+r+i})},deepCopy:function(e){if("object"===(void 0===e?"undefined":a()(e))){var t=e instanceof Array?[]:{};for(var n in e)e.hasOwnProperty(n)&&(t[n]="object"===a()(e[n])?this.deepCopy(e[n]):e[n]);return t}}}},zP5g:function(e,t){},zSLJ:function(e,t,n){"use strict"}},["NHnr"]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,n,d){for(var t,r,o,i=0,u=[];i<c.length;i++)r=c[i],f[r]&&u.push(f[r][0]),f[r]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(a&&a(c,n,d);u.length;)u.shift()();if(d)for(i=0;i<d.length;i++)o=b(b.s=d[i]);return o};var c={},f={67:0};function b(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,b){a=f[e]=[c,b]});a[2]=c;var n=document.getElementsByTagName("head")[0],d=document.createElement("script");d.type="text/javascript",d.charset="utf-8",d.async=!0,d.timeout=12e4,d.crossOrigin="anonymous",b.nc&&d.setAttribute("nonce",b.nc),d.src=b.p+"static/js/"+({0:"vendor-async"}[e]||e)+"."+{0:"2e60501645511012c980",1:"de0e4b73b51ed214b1bd",2:"1af94944bc1726efaf9b",3:"6bbeb30f16c632496200",4:"14e65ac9bd5412c6dc6f",5:"82c77aabe6f6d93e5571",6:"4eacb6ac9498f58046a5",7:"2c62b0c03f86e1a7b869",8:"abab9a0c05b0ce0b52c8",9:"d19f620cfe6be9ad1b78",10:"e1b7de64c330f3da77e5",11:"a94a729daf12ac1a5888",12:"3443d994fae863e646e8",13:"eb27113664c84649d1de",14:"fe7e5fd85bb51a819bca",15:"f1a61fd2f78b9129b854",16:"76b36eaf84f8f2ee3700",17:"d412c9b495f1148c0a3c",18:"717ee98c6005740ceabe",19:"b2a9b2e54720487ddc2e",20:"2b239c7c61a1de889816",21:"b452ef75d3fabf209b90",22:"27d399cfcbd640df9b75",23:"cc39db3627db91531b39",24:"549eeb0a889318a34e89",25:"8c6cb6614be0436b8eb8",26:"1f744303f79d0549c35b",27:"05805c74647bb6430ca6",28:"0e5ee9efb4f076a3f3f4",29:"3af479827506b51fe6a7",30:"4cde0a5eaf719a4ac587",31:"574d8f2161045ab36c65",32:"eebb73a886e1100c1aa1",33:"60c59e8df0c97ae4efb1",34:"3b2f20a7b9d28e76177d",35:"a16eba0c0b4954994d25",36:"0be069e4d37ac0e7f97c",37:"d7bf73d5f9bffb315baf",38:"da4b5c6da73963c92098",39:"886c3383b261524be947",40:"f1f7909447f251e37873",41:"3b59527515857f0c374e",42:"9a4ffcfce87c758f54ee",43:"a3af0082b0371a6f08eb",44:"cc50700046a867e6dda4",45:"aff8decbab2cd961b334",46:"f70ed8a66995e22a5fab",47:"221ef2a673e7544aa9ca",48:"a7eb5e7c5a1e23204cbb",49:"d22a71d3549e5c6a017d",50:"1f40fd51e9fcc6a2f49c",51:"0a2afa393542b975a716",52:"80b344889e2a9af8bb32",53:"a064f80477583dc0317a",54:"107f4e2e23dc7eb7f9e8",55:"eee5e26f247074851331",56:"725b5f0d9a7fbcdf2f35",57:"c9895d4f61a09c5a2000",58:"4375300294715fc5e15b",59:"81ed8f435a78b47c11a7",60:"35d956cdde842e754c25",61:"69cadb6491a683109ce8",62:"f8ed8742b78575b29897",63:"9c7e3fa9c6a4d02ffd66",64:"e01d8a7e823843503b7c"}[e]+".js";var t=setTimeout(r,12e4);function r(){d.onerror=d.onload=null,clearTimeout(t);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return d.onerror=d.onload=r,n.appendChild(d),c},b.m=e,b.c=c,b.d=function(e,a,c){b.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},b.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(a,"a",a),a},b.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},b.p="https://static-cdn.changchangenglish.com/new-sing/",b.oe=function(e){throw e}}([]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment