(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c962bea0"],{"00ea":function(e,t,n){},"07ec":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAQCAYAAAAFzx/vAAAAzklEQVRIS73VQQrCMBAF0Jl4AhG8WLLuATyBQsEKBT2BB8h6cjAX4qpLOxJopGrbTDQ1u8DMvATCDwIAGGM2zFwz89Lvcy9EvCFiSURnLIpi1TTNhZkXuaH+PES8K6XW/wf9KbTWW2Y+znzDnXPuhAExxlRt2+7nQJVSByKq/Own2D2e7Ggf+wBzo+/YIJgLHcJGwV/RMWwS/BadwqJgKhrDRKAUlWBiMIZKsSRwDE3BksEQgwBQd4lU+rhKSaeXpJE2+h/G11prr9KeUPcAj0N/M9RFWYgAAAAASUVORK5CYII="},1621:function(e,t,n){"use strict";n("928c")},"1bf5":function(e,t,n){"use strict";n("4c9f")},"4c4d":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"clause",class:{"no-padding-left":e.noPaddingLeft}},[n("van-checkbox",{attrs:{"checked-color":"#FFD200","icon-size":"14"},on:{change:e.checkboxChange},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}}),n("div",[n("span",{staticClass:"agree"},[e._v("我已阅读并同意")]),n("span",{on:{click:function(){return e.$router.push("/termsOfService")}}},[e._v("《服务条款》")]),e._v(" 、 "),n("span",{on:{click:function(){return e.$router.push("/privacyClause")}}},[e._v("《隐私条款》")])])],1)},o=[],r={props:{noPaddingLeft:{type:Boolean,default:!1}},data:function(){return{checked:!0}},methods:{checkboxChange:function(e){this.checked=e,this.checked||this.$toast("请勾选隐私条款"),this.$emit("checkboxFn",e)}}},c=r,s=(n("1bf5"),n("2877")),i=Object(s["a"])(c,a,o,!1,null,"6fd6454e",null);t["a"]=i.exports},"4c9f":function(e,t,n){},"928c":function(e,t,n){},bb3d:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"wechat-title",rawName:"v-wechat-title",value:e.pageTitle,expression:"pageTitle"}],staticClass:"container"},[e._m(0),a("van-form",{staticClass:"login-form",attrs:{"show-error":!1},on:{submit:e.onSubmit}},[a("van-field",{attrs:{type:"number","label-width":"20",name:"phone",placeholder:"请输入手机号",autocomplete:"off",maxlength:"11",rules:[{required:!0,message:"请输入正确的手机号"}]},scopedSlots:e._u([{key:"left-icon",fn:function(){return[a("div",{staticClass:"area-code",on:{click:function(t){e.isShowEreaCode=!0}}},[a("span",[e._v("+"+e._s(e.tel))]),a("img",{attrs:{src:n("07ec")}})])]},proxy:!0}]),model:{value:e.phone,callback:function(t){e.phone=t},expression:"phone"}}),a("van-field",{staticStyle:{"margin-top":".2rem"},attrs:{center:"",type:"number",placeholder:"请输入验证码",name:"code",autocomplete:"off",rules:[{required:!0,message:"验证码不能为空"}]},scopedSlots:e._u([{key:"button",fn:function(){return[a("van-button",{staticClass:"code-btn",attrs:{round:"",size:"small",color:e.phone?"#FFD200":"#EDEDED",type:"primary",disabled:!e.phone},on:{click:e.sendCode}},[e._v(" "+e._s(e.showCodeText?"发送验证码":e.num+"s")+" ")])]},proxy:!0}]),model:{value:e.code,callback:function(t){e.code=t},expression:"code"}}),a("div",{staticStyle:{margin:".4rem .28rem 0 .28rem"}},[a("van-button",{staticClass:"submit-btn",attrs:{color:"#FFD200",round:"",block:"",type:"info",disabled:!e.code||!e.phone,"native-type":"submit"}},[e._v("立即登录")])],1)],1),a("Tips",{staticClass:"tips",attrs:{noPaddingLeft:""},on:{checkboxFn:e.checkboxChange}}),a("AreaCode",{attrs:{"is-show":e.isShowEreaCode},on:{tel:function(t){return e.tel=t},cancel:function(t){e.isShowEreaCode=!1}}})],1)},o=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"header"},[a("img",{attrs:{src:n("ffba")}}),a("p",{staticClass:"text1"},[e._v("欢迎加入申怡读书")]),a("p",{staticClass:"text2"},[e._v("快乐阅读,一起成长!")])])}],r=n("5530"),c=n("1da1"),s=(n("96cf"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow,expression:"isShow"}],staticClass:"bounced"},[n("div",{staticClass:"bounced_box"},[n("div",{staticClass:"qqqq"},[n("div",{staticClass:"bounced_title"},[n("div",[e._v("选择国际电话区号")]),n("div",{on:{click:function(t){return e.$emit("cancel")}}},[e._v("取消")])])]),n("div",{staticStyle:{"margin-top":"0.4rem"}},e._l(e.areaCodeArr,(function(t,a){return n("div",{key:a},[n("div",{class:["bounced_list",t.bool?"active":""],on:{click:function(n){return e.listClick(t)}}},[n("div",[e._v(e._s(t.name))]),n("div",[e._v("+"+e._s(t.tel))])])])})),0)])])}),i=[],u=(n("159b"),n("d466")),l={name:"AreaCode",props:{isShow:{type:Boolean,default:!1}},data:function(){return{areaCodeArr:[]}},created:function(){this.getAreaCode()},methods:{getAreaCode:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n,a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(u["d"])();case 2:if(n=t.sent,a=n.code,o=n.data,200===a){t.next=7;break}return t.abrupt("return");case 7:o.forEach((function(e){e.bool=!1})),o[0].bool=!0,e.$emit("tel",o[0].tel),e.areaCodeArr=o;case 11:case"end":return t.stop()}}),t)})))()},listClick:function(e){this.areaCodeArr.forEach((function(e){e.bool=!1})),e.bool=!0,this.$emit("tel",e.tel),this.$emit("cancel")}}},d=l,h=(n("d206"),n("2877")),p=Object(h["a"])(d,s,i,!1,null,"4cc4c5f2",null),f=p.exports,m=n("4c4d"),v=n("284b"),b=function(e){return v["a"].post("/openApi/login/bindDevice",e)},g=n("cf45"),w={components:{AreaCode:f,Tips:m["a"]},name:"OpenPlatformLogin",data:function(){return{pageTitle:"确认订单",phone:"",code:"",tel:"86",showCodeText:!0,num:60,isShowEreaCode:!1,checked:!0,query:this.$route.query}},methods:{checkboxChange:function(e){this.checked=e,this.checked?""!=this.code&&""!=this.phone||this.$toast("请输入正确的验证码/手机号"):this.$toast("请勾选隐私条款")},onSubmit:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function e(){var n,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.checked){e.next=3;break}return t.$toast("请勾选隐私条款"),e.abrupt("return");case 3:return n=Object(r["a"])(Object(r["a"])({},t.query),{},{action:+t.query.action,phone:t.phone,code:t.code}),e.next=6,b(n);case 6:a=e.sent,o=a.code,a.data,200===o?t.$router.push("/openPlatform/result/success"):t.$router.push("/openPlatform/result/fail");case 10:case"end":return e.stop()}}),e)})))()},sendCode:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n,a,o,r,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.phone.length<5)){t.next=3;break}return e.$toast("请输入正确手机号"),t.abrupt("return");case 3:return n={userName:e.phone,type:2,areaCode:e.tel,ts:Math.floor(Date.now()/1e3),sign:Object(g["g"])(e.phone)},t.next=6,Object(u["B"])(n);case 6:if(a=t.sent,o=a.code,a.data,r=a.msg,200===o){t.next=13;break}return e.$toast.fail(r),t.abrupt("return");case 13:e.$toast("发送验证码成功"),e.showCodeText=!1,c=setInterval((function(){e.num--,e.num<=0&&(clearInterval(c),e.showCodeText=!0,e.num=60)}),1e3);case 16:case"end":return t.stop()}}),t)})))()}}},C=w,k=(n("1621"),Object(h["a"])(C,a,o,!1,null,"05ace778",null));t["default"]=k.exports},d206:function(e,t,n){"use strict";n("00ea")},ffba:function(e,t,n){e.exports=n.p+"img/logo@2x.5769e804.png"}}]);