(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_info-index"],{2302:function(t,e,n){"use strict";n.r(e);var i=n("b697"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"569a":function(t,e,n){var i,a,r=n("7037").default;n("a9e3"),n("ac1f"),n("5319"),n("00b4"),n("466d"),n("d401"),n("d3b7"),n("25f0"),n("fb6a"),n("f4b3"),n("bf19"),function(o,s){"object"==r(e)&&"undefined"!=typeof t?t.exports=s():(i=s,a="function"===typeof i?i.call(e,n,e,t):i,void 0===a||(t.exports=a))}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",i="hour",a="day",o="week",s="month",u="quarter",c="year",d=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,l=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},p={s:f,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+f(i,2,"0")+":"+f(a,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,s),a=e-i<0,r=t.clone().add(n+(a?-1:1),s);return Number(-(n+(e-i)/(a?i-r:r-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(r){return{M:s,y:c,w:o,d:a,D:"date",h:i,m:n,s:e,ms:t,Q:u}[r]||String(r||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v="en",g={};g[v]=h;var w=function(t){return t instanceof _},m=function(t,e,n){var i;if(!t)return v;if("string"==typeof t)g[t]&&(i=t),e&&(g[t]=e,i=t);else{var a=t.name;g[a]=t,i=a}return!n&&i&&(v=i),i||!n&&v},b=function(t,e){if(w(t))return t.clone();var n="object"==r(e)?e:{};return n.date=t,n.args=arguments,new _(n)},y=p;y.l=m,y.i=w,y.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var _=function(){function r(t){this.$L=this.$L||m(t.locale,null,!0),this.parse(t)}var f=r.prototype;return f.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(y.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(d);if(i)return n?new Date(Date.UTC(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)):new Date(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)}return new Date(e)}(t),this.init()},f.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},f.$utils=function(){return y},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.isSame=function(t,e){var n=b(t);return this.startOf(e)<=n&&n<=this.endOf(e)},f.isAfter=function(t,e){return b(t)0?n("v-uni-view",{staticClass:"wrapper"},[n("v-uni-view",{staticClass:"title"},[t._v("管理我的账号")]),n("v-uni-view",{staticClass:"wrapList"},t._l(t.switchUserInfo,(function(e,i){return n("v-uni-view",{key:i,staticClass:"item acea-row row-between-wrapper",class:e.uid===t.userInfo.uid?"on":"",style:{"background-image":"url("+(e.uid==t.userInfo.uid?t.domain+"/static/diy/currentAcc"+t.keyColor+".png":"")+")"}},[n("v-uni-view",{staticClass:"picTxt acea-row row-between-wrapper"},[e.uid===t.userInfo.uid?[t.mp_is_new?t._e():n("v-uni-view",{staticClass:"pictrue",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadpic.apply(void 0,arguments)}}},[n("v-uni-image",{attrs:{src:e.avatar||"/static/images/f.png"}}),0!=t.open_update_info?n("v-uni-view",{staticClass:"radius"},[n("span",{staticClass:"iconfont iconfonta icon-jilu-xuanzhong"})]):t._e()],1),t.mp_is_new&&0!=t.open_update_info?n("v-uni-button",{staticClass:"avatar-box pictrue",attrs:{"open-type":"chooseAvatar"},on:{chooseavatar:function(e){arguments[0]=e=t.$handleEvent(e),t.onChooseAvatar.apply(void 0,arguments)}}},[n("v-uni-image",{attrs:{src:e.avatar||"/static/images/f.png"}}),n("v-uni-view",{staticClass:"radius"},[n("span",{staticClass:"iconfont iconfonta icon-jilu-xuanzhong"})])],1):t.mp_is_new&&0==t.open_update_info?n("v-uni-button",{staticClass:"avatar-box"},[n("v-uni-image",{attrs:{src:e.avatar||"/static/images/f.png"}})],1):t._e()]:n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:e.avatar||"/static/images/f.png"}}),0!=t.open_update_info?n("v-uni-view",{staticClass:"radius"},[n("span",{staticClass:"iconfont iconfonta icon-jilu-xuanzhong"})]):t._e()],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.nickname))])],1)],2),e.uid===t.userInfo.uid?n("v-uni-view",{staticClass:"currentBnt acea-row row-center-wrapper t-color"},[t._v("当前账号")]):n("v-uni-view",{staticClass:"bnt t-color acea-row row-center-wrapper",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.switchAccounts(e,i)}}},[t._v("使用账号")])],1)})),1)],1):n("v-uni-view",{staticClass:"list"},[n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("头像")]),t.mp_is_new?n("v-uni-button",{staticClass:"avatar-box",attrs:{"open-type":"chooseAvatar"},on:{chooseavatar:function(e){arguments[0]=e=t.$handleEvent(e),t.onChooseAvatar.apply(void 0,arguments)}}},[n("v-uni-image",{attrs:{src:t.userInfo.avatar||"/static/images/f.png"}})],1):n("v-uni-view",{staticClass:"pictrue",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadpic.apply(void 0,arguments)}}},[n("v-uni-image",{staticClass:"avatar",attrs:{src:t.userInfo.avatar||"/static/images/f.png"}})],1)],1)],1),n("v-uni-view",{staticClass:"list",staticStyle:{"margin-top":"1rpx"}},[n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("昵称")]),n("v-uni-view",{staticClass:"input acea-row row-between-wrapper",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeInput.apply(void 0,arguments)}}},[n("v-uni-input",{staticClass:"id",attrs:{type:"text",name:"nickname",value:t.userInfo.nickname,disabled:!0}}),0!=t.open_update_info?n("v-uni-text",{staticClass:"iconfont icon-you"}):n("v-uni-text",{staticClass:"iconfont icon-suozi"})],1)],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("ID号")]),n("v-uni-view",{staticClass:"input acea-row row-between-wrapper"},[n("v-uni-input",{staticClass:"id",attrs:{type:"text",value:t.userInfo.uid,disabled:"true"}}),n("v-uni-text",{staticClass:"iconfont icon-suozi"})],1)],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("手机号码")]),t.userInfo.phone?n("v-uni-navigator",{staticClass:"input acea-row row-between-wrapper",attrs:{url:"/pages/users/user_modify_phone/index","hover-class":"none"}},[n("v-uni-text",{staticClass:"id"},[t._v(t._s(t.userInfo.phone))]),n("v-uni-text",{staticClass:"iconfont icon-you"})],1):n("v-uni-navigator",{staticClass:"input",attrs:{url:"/pages/users/user_phone/index","hover-class":"none"}},[t._v("点击绑定手机号"),n("v-uni-text",{staticClass:"iconfont icon-xiangyou"})],1)],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("登录密码")]),n("v-uni-view",{staticClass:"input acea-row row-between-wrapper",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changePwd.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"id"},[t._v("修改登录密码")]),n("v-uni-text",{staticClass:"iconfont icon-you"})],1)],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("地址管理")]),n("v-uni-navigator",{staticClass:"input acea-row row-between-wrapper",attrs:{url:"/pages/users/user_address_list/index","hover-class":"none"}},[n("v-uni-text",{staticClass:"id"},[t._v("立即前往")]),n("v-uni-text",{staticClass:"iconfont icon-you"})],1)],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("发票管理")]),n("v-uni-navigator",{staticClass:"input acea-row row-between-wrapper",attrs:{url:"/pages/users/user_invoice_list/index","hover-class":"none"}},[n("v-uni-text",{staticClass:"id"},[t._v("立即前往")]),n("v-uni-text",{staticClass:"iconfont icon-you"})],1)],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("详细信息")]),n("v-uni-navigator",{staticClass:"input acea-row row-between-wrapper",attrs:{url:"/pages/users/user_info_form/index","hover-class":"none"}},[n("v-uni-text",{staticClass:"id"},[t._v("立即前往")]),n("v-uni-text",{staticClass:"iconfont icon-you"})],1)],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("注销账号")]),n("v-uni-view",{staticClass:"input acea-row row-between-wrapper",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeCancel.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"id"},[t._v("账号注销后不能恢复")]),n("v-uni-text",{staticClass:"iconfont icon-you"})],1)],1)],1),this.$wechat.isWeixin()?t._e():n("v-uni-view",{staticClass:"logOut acea-row row-center-wrapper",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.outLogin.apply(void 0,arguments)}}},[t._v("退出登录")]),n("v-uni-view",{staticClass:"foot-bar"})],1)],1)],1)},a=[]},b132:function(t,e,n){"use strict";n.r(e);var i=n("7b09"),a=n("2302");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("bfbd");var o=n("f0c5"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"17637826",null,!1,i["a"],void 0);e["default"]=s.exports},b697:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a434");var a=n("6859"),r=n("58d4"),o=n("26cb"),s=n("3255"),u=(i(n("569a")),i(n("a50e")),n("f26a")),c=n("ddb3"),d={components:{},data:function(){return{domain:u.HTTP_REQUEST_URL,userInfo:{},loginType:"h5",userIndex:0,switchUserInfo:[],headBg:"../static/images/currentAcc",mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,version:""}},computed:(0,s.configMap)({open_update_info:0},(0,o.mapGetters)(["isLogin","viewColor","keyColor"])),onLoad:function(){this.isLogin?this.getUserInfo():(0,c.toLogin)()},methods:{toggle:function(t){this.type=t,this.$refs.popup.open(t)},uploadpic:function(){var t=this;0!=t.open_update_info&&t.$util.uploadImageOne("upload/image",(function(e){var n=t.switchUserInfo[t.userIndex];void 0!==n&&(n.avatar=e.data.path),t.switchUserInfo[t.userIndex]=n,(0,a.editAvatar)({avatar:e.data.path}).then((function(e){t.$util.Tips({title:e.message})}))}))},changeInput:function(){0!=this.open_update_info&&uni.navigateTo({url:"/pages/users/user_nickname/index"})},onChooseAvatar:function(t){var e=this,n=t.detail.avatarUrl;this.$util.uploadImgs("upload/image",n,(function(t){e.userInfo.avatar=t.data.path,(0,a.editAvatar)({avatar:t.data.path}).then((function(t){that.$util.Tips({title:t.message})}))}),(function(t){}))},switchAccounts:function(t,e){var n=this.switchUserInfo[e],i=this;return i.userIndex=e,i.switchUserInfo.length<=1||(void 0===n?i.$util.Tips({title:"切换的账号不存在"}):(uni.showLoading({title:"正在切换中"}),void(0,r.switchH5Login)({uid:t.uid}).then((function(t){var e=t.data;uni.hideLoading();Math.round(new Date/1e3);i.$store.commit("LOGIN",{token:e.token,time:e.exp}),i.$store.commit("SETUID",e.user.uid),i.$store.commit("UPDATE_USERINFO",e.user),i.getUserInfo()})).catch((function(t){return uni.hideLoading(),i.$util.Tips({title:t})}))))},outLogin:function(){var t=this;"h5"==t.loginType&&uni.showModal({title:"提示",content:"确认退出登录?",success:function(e){e.confirm?(0,a.getLogout)().then((function(e){t.$store.commit("LOGOUT"),uni.reLaunch({url:"/pages/index/index"})})).catch((function(t){})):e.cancel}})},userAcc:function(){var t=this;(0,a.userAcc)().then((function(e){for(var n=t,i=e.data||[],a=0;a