webpackJsonp([35],{ZLtZ:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o("woOf"),n=o.n(i),a=o("sHg/"),c=o("YhRe"),s=o("765u"),r=o("Gptr"),l=o("TfkN"),d={name:"check-not-login",components:{LogoTips:c.a,DistPicker:r.a},data:function(){return{mobilePhone:"",verifyCode:"",getTimeStr:"获取验证码",consignee:"",tel:"",address:"",inputData:{mobilePhone:!1,verifyCode:!1,consignee:!1,tel:!1,address:!1},time:60,errorMsg:{isShow:!1,content:""},dialogCom:{},captcha:"",canSend:!0,canClickBtn:!0,isBrowse:!1,showAddCtl:!0,isShowDist:!1,distObj:{distFull:""},isOldUser:!1}},mounted:function(){this.isBrowse=!0;var e=this;l.a.checkLogin(function(t){0==t.code&&(e.$store.commit("setProState",{pro:"tokenKey",value:t.data.tokenKey}),e.$store.commit("setProState",{pro:"tokenValue",value:t.data.tokenValue}),t.data.isLogin&&e.$router.replace("/member/space"))})},destroyed:function(){this.isBrowse=!1,this.clearSettime()},watch:{mobilePhone:function(e){this.mobilePhone=s.a.formatMobile(e),this.inputData.mobilePhone=!!e},verifyCode:function(e){this.verifyCode=s.a.formatVerifyCode(e),this.inputData.verifyCode=!!e},consignee:function(e){this.inputData.consignee=!!e},tel:function(e){this.tel=s.a.formatMobile(e),this.inputData.tel=!!e},address:function(e){this.inputData.address=!!e}},computed:{isDisabled:{get:function(){return!(this.time>0&&this.time<60||!this.canSend||""==this.mobilePhone)},set:function(e){return e}},canClick:function(){return!(!this.mobileCheck(!0,this.mobilePhone)||!s.a.checkCode(this.verifyCode,!0))},wHeightStyle:function(){if(this.isBrowse)return{minHeight:(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+"px"}}},methods:{gotoBack:function(e){"/user"==e?this.$router.replace("/user"):this.goBack()},clickSave:function(){if(this.canClick&&this.canClickBtn&&this.mobileCheck(!1,this.mobilePhone)&&s.a.checkCode(this.verifyCode,!0)){if(this.consignee.length<=0)s.a.showToast(this,"请填写收货人姓名");else if(this.mobileCheck(!1,this.tel))if(""!=this.distObj.distFull&&this.distObj.province&&this.distObj.city&&(this.distObj.noArea||this.distObj.district))if(0!=this.address.length)if(/((?!^[0-9]+$)(?!^[A-z]+$)(?!^[^A-z0-9]+$)^.{6,150}$)/.test(this.address)||/[\u4E00-\u9FA5]{3,150}/g.test(this.address)){var e=this,t={mobile:e.mobilePhone.replace(/[^\d]/g,""),verifycode:e.verifyCode,tel:e.tel.replace(/[^\d]/g,""),consignee:e.consignee,address:e.address};if(n()(t,e.distObj),e.captcha){var o=a.default.getCookie("verifyid");t.captcha=e.captcha,t.verifyid=o}e.canClickBtn=!1,l.a.orderLogin(t,function(t){e.canClickBtn=!0,e.captcha="",0===t.code?(l.a.ajaxStaticsMakeUser("user"),localStorage.setItem("aid",t.data.aid),e.$router.replace("/order/check")):-15e3==t.code||t.data&&1==t.data.need_captcha?s.a.showCaptchaDialog(e,"clickSave"):-16121==t.code?e.alreadyRegister():s.a.showToast(e,t.msg)})}else s.a.showToast(this,"请填写正确的收货地址");else s.a.showToast(this,"请填写详细地址");else s.a.showToast(this,"请选择省、市、区")}},clearIconToggle:function(e,t){if(this.inputData[e]="focus"==t&&this[e].length>0,1==this.isOldUser&&"verifyCode"==e&&"blur"==t&&s.a.checkCode(this.verifyCode,!0)&&this.mobileCheck(!0,this.mobilePhone)){var o=this,i={mobile:o.mobilePhone.replace(/[^\d]/g,""),verifycode:o.verifyCode};l.a.checkCode(i,function(e){0==e.code&&o.alreadyRegister({})})}},mobileCheck:function(e,t){var o=s.a.checkMobile(t);return!!o.state||(e||s.a.showToast(this,o.error),!1)},clearInput:function(e){this[e]=""},ajaxSendMobile:function(){var e=this;if(e.isDisabled){if(!this.mobileCheck(!1,this.mobilePhone))return;var t={mobile:e.mobilePhone.replace(/[^\d]/g,""),type:"login",from:"order"};if(e.canSend=!1,s.a.testsolt(e,t),e.captcha){var o=a.default.getCookie("verifyid");t.captcha=e.captcha,t.verifyid=o}l.a.ajaxSendMobile(t,function(t){e.captcha="",0==t.code?e.mobileTime():-15e3==t.code?(e.canSend=!0,s.a.showCaptchaDialog(e,"ajaxSendMobile")):(e.canSend=!0,s.a.showToast(e,t.msg)),e.isOldUser=t.data.isNew})}},alreadyRegister:function(){var e=this;e.showDialogCom({content:"你已是喜地的用户，是否立即去结算",type:"confirm",ozbtn:"确认",submitCallback:function(){e.$router.replace("/order/check")}})},mobileTime:function(){var e=this,t="";e.settime=setInterval(function(){e.time--,0==e.time?e.clearSettime():(t=e.time+"秒后重发",e.getTimeStr=t)},1e3)},clearSettime:function(){this.settime&&(this.canSend=!0,this.time=60,this.isDisabled=!0,this.getTimeStr="获取验证码",clearInterval(this.settime))},captchaOk:function(e){e&&(e.captcha&&(this.captcha=e.captcha),this[e.cb]&&this[e.cb]())},captchaError:function(e){s.a.showToast(this,e)},closeLogoTips:function(){s.a.closeToast(this)},distCtl:function(e){this.isShowDist=e||!1},distSelectOk:function(e){this.distObj=e}}},m={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"mobile-box"},[o("header",{staticClass:"mobile-head"},[o("div",{staticClass:"head_left",on:{click:e.gotoBack}},[o("i",{staticClass:"icon icon_triangle_left"})]),e._v(" "),o("div",{staticClass:"head_title"},[e._v("确认订单")]),e._v(" "),o("div",{staticClass:"head_right",on:{click:function(t){e.gotoBack("/user")}}},[e._v("去登录")])]),e._v(" "),o("div",{staticClass:"mobile-body"},[o("p",{staticClass:"top-txt"},[e._v("快捷下单验证")]),e._v(" "),o("div",{staticClass:"input-box"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.mobilePhone,expression:"mobilePhone"}],staticClass:"mobile-input",attrs:{type:"tel",maxlength:"13",placeholder:"请输入手机号"},domProps:{value:e.mobilePhone},on:{focus:function(t){t.preventDefault(),e.clearIconToggle("mobilePhone","focus")},blur:function(t){t.preventDefault(),e.clearIconToggle("mobilePhone","blur")},input:function(t){t.target.composing||(e.mobilePhone=t.target.value)}}}),e._v(" "),o("i",{directives:[{name:"show",rawName:"v-show",value:e.inputData.mobilePhone,expression:"inputData.mobilePhone"}],staticClass:"icon icon_unfinished",on:{click:function(t){e.clearInput("mobilePhone")}}})]),e._v(" "),o("div",{staticClass:"input-box code-box"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.verifyCode,expression:"verifyCode"}],staticClass:"mobile-input",attrs:{type:"tel",maxlength:"4",placeholder:"请输入短信验证码"},domProps:{value:e.verifyCode},on:{focus:function(t){t.preventDefault(),e.clearIconToggle("verifyCode","focus")},blur:function(t){t.preventDefault(),e.clearIconToggle("verifyCode","blur")},input:function(t){t.target.composing||(e.verifyCode=t.target.value)}}}),e._v(" "),o("i",{directives:[{name:"show",rawName:"v-show",value:e.inputData.verifyCode,expression:"inputData.verifyCode"}],staticClass:"icon icon_unfinished",on:{click:function(t){e.clearInput("verifyCode")}}}),e._v(" "),o("p",{staticClass:"code-txt",class:""!=e.mobilePhone&&e.canSend?"":"code-disstyle",on:{click:e.ajaxSendMobile}},[e._v(e._s(e.getTimeStr))])]),e._v(" "),o("p",{staticClass:"top-txt address-p"},[e._v("收货地址")]),e._v(" "),o("div",{staticClass:"input-box"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.consignee,expression:"consignee"}],staticClass:"mobile-input",attrs:{type:"text",maxlength:"25",placeholder:"收货人姓名"},domProps:{value:e.consignee},on:{focus:function(t){t.preventDefault(),e.clearIconToggle("consignee","focus")},blur:function(t){t.preventDefault(),e.clearIconToggle("consignee","blur")},input:function(t){t.target.composing||(e.consignee=t.target.value)}}}),e._v(" "),o("i",{directives:[{name:"show",rawName:"v-show",value:e.inputData.consignee,expression:"inputData.consignee"}],staticClass:"icon icon_unfinished",on:{click:function(t){e.clearInput("consignee")}}})]),e._v(" "),o("div",{staticClass:"input-box"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.tel,expression:"tel"}],staticClass:"mobile-input",attrs:{type:"tel",maxlength:"13",placeholder:"手机号码"},domProps:{value:e.tel},on:{focus:function(t){t.preventDefault(),e.clearIconToggle("tel","focus")},blur:function(t){t.preventDefault(),e.clearIconToggle("tel","blur")},input:function(t){t.target.composing||(e.tel=t.target.value)}}}),e._v(" "),o("i",{directives:[{name:"show",rawName:"v-show",value:e.inputData.tel,expression:"inputData.tel"}],staticClass:"icon icon_unfinished",on:{click:function(t){e.clearInput("tel")}}})]),e._v(" "),o("div",{staticClass:"input-box",on:{click:function(t){e.distCtl(!0)}}},[o("input",{staticClass:"mobile-input dist-input",attrs:{type:"text",disabled:"",placeholder:"省、市、区"},domProps:{value:e.distObj.distFull}})]),e._v(" "),o("div",{staticClass:"input-box"},[o("textarea",{directives:[{name:"model",rawName:"v-model",value:e.address,expression:"address"}],staticClass:"mobile-input address-textarea",attrs:{minlength:"6",maxlength:"150",placeholder:"详细地址"},domProps:{value:e.address},on:{focus:function(t){t.preventDefault(),e.clearIconToggle("address","focus")},blur:function(t){t.preventDefault(),e.clearIconToggle("address","blur")},input:function(t){t.target.composing||(e.address=t.target.value)}}}),e._v(" "),o("i",{directives:[{name:"show",rawName:"v-show",value:e.inputData.address,expression:"inputData.address"}],staticClass:"icon icon_unfinished",on:{click:function(t){e.clearInput("address")}}})]),e._v(" "),o("div",{staticClass:"mobile-btn",class:{"btn-disable":!e.canClick},on:{click:e.clickSave}},[e._v("保存并使用")])]),e._v(" "),o("logo-tips",{attrs:{content:e.errorMsg.content,isShowErrormsg:e.errorMsg.isShow},on:{closeLogoTips:e.closeLogoTips}}),e._v(" "),o("dialog-com",{attrs:{dialog:e.dialogCom},on:{captchaError:e.captchaError,captchaOk:e.captchaOk}}),e._v(" "),o("dist-picker",{attrs:{isShowDist:e.isShowDist},on:{closeDist:e.distCtl,distSelectOk:e.distSelectOk}})],1)},staticRenderFns:[]};var h=o("VU/8")(d,m,!1,function(e){o("wY3M")},"data-v-7c0e1c92",null);t.default=h.exports},mFvG:function(e,t,o){(e.exports=o("FZ+f")(!1)).push([e.i,"\n.mobile-body .input-box .dist-input[data-v-7c0e1c92] {\n  overflow: hidden;\n  white-space: nowrap;\n  text-overflow: ellipsis;\n}\n.mobile-box[data-v-7c0e1c92] {\n  position: relative;\n  overflow: hidden;\n}\n.mobile-head[data-v-7c0e1c92] {\n  position: relative;\n  height: 4rem;\n  line-height: 4rem;\n  width: 100%;\n  left: 0;\n  top: 0;\n  color: #333;\n  font-size: 1.5rem;\n}\n.mobile-head .head_left[data-v-7c0e1c92] {\n    position: absolute;\n    left: 1.25rem;\n}\n.mobile-head .head_right[data-v-7c0e1c92] {\n    position: absolute;\n    top: 0;\n    right: 2.5rem;\n    color: #ddd;\n}\n.mobile-head .head_title[data-v-7c0e1c92] {\n    width: 100%;\n    text-align: center;\n}\n.mobile-body[data-v-7c0e1c92] {\n  margin: 0 auto;\n  padding: 0 3.08333rem;\n}\n.mobile-btn[data-v-7c0e1c92] {\n  margin: 0 auto;\n  height: 3.75rem;\n  text-align: center;\n  line-height: 3.75rem;\n  background-color: #5fd9da;\n  color: #fff;\n  font-size: 1.25rem;\n}\n.btn-disable[data-v-7c0e1c92] {\n  background-color: #97d2d3;\n  color: #e5e5e5;\n}\ninput[data-v-7c0e1c92]:-webkit-autofill, textarea[data-v-7c0e1c92]:-webkit-autofill, select[data-v-7c0e1c92]:-webkit-autofill {\n  background-color: #ffffff !important;\n  background-image: none !important;\n  color: black !important;\n  -webkit-tap-highlight-color: transparent !important;\n  -webkit-box-shadow: 0 0 0px 1000px white inset !important;\n}\n.mobile-logo[data-v-7c0e1c92] {\n  margin-top: 1.5rem;\n  padding-bottom: 3.33333rem;\n  text-align: center;\n}\n.mobile-logo .logo-img[data-v-7c0e1c92] {\n    width: 17.58333rem;\n    height: auto;\n}\n.mobile-body .top-txt[data-v-7c0e1c92] {\n  margin-top: 1.5rem;\n  padding-bottom: 2.33333rem;\n  font-size: 1rem;\n  color: #222222;\n}\n.mobile-body .input-box[data-v-7c0e1c92] {\n  position: relative;\n  border-bottom: 1px solid #cccccc;\n  font-size: 1.08333rem;\n}\n.mobile-body .input-box .mobile-input[data-v-7c0e1c92] {\n    width: 100%;\n    height: 2.33333rem;\n    font-size: 1.5rem;\n    line-height: 2.33333rem;\n    color: #222222;\n}\n.mobile-body .input-box .icon[data-v-7c0e1c92] {\n    position: absolute;\n    top: 0.33333rem;\n    right: 0;\n    padding-left: 0.83333rem;\n    font-size: 1.33333rem;\n    color: #c5c5c5;\n}\n.mobile-body .input-box input[data-v-7c0e1c92]::-webkit-input-placeholder {\n    font-size: 1.08333rem;\n    color: #cccccc;\n    font-weight: normal;\n}\n.mobile-body .code-box[data-v-7c0e1c92] {\n  margin-top: 2.33333rem;\n}\n.mobile-body .code-box .icon[data-v-7c0e1c92] {\n    top: 0.5rem;\n    right: 5.83333rem;\n}\n.mobile-body .code-box .code-txt[data-v-7c0e1c92] {\n    position: absolute;\n    right: 0;\n    top: 0.33333rem;\n}\n.mobile-body .code-box .code-disstyle[data-v-7c0e1c92] {\n    color: #cccccc;\n}\n.mobile-body .mobile-bottom[data-v-7c0e1c92] {\n  margin-top: 1.58333rem;\n  font-size: 1.08333rem;\n  color: #777;\n}\n.mobile-body .mobile-bottom .bottom-right[data-v-7c0e1c92] {\n    float: right;\n}\n.mobile-body .password-box[data-v-7c0e1c92] {\n  margin-top: 2.33333rem;\n}\n.mobile-body .password-box .icon_unfinished[data-v-7c0e1c92] {\n    top: 0.58333rem;\n    right: 2.5rem;\n}\n.mobile-body .password-box .icon_password_hide[data-v-7c0e1c92] {\n    font-size: 1.66667rem;\n}\n.mobile-body .password-box .icon_password_show[data-v-7c0e1c92] {\n    color: #5fd9da;\n}\n.mobile-body .mobile-btn[data-v-7c0e1c92] {\n  margin-top: 5rem;\n}\n.bottom-txt[data-v-7c0e1c92] {\n  position: absolute;\n  bottom: 2.5rem;\n  width: 100%;\n  text-align: center;\n  font-size: 1rem;\n  color: #777;\n}\n.bottom-txt span[data-v-7c0e1c92] {\n    color: #0261b9;\n}\n.mobile-body .top-txt[data-v-7c0e1c92] {\n  margin-top: 0;\n  padding-bottom: 0;\n  height: 3rem;\n  line-height: 3rem;\n  font-size: 1.33333rem;\n}\n.mobile-body .address-p[data-v-7c0e1c92] {\n  margin-top: 1.33333rem;\n}\n.mobile-body .input-box .mobile-input[data-v-7c0e1c92] {\n  height: 3.75rem;\n}\n.mobile-body .input-box .icon[data-v-7c0e1c92] {\n  top: 32%;\n}\n.mobile-body .input-box .address-textarea[data-v-7c0e1c92] {\n  white-space: normal;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  padding: 1.33333rem 1.66667rem 1.33333rem 0;\n  height: 6.66667rem;\n  overflow-y: scroll;\n  border: none;\n  resize: none;\n  font-size: 1.5rem;\n  color: #222;\n}\n.mobile-body .input-box .address-textarea[data-v-7c0e1c92]::-webkit-scrollbar {\n  display: none;\n}\n.mobile-body .code-box[data-v-7c0e1c92] {\n  margin-top: 0;\n}\n.mobile-body .code-box .code-txt[data-v-7c0e1c92] {\n    top: 31%;\n}\ntextarea[data-v-7c0e1c92]:-ms-input-placeholder {\n  color: #ccc;\n  font-size: 1.08333rem;\n  font-weight: 500;\n}\ntextarea[data-v-7c0e1c92]::-webkit-input-placeholder {\n  color: #ccc;\n  font-size: 1.08333rem;\n  font-weight: 500;\n}\ninput[disabled][data-v-7c0e1c92] {\n  filter: alpha(opacity=100);\n  opacity: 1;\n  background: #fff;\n}\n",""])},wY3M:function(e,t,o){var i=o("mFvG");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o("rjj0")("0839175d",i,!0,{})}});