(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesM/pages/mine_info"],{"07bd":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("a34a"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,a,r,i,o){try{var u=e[i](o),c=u.value}catch(d){return void n(d)}u.done?t(c):Promise.resolve(c).then(a,r)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var o=e.apply(t,n);function u(e){i(o,a,r,u,c,"next",e)}function c(e){i(o,a,r,u,c,"throw",e)}u(void 0)}))}}var u={data:function(){return{index:0,range:["男","女"],endDate:"",dataDetail:{avatar:"",gender:"MALE",birth:"",username:"",idCard:"",phone:"",name:""}}},methods:{tapGetUserInfo:function(e){var t=this;return o(a.default.mark((function n(){var r,i;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:console.log(103,e),"getUserInfo:ok"==e.detail.errMsg&&(r=e.detail.userInfo,i=Object.assign({},t.dataDetail),i.icon=r.avatarUrl,t.dataDetail=i);case 2:case"end":return n.stop()}}),n)})))()},onSelectorChange:function(e){console.log(e),this.index=e.target.value},onDateChange:function(e){console.log(e);var t=Object.assign({},this.dataDetail);t.birth=e.target.value,this.dataDetail=t},tapSave:function(){var t=this;return o(a.default.mark((function n(){return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return console.log(getApp().globalData.member),console.log(t.index),n.next=4,t.$api.BCedit({_isShowLoading:!0,username:t.dataDetail.username,name:t.dataDetail.name,gender:t.index,icon:t.dataDetail.icon,birth:t.dataDetail.birth,idCard:t.dataDetail.idCard});case 4:n.sent,e.showModal({content:"保存成功",showCancel:!1,success:function(n){n.confirm&&(t.$util.refreshPage(["pages/mine"]),e.navigateBack())}});case 6:case"end":return n.stop()}}),n)})))()},getData:function(){var e=this;return o(a.default.mark((function t(){var n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.BCmy({_isShowLoading:!0});case 2:n=t.sent,n.birth||(n.birth=e.$util.dateFormat(new Date,"yyyy-MM-dd"),e.endDate=e.dataDetail.birth),e.index=n.gender||0,e.dataDetail=n;case 6:case"end":return t.stop()}}),t)})))()},onLoadPage:function(){wx.hideShareMenu(),this.getData()}}};t.default=u}).call(this,n("543d")["default"])},"13d4":function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var r=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(e){return e.stopPropagation(),function(){return!1}()})},i=[]},"143e":function(e,t,n){"use strict";var a=n("fe9d"),r=n.n(a);r.a},a3e2:function(e,t,n){"use strict";n.r(t);var a=n("13d4"),r=n("eac7");for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("143e");var o,u=n("f0c5"),c=Object(u["a"])(r["default"],a["b"],a["c"],!1,null,"661f895c",null,!1,a["a"],o);t["default"]=c.exports},ccad:function(e,t,n){"use strict";(function(e){n("4518");a(n("66fd"));var t=a(n("a3e2"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},eac7:function(e,t,n){"use strict";n.r(t);var a=n("07bd"),r=n.n(a);for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=r.a},fe9d:function(e,t,n){}},[["ccad","common/runtime","common/vendor"]]]);