webpackJsonp([39],{GKIT:function(e,t){},JCOr:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i("mvHQ"),s=i.n(o),a=(i("eqfM"),i("/QYm")),c=i("Jmy5"),n=i("CCn6"),r={name:"spcShop",data:function(){return{inviteList:[],spcShopImg:c.h,imgCode:"",msgCode:"",time:0,mobile:""}},filters:{},mounted:function(){var e=this;window.onscroll=function(){var t=document.documentElement.scrollTop||document.body.scrollTop;e.$refs.nav&&(e.$refs.nav.style.opacity=t>300?1:0)},this.$route.query.shopId?Object(n.q)(this.$route.query.shopId).then(function(e){}):this.$router.push("error")},methods:{navTo:function(){window.scrollTo(0,0)},bindMobile:function(){var e=this;if(this.$sa.quick("trackHeatMap",this.$refs.btn),""===this.msgCode||!this.msgCode)return Object(a.a)("请填写手机验证码"),!1;var t={verify_code:this.msgCode};if(!this.mobile.match(/^1\d{10,11}$/))return Object(a.a)("请正确填写手机号"),!1;t.mobile=this.mobile,window.location.href.indexOf("teacher_id")>-1&&(t.teacher_id=common.getParamhref().teacher_id||this.$route.query.teacher_id),t.source="login";var i={shopId:this.$route.query.shopId,type:""};this.$route.query.invite_code&&(i.invite_code=this.$route.query.invite_code),localStorage.getItem("gdt_vid")&&(i.gdt_vid=localStorage.getItem("gdt_vid")),window.location.href.indexOf("cct_user_id")>-1&&(i.cct_user_id=comment.getParamhref().cct_user_id),Object(n.e)(t).then(function(t){Object(n.O)().then(function(t){localStorage.setItem("userDesc",s()(t)),e.$router.push({name:"buy",query:i})})}).catch(function(e){})},refImgCode:function(){this.$refs.imgCode.src="/api/public/img/verify?flag="+Math.random()},sendMobileCode:function(){var e=this,t={};if(!this.mobile.match(/^1\d{10,11}$/))return Object(a.a)("请正确填写手机号"),!1;t.mobile=this.mobile,this.time=30,this.timeO(),this.$sa.track("clickSendcode",{}),Object(n._4)(t).then(function(t){"操作成功"===t?Object(a.a)("验证码已发送"):(e.time=0,Object(a.a)(t))}).catch(function(e){})},timeO:function(){var e=this;this.time>0&&(this.time--,setTimeout(function(){e.timeO()},1e3))}}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"activity"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.spcShopImg.spcShop7,expression:"spcShopImg.spcShop7"}],attrs:{alt:""}}),e._v(" "),i("div",{staticClass:"form-block"},[i("div",{staticClass:"input-block"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.mobile,expression:"mobile"}],attrs:{placeholder:"请输入手机号",autofocus:"autofocus",type:"number",pattern:"[0-9]*"},domProps:{value:e.mobile},on:{input:function(t){t.target.composing||(e.mobile=t.target.value)}}})]),e._v(" "),i("div",{staticClass:"input-block"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.msgCode,expression:"msgCode"}],attrs:{placeholder:"请输入短信验证码",oninput:"if(value.length>4)value=value.slice(0,4)",type:"number",maxlength:"4",pattern:"[0-9]*"},domProps:{value:e.msgCode},on:{input:function(t){t.target.composing||(e.msgCode=t.target.value)}}}),e._v(" "),0===e.time?i("button",{staticClass:"codeMsg right-btn",on:{click:e.sendMobileCode}},[e._v("发送验证码")]):e._e(),e._v(" "),e.time>0?i("button",{staticClass:"codeMsg disabled right-btn"},[e._v(e._s(e.time)+"s后重新发送")]):e._e()]),e._v(" "),i("div",{staticClass:"btn-block"},[i("div",{ref:"btn",staticClass:"btn",on:{click:e.bindMobile}},[e._v("\n 立即免费领取\n ")])])]),e._v(" "),i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.spcShopImg.spcShop1,expression:"spcShopImg.spcShop1"}],attrs:{alt:""}}),e._v(" "),i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.spcShopImg.spcShop2,expression:"spcShopImg.spcShop2"}],attrs:{alt:""}}),e._v(" "),i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.spcShopImg.spcShop3,expression:"spcShopImg.spcShop3"}],attrs:{alt:""}}),e._v(" "),i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.spcShopImg.spcShop4,expression:"spcShopImg.spcShop4"}],attrs:{alt:""}}),e._v(" "),i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.spcShopImg.spcShop6,expression:"spcShopImg.spcShop6"}],attrs:{alt:""}}),e._v(" "),i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.spcShopImg.spcShop8,expression:"spcShopImg.spcShop8"}],ref:"nav",staticClass:"nav",attrs:{alt:""},on:{click:e.navTo}})])},staticRenderFns:[]};var m=i("VU/8")(r,l,!1,function(e){i("xsl0"),i("GKIT")},"data-v-2a062668",null);t.default=m.exports},xsl0:function(e,t){}});
-
chenyishuai@singsingenglish.com authored5c65ebaa