(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/MineCenter/MineCenter"],{16:function(e,n,t){"use strict";t.r(n);varo=t(17),r=t.n(o);for(varaino)"default"!==a&&function(e){t.d(n,e,(function(){returno[e]}))}(a);n["default"]=r.a},17:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void0;varo=a(t(5)),r=t(4);functiona(e){returne&&e.__esModule?e:{default:e}}functionu(e,n,t,o,r,a,u){try{vari=e[a](u),l=i.value}catch(c){returnvoidt(c)}i.done?n(l):Promise.resolve(l).then(o,r)}functioni(e){returnfunction(){varn=this,t=arguments;returnnewPromise((function(o,r){vara=e.apply(n,t);functioni(e){u(a,o,r,i,l,"next",e)}functionl(e){u(a,o,r,i,l,"throw",e)}i(void0)}))}}getApp().globalData.Define;varl=getApp().globalData.Player,c={mounted:function(){this.$refs.form1.setRules(this.rules)},data:function(){vare=this;return{player:l,isDateSelectShowing:!1,isShowLogoutModal:!1,rules:{headUrl:{type:"string",title:"头像",message:"",enableInput:!1,getValue:function(e){return""==e.headimgurl?"../../static/images/wode/touxiang_6.png":e.headimgurl},validator:function(e){}},name:{type:"string",title:"昵称",key:"name",message:"",enableInput:!1,getValue:function(e){return""==e.nickname?"没有获取到昵称":e.nickname},validator:function(e){}},sex:{type:"string",title:"性别",key:"sex",message:"",enableInput:!1,getValue:function(e){return0==e.sex?"未知":1==e.sex?"男":"女"},validator:function(e){}},phone:{type:"string",title:"手机号码",key:"phone",message:"请输入您的电话号码",enableInput:!0,getValue:function(e){returne.phone},validator:function(n){e.player.phone=n.detail.value}},birthday:{type:"string",title:"生日",key:"birthday",message:"未选择",enableInput:!1,getValue:function(e){returne.birthday},validator:function(e){}},profession:{type:"string",title:"职业",key:"occupation",message:"未填写",enableInput:!0,trigger:"blur",getValue:function(e){returne.occupation},validator:function(n){e.player.occupation=n.detail.value}}},form_tile_title:{height:"37rpx",fontSize:26,fontWeight:500,color:"black"},startTime:[1900,1,1],endTime:2022,currentTime:this.getCurrentDateSelectTime()}},methods:{onBackTouched:function(){e.navigateBack({})},getCurrentDateSelectTime:function(){vare=l;if(""==e.birthday)returnnull;varn=e.birthday,t=n.split("-");return[parseInt(t[0]),parseInt(t[1]),parseInt(t[2])]},onOpenDateSelect:function(){this.isDateSelectShowing=!0},onDateSelectConfirm:function(e){console.log(e),this.isDateSelectShowing=!1;varn=parseInt(e.a),t=parseInt(e.b),o=parseInt(e.c),r=n+"-"+t+"-"+o;this.player.birthday=r,this.currentTime=[n,t,o]},onDateSelectCanceled:function(){this.isDateSelectShowing=!1},onTouchOneItem:function(e){console.log(e),"birthday"!=e||(this.isDateSelectShowing=!0)},onBlurCallback:function(e,n){vart=this.rules[e];null!=t&&t.validator(n)},onEditPlayerIntro:function(e){console.log(e),this.player.introduction=e.detail.value},doConfirm:function(){varn=this;returni(o.default.mark((functiont(){vara,u,i;returno.default.wrap((function(t){while(1)switch(t.prev=t.next){case0:if(a=n.player.phone,e.$u.test.mobile(a)){t.next=4;break}returne.$u.toast("请输入正确的电话号码"),t.abrupt("return");case4:returnu={birthday:n.player.birthday,introduction:n.player.introduction,occupation:n.player.occupation,phone:n.player.phone},e.showLoading({}),t.next=8,(0,r.post)("users/updateselfinfo",u);case8:i=t.sent,console.log(i),e.hideLoading(),i.length>1&&e.navigateBack({});case12:case"end":returnt.stop()}}),t)})))()},doLoginOut:function(){console.log("You just loginout!"),this.isShowLogoutModal=!0},onTouchToGetPhone:function(e){varn=this;returni(o.default.mark((functiont(){varr;returno.default.wrap((function(t){while(1)switch(t.prev=t.next){case0:returnt.next=2,n.$utils.wechatGetPlayerPhoneNumberBack(e);case2:if(r=t.sent,r){t.next=5;break}returnt.abrupt("return");case5:n.player.phone=r;case6:case"end":returnt.stop()}}),t)})))()},onConfirmLogout:function(){e.clearStorageSync();varn=getApp().globalData.Player;n.c