(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_info-index"],{"0010":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("c6c3"),o=n("ef5b"),r=n("26cb"),s=n("4f1b"),u=(i(n("c303")),i(n("f272"))),c=(i(n("ff56")),n("8342")),d={components:{authorize:u.default},data:function(){return{domain:c.HTTP_REQUEST_URL,userInfo:{},loginType:"h5",userIndex:0,switchUserInfo:[],isAuto:!1,isShowAuth:!1,headBg:"../static/images/currentAcc",mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,version:""}},computed:(0,s.configMap)({open_update_info:0},(0,r.mapGetters)(["isLogin","viewColor","keyColor"])),onLoad:function(){this.isLogin?this.getUserInfo():(this.isAuto=!0,this.isShowAuth=!0)},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){}))},onLoadFun:function(){this.isShowAuth=!1,this.getUserInfo()},authColse:function(t){this.isShowAuth=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,o.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;a0?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",{attrs:{type:"text",name:"nickname",value:t.userInfo.nickname}}),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-input",{staticClass:"id",attrs:{type:"text",disabled:"true",name:"phone",value: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-input",{staticClass:"id",attrs:{type:"text",placeholder:"修改登录密码",disabled:"true"}}),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-input",{staticClass:"id",attrs:{type:"text",placeholder:"立即前往",disabled:"true"}}),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-input",{staticClass:"id",attrs:{type:"text",placeholder:"立即前往",disabled:"true"}}),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-input",{staticClass:"id",attrs:{type:"text",placeholder:"账号注销后不能恢复",disabled:"true"}}),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),n("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth},on:{onLoadFun:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadFun.apply(void 0,arguments)},authColse:function(e){arguments[0]=e=t.$handleEvent(e),t.authColse.apply(void 0,arguments)}}})],1)},a=[]},"96b1":function(t,e,n){"use strict";var i=n("dd01"),a=n.n(i);a.a},a296:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.Popup[data-v-ac292046]{flex:1;align-items:center;justify-content:center;width:%?500?%;background-color:#fff;position:fixed;top:%?500?%;left:%?125?%;z-index:1000}.Popup .logo-auth[data-v-ac292046]{z-index:-1;position:absolute;left:50%;top:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:%?150?%;height:%?150?%;display:flex;align-items:center;justify-content:center;border:%?8?% solid #fff;border-radius:50%;background:#fff}.Popup .image[data-v-ac292046]{height:%?42?%;margin-top:%?-54?%}.Popup .title[data-v-ac292046]{font-size:%?28?%;color:#000;text-align:center;margin-top:%?30?%;align-items:center;justify-content:center;width:%?500?%;display:flex}.Popup .tip[data-v-ac292046]{font-size:%?22?%;color:#555;padding:0 %?24?%;margin-top:%?25?%;display:flex;align-items:center;justify-content:center}.Popup .bottom .item[data-v-ac292046]{width:%?250?%;height:%?80?%;background-color:#eee;text-align:center;line-height:%?80?%;margin-top:%?54?%;font-size:%?24?%;color:#666}.Popup .bottom .item .text[data-v-ac292046]{font-size:%?24?%;color:#666}.Popup .bottom .item.on[data-v-ac292046]{width:%?500?%}.flex[data-v-ac292046]{display:flex;flex-direction:row}.Popup .bottom .item.grant[data-v-ac292046]{font-weight:700;background-color:#e93323;\n /* background-color: var(--view-theme); */border-radius:0;padding:0}.Popup .bottom .item.grant .text[data-v-ac292046]{font-size:%?28?%;color:#fff}.mask[data-v-ac292046]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.65);z-index:99}',""]),t.exports=e},bf19:function(t,e,n){"use strict";var i=n("23e7"),a=n("c65b");i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return a(URL.prototype.toString,this)}})},c15c: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(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[t.isShowAuth&&t.code?n("v-uni-view",{staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e(),t.isShowAuth&&t.code?n("v-uni-view",{staticClass:"Popup",style:"top:"+t.top+"px;"},[n("v-uni-view",{staticClass:"logo-auth"},[n("v-uni-image",{staticClass:"image",attrs:{src:t.routine_logo,mode:"aspectFit"}})],1),t.isWeixin?n("v-uni-text",{staticClass:"title"},[t._v("授权提醒")]):n("v-uni-text",{staticClass:"title"},[t._v(t._s(t.title))]),t.isWeixin?n("v-uni-text",{staticClass:"tip"},[t._v("请授权头像等信息,以便为您提供更好的服务!")]):n("v-uni-text",{staticClass:"tip"},[t._v(t._s(t.info))]),n("v-uni-view",{staticClass:"bottom flex"},[n("v-uni-text",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),n("v-uni-button",{staticClass:"item grant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWecahtAuth.apply(void 0,arguments)}}},[t.isWeixin?n("v-uni-text",{staticClass:"text"},[t._v("去授权")]):n("v-uni-text",{staticClass:"text"},[t._v("去登录")])],1)],1)],1):t._e()],1)},a=[]},c303:function(t,e,n){var i,a,o=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(r,s){"object"==o(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",r="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})?$/,f=/\[([^\]]+)]|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,l=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},p={s:l,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+l(i,2,"0")+":"+l(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,o=t.clone().add(n+(a?-1:1),s);return Number(-(n+(e-i)/(a?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(o){return{M:s,y:c,w:r,d:a,D:"date",h:i,m:n,s:e,ms:t,Q:u}[o]||String(o||"").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"==o(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 o(t){this.$L=this.$L||m(t.locale,null,!0),this.parse(t)}var l=o.prototype;return l.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()},l.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()},l.$utils=function(){return y},l.isValid=function(){return!("Invalid Date"===this.$d.toString())},l.isSame=function(t,e){var n=b(t);return this.startOf(e)<=n&&n<=this.endOf(e)},l.isAfter=function(t,e){return b(t)