(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/user"],{1826:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(t("a34a")),r=i(t("f713")),o=i(t("2a80")),u=t("5a6b");t("48c1");function i(e){return e&&e.__esModule?e:{default:e}}function s(e,n,t,a,r,o,u){try{var i=e[o](u),s=i.value}catch(c){return void t(c)}i.done?n(s):Promise.resolve(s).then(a,r)}function c(e){return function(){var n=this,t=arguments;return new Promise((function(a,r){var o=e.apply(n,t);function u(e){s(o,a,r,u,i,"next",e)}function i(e){s(o,a,r,u,i,"throw",e)}u(void 0)}))}}var d=function(){t.e("components/square/index").then(function(){return resolve(t("524e"))}.bind(null,t)).catch(t.oe)},f={components:{square:d},data:function(){return{loading:!1,idCardShow:!1,popup:!1,idCard:null,password:null,areaCode:null,area:"请点击选择地区",areaList:{province_list:{35:"福建省"},city_list:{3501:"福州市",3502:"厦门市",3503:"莆田市",3504:"三明市",3505:"泉州市",3506:"漳州市",3507:"南平市",3508:"龙岩市",3509:"宁德市"}}}},computed:{userData:function(){return this.$store.state.user.userInfo}},mounted:function(){this.initUserInfo()},methods:{initUserInfo:function(){var e=this;return c(a.default.mark((function n(){return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$store.dispatch("GetInfo");case 2:case"end":return n.stop()}}),n)})))()},idCardput:function(e){this.idCard=e.detail},passwordput:function(e){this.password=e.detail},submitBinding:function(){var e=this;console.log(this.areaCode,this.idCard,this.password),this.loading=!0,(0,u.bindUserCard)({city:this.areaCode,logincode:this.idCard,password:(0,r.default)(this.password).toString()}).then((function(n){200==n.code?(o.default.success("绑定成功"),e.idCardShow=!1):502==n.code?o.default.fail(n.msg):o.default.fail("系统内部错误"),e.loading=!1}))},regionSelection:function(e){console.log(e),this.area="".concat(e.detail.values[0].name,"  ").concat(e.detail.values[1].name),this.areaCode=e.detail.values[1].code},getUserProfile:function(e){var n=this;return c(a.default.mark((function e(){var t,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,wx.getUserProfile({desc:"业务需要"});case 2:return t=e.sent,e.next=5,(0,u.updateUserInfo)({headImage:t.userInfo.avatarUrl,nickName:t.userInfo.nickName});case 5:r=e.sent,200==r.code&&(n.$store.state.user.userInfo.headImage=t.userInfo.avatarUrl,n.$store.state.user.userInfo.nickName=t.userInfo.nickName);case 7:case"end":return e.stop()}}),e)})))()}}};n.default=f},"3a06":function(e,n,t){"use strict";t.r(n);var a=t("1826"),r=t.n(a);for(var o in a)"default"!==o&&function(e){t.d(n,e,(function(){return a[e]}))}(o);n["default"]=r.a},"438f":function(e,n,t){"use strict";var a;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){return a}));var r=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.popup=!e.popup},e.e1=function(n){e.idCardShow=!e.idCardShow},e.e2=function(n){e.popup=!e.popup},e.e3=function(n){e.popup=!e.popup})},o=[]},"594c":function(e,n,t){"use strict";t.r(n);var a=t("438f"),r=t("3a06");for(var o in r)"default"!==o&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t("a4ae");var u,i=t("f0c5"),s=Object(i["a"])(r["default"],a["b"],a["c"],!1,null,"65249e9b",null,!1,a["a"],u);n["default"]=s.exports},a4ae:function(e,n,t){"use strict";var a=t("e6be"),r=t.n(a);r.a},e6be:function(e,n,t){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/index/components/user-create-component',
    {
        'pages/index/components/user-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("594c"))
        })
    },
    [['pages/index/components/user-create-component']]
]);
