glhcp/server/public/business/static/js/bundle-pages-user_profile-u...

1 line
8.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-user_profile-user_profile"],{"0f93":function(t,e,i){"use strict";i.r(e);var n=i("6a63"),o=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"19d6":function(t,e,i){"use strict";i.r(e);var n=i("eef0"),o=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"225e":function(t,e,i){var n=i("918c");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("5431ab14",n,!0,{sourceMap:!1,shadowMode:!1})},"3f9c":function(t,e,i){"use strict";var n=i("225e"),o=i.n(n);o.a},"6a63":function(t,e,i){"use strict";i("c975"),i("a9e3"),i("b64b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-toast",props:{zIndex:{type:[Number,String],default:""}},data:function(){return{isShow:!1,timer:null,config:{params:{},title:"",type:"",duration:2e3,isTab:!1,url:"",icon:!0,position:"center",callback:null,back:!1},tmpConfig:{}}},computed:{iconName:function(){if(["error","warning","success","info"].indexOf(this.tmpConfig.type)>=0&&this.tmpConfig.icon){var t=this.$u.type2icon(this.tmpConfig.type);return t}},uZIndex:function(){return this.isShow?this.zIndex?this.zIndex:this.$u.zIndex.toast:"999999"}},methods:{show:function(t){var e=this;this.tmpConfig=this.$u.deepMerge(this.config,t),this.timer&&(clearTimeout(this.timer),this.timer=null),this.isShow=!0,this.timer=setTimeout((function(){e.isShow=!1,clearTimeout(e.timer),e.timer=null,"function"===typeof e.tmpConfig.callback&&e.tmpConfig.callback(),e.timeEnd()}),this.tmpConfig.duration)},hide:function(){this.isShow=!1,this.timer&&(clearTimeout(this.timer),this.timer=null)},timeEnd:function(){if(this.tmpConfig.url){if("/"!=this.tmpConfig.url[0]&&(this.tmpConfig.url="/"+this.tmpConfig.url),Object.keys(this.tmpConfig.params).length){var t="";/.*\/.*\?.*=.*/.test(this.tmpConfig.url)?(t=this.$u.queryParams(this.tmpConfig.params,!1),this.tmpConfig.url=this.tmpConfig.url+"&"+t):(t=this.$u.queryParams(this.tmpConfig.params),this.tmpConfig.url+=t)}this.tmpConfig.isTab?uni.switchTab({url:this.tmpConfig.url}):uni.navigateTo({url:this.tmpConfig.url})}else this.tmpConfig.back&&this.$u.route({type:"back"})}}};e.default=n},"70ee":function(t,e,i){"use strict";var n=i("f9c8"),o=i.n(n);o.a},"817f":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-52764960]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.u-toast[data-v-52764960]{position:fixed;z-index:-1;transition:opacity .3s;text-align:center;color:#fff;border-radius:%?8?%;background:#585858;display:flex;flex-direction:row;align-items:center;justify-content:center;font-size:%?28?%;opacity:0;pointer-events:none;padding:%?18?% %?40?%}.u-toast.u-show[data-v-52764960]{opacity:1}.u-icon[data-v-52764960]{margin-right:%?10?%;display:flex;flex-direction:row;align-items:center;line-height:normal}.u-position-center[data-v-52764960]{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-width:70%}.u-position-top[data-v-52764960]{left:50%;top:20%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.u-position-bottom[data-v-52764960]{left:50%;bottom:20%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.u-type-primary[data-v-52764960]{color:#2979ff;background-color:#ecf5ff;border:1px solid #d7eafe}.u-type-success[data-v-52764960]{color:#19be6b;background-color:#dbf1e1;border:1px solid #bef5c8}.u-type-error[data-v-52764960]{color:#fa3534;background-color:#fef0f0;border:1px solid #fde2e2}.u-type-warning[data-v-52764960]{color:#f90;background-color:#fdf6ec;border:1px solid #faecd8}.u-type-info[data-v-52764960]{color:#909399;background-color:#f4f4f5;border:1px solid #ebeef5}.u-type-default[data-v-52764960]{color:#fff;background-color:#585858}",""]),t.exports=e},"918c":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-f3f85c12]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.item[data-v-f3f85c12]{padding:%?30?%;display:flex;flex-direction:row;align-items:center;background-color:#fff;justify-content:space-between}.item > uni-view[data-v-f3f85c12]:first-child{width:%?180?%;color:#101010;font-size:%?28?%;font-weight:500}.item > uni-view[data-v-f3f85c12]:last-child{flex:1;text-align:left}.item > uni-view:last-child uni-textarea[data-v-f3f85c12]{width:%?560?%;height:%?300?%}.bb[data-v-f3f85c12]{border-bottom:1px solid #f8f8f8}.btn[data-v-f3f85c12]{width:%?690?%;height:%?88?%;margin:0 auto;margin-top:%?40?%;background-color:#40affa}",""]),t.exports=e},"93c1":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uToast:i("af9c").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"m-t-20"},[i("v-uni-view",{staticClass:"muted nr p-l-30 p-t-20 p-b-28"},[t._v("修改密码")]),i("v-uni-view",{staticClass:"item bb"},[i("v-uni-view",[t._v("当前密码")]),i("v-uni-view",{staticClass:"flex row-left"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请输入当前密码"},model:{value:t.old_password,callback:function(e){t.old_password=e},expression:"old_password"}})],1)],1),i("v-uni-view",{staticClass:"item bb"},[i("v-uni-view",[t._v("新密码")]),i("v-uni-view",{staticClass:"flex row-left"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请输入新密码"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1),i("v-uni-view",{staticClass:"item bb"},[i("v-uni-view",[t._v("确认密码")]),i("v-uni-view",{staticClass:"flex row-left"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请再次输入确认密码"},model:{value:t.password_confirm,callback:function(e){t.password_confirm=e},expression:"password_confirm"}})],1)],1),i("v-uni-view",{staticClass:"br60 btn flex row-center white md",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onSubmit(t.type)}}},[t._v("确认修改")]),i("u-toast",{ref:"uToast"})],1)},a=[]},"9def":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uIcon:i("031d").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-toast",class:[t.isShow?"u-show":"","u-type-"+t.tmpConfig.type,"u-position-"+t.tmpConfig.position],style:{zIndex:t.uZIndex}},[i("v-uni-view",{staticClass:"u-icon-wrap"},[t.tmpConfig.icon?i("u-icon",{staticClass:"u-icon",attrs:{name:t.iconName,size:30,color:t.tmpConfig.type}}):t._e()],1),i("v-uni-text",{staticClass:"u-text"},[t._v(t._s(t.tmpConfig.title))])],1)},a=[]},a46f:function(t,e,i){"use strict";i.r(e);var n=i("93c1"),o=i("19d6");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("3f9c");var r,s=i("f0c5"),f=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"f3f85c12",null,!1,n["a"],r);e["default"]=f.exports},af9c:function(t,e,i){"use strict";i.r(e);var n=i("9def"),o=i("0f93");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("70ee");var r,s=i("f0c5"),f=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"52764960",null,!1,n["a"],r);e["default"]=f.exports},eef0:function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var o=n(i("1da1")),a=i("51e5"),r={data:function(){return{old_password:"",password:"",password_confirm:""}},methods:{onSubmit:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,a.apiSetPassword)({old_password:t.old_password,password:t.password,password_confirm:t.password_confirm});case 2:t.$refs.uToast.show({title:"设置成功",type:"success"}),t.logout();case 4:case"end":return e.stop()}}),e)})))()},logout:function(){var t=this;(0,a.apiLogout)().then((function(e){t.$store.commit("logout"),setTimeout((function(){uni.reLaunch({url:"/pages/login/login"})}),1e3)}))}}};e.default=r},f9c8:function(t,e,i){var n=i("817f");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("4f897604",n,!0,{sourceMap:!1,shadowMode:!1})}}]);