(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/login-modal/loginPop/wxInfoPhone"],{"0511":function(t,e,n){"use strict";(function(t,o){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("7ca3")),u=n("8f59");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={components:{agreement:function(){n.e("components/common/agreement").then(function(){return resolve(n("adeb"))}.bind(null,n)).catch(n.oe)},changeLoginWay:function(){n.e("components/login-modal/loginPop/changeLoginWay").then(function(){return resolve(n("debf"))}.bind(null,n)).catch(n.oe)}},data:function(){return{isSubmitting:!1,checked:!1,show:!1,sex:1,nickname:"",avatar:"",avatar_attach:"",mobile:"",type:"login"}},computed:c({},(0,u.mapGetters)(["base","g_share"])),mounted:function(){},methods:c(c({},(0,u.mapMutations)(["setUser","logout"])),{},{changeWay:function(t){this.show=!1,this.$emit("changeWay",t)},showPop:function(t){this.show=!0,this.type=t},chooseAvatar:function(t){var e=this,n=t.detail.avatarUrl;this.$util.uploadImage((function(t){e.avatar=t.url,e.avatar_attach=t.fullurl}),n)},getphonenumber:function(t){var e=this;t.detail.code&&this.$util.get("user/user/getPhoneNumber",{code:t.detail.code}).then((function(t){1==t.code?e.mobile=t.data.mobile:e.toast(t.message)}))},getnickname:function(t){this.nickname=t.detail.value},onLogin:function(){var e=this;if(!this.isSubmitting){if(!this.nickname)return this.$util.toast("请填写昵称");if(!this.avatar)return this.$util.toast("请上传头像");var n={nickname:this.nickname,avatar:this.avatar,sex:this.sex,mobile:this.mobile};t.showLoading({title:"登录中。。。"}),this.isSubmitting=!0,o.login({success:function(o){n.code=o.code;var i=e.g_share;i&&i.sup_uid&&(n=c(c({},n),i)),e.$util.post("user/user/wxappLogin",n).then((function(n){1==n.code?(t.removeStorageSync("share"),e.setUser(n.data),e.$emit("confirm")):(e.logout(),e.toast(n.message))})).catch((function(t){e.logout()})).finally((function(){e.isSubmitting=!1}))},fail:function(){e.isSubmitting=!1}})}},onBack:function(){this.close()},close:function(){this.show=!1}})};e.default=s}).call(this,n("df3c")["default"],n("3223")["default"])},"0cff":function(t,e,n){"use strict";var o=n("7f63"),i=n.n(o);i.a},"109f5":function(t,e,n){"use strict";n.r(e);var o=n("0511"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"7f63":function(t,e,n){},d87e:function(t,e,n){"use strict";n.r(e);var o=n("ef66"),i=n("109f5");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("0cff");var u=n("828b"),r=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"7f650568",null,!1,o["a"],void 0);e["default"]=r.exports},ef66:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,"7d68"))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,"b248"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.mobile||0!=t.base.login_template?null:t.$util.darkColor(t.base.btn_color,.2)),o=0==t.base.login_template?t.$util.darkColor(t.base.btn_color,.2):null;t.$mp.data=Object.assign({},{$root:{g0:n,g1:o}})},a=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/login-modal/loginPop/wxInfoPhone-create-component',
    {
        'components/login-modal/loginPop/wxInfoPhone-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("d87e"))
        })
    },
    [['components/login-modal/loginPop/wxInfoPhone-create-component']]
]);
