require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/components/login_mobile/index"],{"145b":function(t,e,i){"use strict";i.r(e);var n=i("2666"),o=i("7500");for(var c in o)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(c);i("793a");var s=i("828b"),a=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"57307614",null,!1,n["a"],void 0);e["default"]=a.exports},2666:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},o=[]},"430b":function(t,e,i){},7500:function(t,e,i){"use strict";i.r(e);var n=i("cb663"),o=i.n(n);for(var c in n)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(c);e["default"]=o.a},"793a":function(t,e,i){"use strict";var n=i("430b"),o=i.n(n);o.a},cb663:function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i("f448")),c=n(i("95da")),s=i("8f59"),a=i("51a2"),u=i("9366"),l=i("0cce"),d=i("9592"),r=getApp(),f={name:"login_mobile",computed:(0,s.mapGetters)(["userInfo","isLogin","globalData"]),props:{isUp:{type:Boolean,default:!1},authKey:{type:String,default:""},isShow:{type:Boolean,default:!0},isPos:{type:Boolean,default:!0},appleShow:{type:String,default:""},platform:{type:String,default:""},wxCode:{type:String,default:""},loginConfig:{type:String,default:""}},data:function(){return{theme:r.globalData.theme,keyCode:"",account:"",codeNum:"",isApp:0}},mixins:[o.default],components:{Verify:function(){i.e("pages/users/components/verifition/verify").then(function(){return resolve(i("8715"))}.bind(null,i)).catch(i.oe)}},methods:{handlerOnVerSuccess:function(t){this.$refs.verify.hide(),this.codeSend(t)},codeSend:function(){var t=this;(0,a.registerVerify)(this.account).then((function(e){t.$util.Tips({title:e.msg}),t.sendCode()})).catch((function(e){return t.$util.Tips({title:e})}))},code:(0,l.Debounce)((function(){return this.account?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.account)?void this.$refs.verify.show():this.$util.Tips({title:"请输入正确的手机号码"}):this.$util.Tips({title:"请填写手机号码"})})),getCode:function(){var t=this;(0,a.getCodeApi)().then((function(e){t.keyCode=e.data.key})).catch((function(e){t.$util.Tips({title:e})}))},close:function(){this.$emit("close",!1)},loginBtn:function(){var e=this,i=this;return i.account?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(i.account)?i.codeNum?/^[\w\d]+$/i.test(i.codeNum)?(t.showLoading({title:!this.userInfo.phone&&this.isLogin?"正在绑定中":"正在登录中"}),void(!this.userInfo.phone&&this.isLogin?(0,u.iosBinding)({captcha:i.codeNum,phone:i.account}).then((function(t){i.isApp=1,i.onSuccess()})).catch((function(e){t.hideLoading(),i.$util.Tips({title:e})})):(0,u.getUserPhone)({captcha:i.codeNum,phone:i.account,type:"routine",code:this.wxCode,key:i.authKey}).then((function(t){i.$store.commit("LOGIN",{token:t.data.token}),i.$store.commit("SETUID",t.data.id),i.onSuccess(),t.data.isNew&&t.data.newPeopleCouponList&&0!==t.data.newPeopleCouponList.length?e.$Cache.set("newGift",t.data.newPeopleCouponList):e.$Cache.clear("newGift")})).catch((function(e){t.hideLoading(),i.$util.Tips({title:e})})))):i.$util.Tips({title:"请输入正确的验证码"}):i.$util.Tips({title:"请填写验证码"}):i.$util.Tips({title:"请输入正确的手机号码"}):i.$util.Tips({title:"请填写手机号码"})},onSuccess:function(){t.hideLoading(),this.$store.commit("Change_Advertisement",!1),this.$store.dispatch("GetTokenIsExist"),(0,d.silenceBindingSpread)(!0,this.globalData.spread),this.$Cache.get("wechatQRcode")||c.default.getQrcode();var e=this.$Cache.get("login_back_url")||"/pages/index/index";this.$util.Tips({title:"绑定手机号成功"},{tab:4,url:e}),this.close()}}};e.default=f}).call(this,i("df3c")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/users/components/login_mobile/index-create-component',
    {
        'pages/users/components/login_mobile/index-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("145b"))
        })
    },
    [['pages/users/components/login_mobile/index-create-component']]
]);
