|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-account-setting-setName"],{"141c":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.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/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.ui-btn[data-v-12637c88]{display:inline-block;padding:0 %?50?%;border-radius:%?50?%}.ui-btn__normal[data-v-12637c88]{height:%?70?%;line-height:%?70?%;font-size:%?28?%}.ui-btn__min[data-v-12637c88]{height:%?50?%;line-height:%?50?%;font-size:%?28?%}.ui-btn__max[data-v-12637c88]{width:%?690?%;height:%?80?%;line-height:%?80?%;font-size:%?32?%}.ui-btn__gradual[data-v-12637c88]{background:linear-gradient(270deg,#ff7f39,#ffa35b);color:#fff}.ui-btn__solid[data-v-12637c88]{background:#ff875b;color:#fff}.ui-btn__line[data-v-12637c88]{background:none;color:#333;border:1px solid #c0b9b9}.ui-btn__primaryLine[data-v-12637c88]{background:none;color:#ff875b;border:1px solid #ff875b}.ui-btn__disabed[data-v-12637c88]{opacity:.8}',""]),e.exports=t},"1d2d":function(e,t,n){"use strict";var r=n("a537"),a=n.n(r);a.a},2129:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiPutUser=t.ApiGetCurrentUser=void 0;var r=n("5767"),a="/uc",u=function(){return(0,r.ToAsyncAwait)(r.MsbRequestTk.get("".concat(a,"/user/current")))};t.ApiGetCurrentUser=u;var i=function(e){return(0,r.ToAsyncAwait)(r.MsbRequestTk.put("".concat(a,"/user/"),e))};t.ApiPutUser=i},2702:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{type:{type:String,default:"line"},size:{type:String,default:"normal"},disabed:{type:Boolean,default:!1}},methods:{click:function(){!this.disabed&&this.$emit("click")}}};t.default=r},"359f":function(e,t,n){"use strict";n.r(t);var r=n("fb87"),a=n("a5d5");for(var u in a)"default"!==u&&function(e){n.d(t,e,(function(){return a[e]}))}(u);n("1d2d");var i,o=n("f0c5"),s=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,"12637c88",null,!1,r["a"],i);t["default"]=s.exports},"3f3b":function(e,t,n){"use strict";var r=n("f9ea"),a=n.n(r);a.a},"41ba":function(e,t,n){"use strict";n("ac1f"),n("466d"),Object.defineProperty(t,"__esModule",{value:!0}),t.IsDouble=t.IsInteger=t.IsNumber=t.IsPhone=t.Debounce=t.ToAsyncAwait=void 0;var r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?e.then((function(e){return{error:null,result:e}})).catch((function(e){return{error:e,result:null}})):e};t.ToAsyncAwait=r;var a=function(e,t){var n;return function(){var r=this,a=arguments;n&&clearTimeout(n),n=setTimeout((function(){e.apply(r,a)}),t)}};t.Debounce=a;var u=function(e){return/^(1[3-9]\d{9})$/.test(e)};t.IsPhone=u;var i=function(e){return!(!isDouble(e)&&!isInteger(e))};t.IsNumber=i;var o=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+$/);return null!=t};t.IsInteger=o;var s=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+(\.\d+)?$/);return null!=t};t.IsDouble=s},"425a":function(e,t,n){"use strict";var r=n("b40f"),a=n.n(r);a.a},5767:function(e,t,n){"use strict";var r=n("dbce"),a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0});var u={};t.default=void 0;var i=a(n("5530")),o=r(n("41ba"));Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(u,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var s=r(n("d071"));Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(u,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var c=(0,i.default)((0,i.default)({},o),{},{requset:s});t.default=c},"59a3":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return r}));var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"uiCell",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$emit("click")}}},[e._t("icon"),r("v-uni-view",{staticClass:"uiCell--left"},[r("v-uni-text",{staticClass:"uiCell--title"},[e._v(e._s(e.title))]),r("v-uni-text",{staticClass:"uiCell--label"},[e._v(e._s(e.label))])],1),e._t("value",[r("v-uni-text",{staticClass:"uiCell--value"},[e._v(e._s(e.value))])]),e.rightIcon?e._t("right-icon",[r("v-uni-image",{staticClass:"uiCell--rightIcon",attrs:{src:n("6eb6")}})]):e._e()],2)},u=[]},"5ce9":function(e,t,n){"use strict";n.r(t);var r=n("a823"),a=n("da6b");for(var u in a)"default"!==u&&function(e){n.d(t,e,(function(){return a[e]}))}(u);n("425a");var i,o=n("f0c5"),s=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,"6dbcbb69",null,!1,r["a"],i);t["default"]=s.exports},"6eb6":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAUCAMAAACDMFxkAAAAAXNSR0IArs4c6QAAAGZQTFRFAAAAv7+/v7+/ysrKxsbGy8vLzMzM0NDQy8vLz8/PzMzMysrKzMzMy8vLzMzMy8vLy8vLzc3Ny8vLzMzMzMzMy8vLzc3Nzc3NzMzMzMzMzMzMy8vLzMzMzMzMzMzMy8vLzMzMzMzMIxnl6wAAACF0Uk5TAAQMGCQnKCssOzxIS09QU1RXWG+Dj4+nv9PX5+fv8/v73LQA2wAAAF9JREFUCNdlz0kWgCAMA1Cc5xEHQCz0/pd0IdH3tKu/SlKh90iEU7yCseYFTgxLOLU8wfnpOrgmquDGUwGP/shgyebPgW1+q3VU3qqI6lBBvg+yPH/nxOYZqXhD9vvQBZbIBgiaTuluAAAAAElFTkSuQmCC"},"714d":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("5530"));n("96cf");var u=r(n("1da1")),i=r(n("359f")),o=r(n("f196")),s=r(n("1014")),c=n("2129"),l={components:{UiCell:o.default,UiButton:i.default,UiPageHeader:s.default},computed:{userInfo:function(){return this.$store.state.userInfo}},methods:{confirm:function(){var e=this;return(0,u.default)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,c.ApiPutUser)({nickname:e.userInfo.nickname});case 2:if(n=t.sent,r=n.error,n.result,!r){t.next=8;break}return ui.$u.totas(r.message),t.abrupt("return",!1);case 8:e.$store.commit("SET_USER_INFO",(0,a.default)({},e.userInfo));case 9:case"end":return t.stop()}}),t)})))()}}};t.default=l},"7c1b":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.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/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-page-body[data-v-6dbcbb69]{background:#f8f8f8}.headerBtn[data-v-6dbcbb69]{height:%?88?%;line-height:%?88?%;font-size:%?28?%;color:#ff875b}.input[data-v-6dbcbb69]{padding:%?20?% %?40?%!important;height:%?60?%;background:#fff;border:0;font-size:%?28?%;color:#333}.tips[data-v-6dbcbb69]{padding:%?20?% %?40?%;font-size:%?24?%;color:#999;display:flex;justify-content:space-between}body.?%PAGE?%[data-v-6dbcbb69]{background:#f8f8f8}',""]),e.exports=t},"8eac":function(e,t,n){"use strict";n.r(t);var r=n("c04a"),a=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=a.a},a537:function(e,t,n){var r=n("141c");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("0e8c0b1b",r,!0,{sourceMap:!1,shadowMode:!1})},a5d5:function(e,t,n){"use strict";n.r(t);var r=n("2702"),a=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=a.a},a823:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return r}));var r={"u-Input":n("eb73").default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",[n("UiPageHeader",{attrs:{title:"设置昵称"}},[n("v-uni-view",{staticClass:"headerBtn",attrs:{slot:"operation"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}},slot:"operation"},[e._v("确定")])],1),n("u--input",{staticClass:"input",attrs:{maxlength:"10",placeholder:"请输入昵称",clearable:!0},model:{value:e.userInfo.nickname,callback:function(t){e.$set(e.userInfo,"nickname",t)},expression:"userInfo.nickname"}}),n("v-uni-view",{staticClass:"tips"},[n("v-uni-text",[e._v("请输入1-10个字符")]),n("v-uni-text",[e._v("("+e._s(e.userInfo.nickname.length)+"/10)")])],1)],1)},u=[]},abd3:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.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/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.uiCell[data-v-4ba2f3f6]{min-height:%?100?%;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center;background:#fff}.uiCell--title[data-v-4ba2f3f6]{color:#333;font-size:%?28?%;display:block}.uiCell--label[data-v-4ba2f3f6]{color:#999;font-size:%?24?%;display:block;margin-top:%?10?%}.uiCell--value[data-v-4ba2f3f6]{flex:1;padding:0 %?10?%;text-align:right;font-size:%?28?%}.uiCell--rightIcon[data-v-4ba2f3f6]{width:%?10?%;height:%?20?%;margin-left:%?18?%}',""]),e.exports=t},b40f:function(e,t,n){var r=n("7c1b");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("29175784",r,!0,{sourceMap:!1,shadowMode:!1})},c04a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{title:{type:String,default:""},label:{type:String,default:""},value:{type:String,default:""},rightIcon:{type:Boolean,default:!0}}};t.default=r},d071:function(e,t,n){"use strict";var r=n("4ea4");n("d3b7"),n("ac1f"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.MsbRequestTk=t.MsbRequest=void 0;var a=r(n("5530")),u=r(n("fda4")),i=r(n("4308")),o="test",s={test:"http://k8s-horse-gateway.mashibing.cn",release:"",prod:""},c=function(e){if(200===e.statusCode){var t=e.data;return"SUCCESS"===t.code?t.data:"TOKEN_EXPIRE"===t.code?(uni.navigateTo({url:"/login"}),t):Promise.reject(t)}return e},l=function(e){return{message:e.errMsg,code:e.statusCode}},f=new u.default;t.MsbRequest=f,f.baseUrl=s[o],f.use("request",(function(e){return e})),f.use("success",c),f.use("error",l);var d=new u.default;t.MsbRequestTk=d,d.baseUrl=s[o],d.use("request",(function(e){var t=i.default.state.token;if(t)return e.header=(0,a.default)((0,a.default)({},e.header),{},{Authorization:i.default.state.token}),e;var n=getCurrentPages(),r=n[n.length-1];return r.$Router.replace({path:"/login",query:{h:r.__page__.path}}),Promise.reject({message:"要先登录才能操作哦~"})})),d.use("success",c),d.use("error",l)},da6b:function(e,t,n){"use strict";n.r(t);var r=n("714d"),a=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=a.a},f196:function(e,t,n){"use strict";n.r(t);var r=n("59a3"),a=n("8eac");for(var u in a)"default"!==u&&function(e){n.d(t,e,(function(){return a[e]}))}(u);n("3f3b");var i,o=n("f0c5"),s=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,"4ba2f3f6",null,!1,r["a"],i);t["default"]=s.exports},f9ea:function(e,t,n){var r=n("abd3");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("d85769a6",r,!0,{sourceMap:!1,shadowMode:!1})},fb87:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return r}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-button",{class:"ui-btn ui-btn__"+e.type+" ui-btn__"+e.size+(e.disabed?" ui-btn__disabed":""),on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.click.apply(void 0,arguments)}}},[e._t("default")],2)},u=[]},fda4:function(e,t,n){"use strict";var r=n("4ea4");n("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("d4ec")),u=r(n("bee2")),i=function(){function e(t){(0,a.default)(this,e),this.baseUrl="",this.hook={request:null,success:null,error:null}}return(0,u.default)(e,[{key:"method",value:function(e){var t=this;if(e.url=this.baseUrl+e.url,this.hook.request&&!e.header&&(e=this.hook.request(e)),!e)throw new Error("没有请求配置,或是request拦截未做return");return e.constructor===Promise?e:new Promise((function(n,r){uni.request(e).then((function(e){var a=e[1];if(a.statusCode>=200&&a.statusCode<400)return n(t.hook.success?t.hook.success(a):a),!1;r(t.hook.error?t.hook.error(a):a)})).catch((function(e){r(t.hook.error?t.hook.error(e):e)}))}))}},{key:"use",value:function(e,t){this.hook[e]=t}},{key:"get",value:function(e,t,n){return this.method({method:"GET",url:e,data:t,header:n})}},{key:"post",value:function(e,t,n){return this.method({method:"POST",url:e,data:t,header:n})}},{key:"put",value:function(e,t,n){return this.method({method:"PUT",url:e,data:t,header:n})}},{key:"delete",value:function(e,t,n){return this.method({method:"DELETE",url:e,data:t,header:n})}}]),e}(),o=i;t.default=o}}]); |