杨总惠通宝
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
htb_backend/public/static/js/pages-users-user_info-index...

1 line
32 KiB

9 months ago
(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;a<i.length;a++)i[a].uid==n.userInfo.uid&&(n.userIndex=a),n.$wechat.isWeixin()||"h5"==i[a].user_type||""!==i[a].phone||i.splice(a,1);n.$set(n,"switchUserInfo",i)}))},changePwd:function(){this.userInfo.phone?uni.navigateTo({url:"/pages/users/user_modify_pwd/index"}):this.$util.Tips({title:"请先绑定手机号"})},changeCancel:function(){uni.navigateTo({url:"/pages/users/user_about/index?from=the_cancellation_msg"})},getUserInfo:function(){var t=this;(0,a.getUserInfo)().then((function(e){t.$set(t,"userInfo",e.data),e.data.phone&&t.userAcc()}))}}};e.default=d},"1c6c":function(t,e,n){"use strict";var i=n("d630"),a=n.n(i);a.a},4798: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/*