|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-account-setting-setName"],{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},"24e3":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:"ui-cell",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$emit("click")}}},[e._t("icon"),r("v-uni-view",{staticClass:"ui-cell--left"},[r("v-uni-text",{staticClass:"ui-cell--title"},[e._v(e._s(e.title))]),e.label?r("v-uni-text",{staticClass:"ui-cell--label"},[e._v(e._s(e.label))]):e._e()],1),e._t("value",[r("v-uni-text",{staticClass:"ui-cell--value"},[e._v(e._s(e.value))])]),e.rightIcon?e._t("right-icon",[r("v-uni-image",{staticClass:"ui-cell--rightIcon",attrs:{src:n("6eb6")}})]):e._e()],2)},u=[]},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"},disable:{type:Boolean,default:!1}},methods:{click:function(){!this.disable&&this.$emit("click")}}};t.default=r},"359f":function(e,t,n){"use strict";n.r(t);var r=n("7f16"),a=n("a5d5");for(var u in a)"default"!==u&&function(e){n.d(t,e,(function(){return a[e]}))}(u);n("9f0b");var i,o=n("f0c5"),s=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,"4c357d64",null,!1,r["a"],i);t["default"]=s.exports},"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},"4a8b":function(e,t,n){"use strict";var r=n("d3ef"),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},"5a44":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-4c357d64]{display:inline-block;padding:0 %?50?%;border-radius:%?50?%}.ui-btn[data-v-4c357d64]::after{display:none}.ui-btn__normal[data-v-4c357d64]{height:%?70?%;line-height:%?70?%;font-size:%?28?%}.ui-btn__min[data-v-4c357d64]{height:%?60?%;line-height:%?60?%;font-size:%?28?%}.ui-btn__small[data-v-4c357d64]{height:%?50?%;line-height:%?50?%;font-size:%?28?%}.ui-btn__max[data-v-4c357d64]{height:%?80?%;line-height:%?80?%;font-size:%?32?%}.ui-btn__gradual[data-v-4c357d64]{background:linear-gradient(270deg,#ff7f39,#ffa35b);color:#fff}.ui-btn__solid[data-v-4c357d64]{background:#ff875b;color:#fff}.ui-btn__line[data-v-4c357d64]{background:none;color:#333;border:1px solid #999}.ui-btn__primaryLine[data-v-4c357d64]{background:none;color:#ff875b;border:1px solid #ff875b}.ui-btn__disabed[data-v-4c357d64]{opacity:.5}',""]),e.exports=t},"5ce9":function(e,t,n){"use strict";n.r(t);var r=n("d86b"),a=n("da6b");for(var u in a)"default"!==u&&function(e){n.d(t,e,(function(){return a[e]}))}(u);n("a4ff");var i,o=n("f0c5"),s=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,"71a4eac1",null,!1,r["a"],i);t["default"]=s.exports},"5e04":function(e,t,n){var r=n("9ee6");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("1f0fde23",r,!0,{sourceMap:!1,shadowMode:!1})},"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},"7f16":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.disable?" x ui-btn__disabed":" xx"),on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.click.apply(void 0,arguments)}}},[e._t("default")],2)},u=[]},"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},"92fd":function(e,t,n){var r=n("5a44");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("4898df4d",r,!0,{sourceMap:!1,shadowMode:!1})},"9ee6":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-71a4eac1]{background:#f8f8f8}.header[data-v-71a4eac1]{background:#fff}.header-btn[data-v-71a4eac1]{height:%?88?%;line-height:%?88?%;font-size:%?28?%;color:#ff875b}.input[data-v-71a4eac1]{margin-top:%?20?%;padding:%?20?% %?40?%!important;height:%?100?%;background:#fff;border:0;font-size:%?28?%;color:#333}.tips[data-v-71a4eac1]{padding:%?20?% %?40?%;display:flex;justify-content:space-between}.tips uni-text[data-v-71a4eac1]{font-size:%?24?%;color:#999}body.?%PAGE?%[data-v-71a4eac1]{background:#f8f8f8}',""]),e.exports=t},"9f0b":function(e,t,n){"use strict";var r=n("92fd"),a=n.n(r);a.a},a4ff:function(e,t,n){"use strict";var r=n("5e04"),a=n.n(r);a.a},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},b710: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-cell[data-v-1ae2c940]{min-height:%?100?%;border-bottom:1px solid #f8f8f8;display:flex;justify-content:space-between;align-items:center;background:#fff}.ui-cell--title[data-v-1ae2c940]{color:#333;font-size:%?28?%;line-height:%?28?%;display:block}.ui-cell--label[data-v-1ae2c940]{color:#999;font-size:%?24?%;display:block;margin-top:%?10?%}.ui-cell--value[data-v-1ae2c940]{flex:1;padding:0 %?10?%;text-align:right;font-size:%?28?%}.ui-cell--rightIcon[data-v-1ae2c940]{width:%?10?%;height:%?20?%;margin-left:%?18?%}',""]),e.exports=t},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("4de4"),n("caad"),n("d3b7"),n("ac1f"),n("2532"),n("38cf"),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:"https://k8s-horse-gateway.mashibing.cn",release:"",prod:""},c=function(e,t){if(v(t),200===e.statusCode){var n=e.data;return"SUCCESS"===n.code?n.data:"TOKEN_EXPIRE"===n.code?(uni.navigateTo({url:"/login"}),n):Promise.reject(n)}return e},l=function(e,t){return v(t),{message:e.errMsg,code:e.statusCode}},d=[],f=function(e){var t={url:e.url,method:e.method,data:e.data};return d.includes(JSON.stringify(t))?Promise.reject({message:"请勿频繁操作"}):(d.push(JSON.stringify(t)),!1)},v=function(e){d=d.filter((function(t){return t!==JSON.stringify({url:e.url,method:e.method,data:e.data})}))},p=new u.default;t.MsbRequest=p,p.baseUrl=s[o],p.use("request",(function(e){if(e.header.repeat){var t=f(e);if(t)return t}return e})),p.use("success",c),p.use("error",l);var h=new u.default;t.MsbRequestTk=h,h.baseUrl=s[o],h.use("request",(function(e){var t=i.default.state.token;if(t){if(e.header=(0,a.default)((0,a.default)({},e.header),{},{Authorization:t}),e.header.repeat){var n=f(e);if(n)return n}return e}var r=getCurrentPages(),u=r[r.length-1];return u.$Router.replace("/login"),Promise.reject({message:"要先登录才能操作哦~"})})),h.use("success",c),h.use("error",l)},d3ef:function(e,t,n){var r=n("b710");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("4f06").default;a("0149dbc0",r,!0,{sourceMap:!1,shadowMode:!1})},d86b: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",{staticClass:"header",attrs:{title:"设置昵称"}},[n("v-uni-view",{staticClass:"header-btn",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=[]},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("24e3"),a=n("8eac");for(var u in a)"default"!==u&&function(e){n.d(t,e,(function(){return a[e]}))}(u);n("4a8b");var i,o=n("f0c5"),s=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,"1ae2c940",null,!1,r["a"],i);t["default"]=s.exports},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("5530")),u=r(n("d4ec")),i=r(n("bee2")),o=function(){function e(t){(0,u.default)(this,e),this.baseUrl="",this.header={repeat:!0},this.hook={request:null,success:null,error:null}}return(0,i.default)(e,[{key:"method",value:function(e){var t=this;if(e.header=(0,a.default)((0,a.default)({},this.header),e.header),e.url=this.baseUrl+e.url,this.hook.request&&(e=this.hook.request(e)),!e)throw new Error("没有请求配置,或是request拦截未做return");return e.constructor===Promise?e:new Promise((function(n,r){uni.request((0,a.default)((0,a.default)({},e),{},{success:function(a){var u=a||a[1];if(u.statusCode>=200&&u.statusCode<400){if(t.hook.success){var i=t.hook.success(u,e);i&&i.constructor===Promise?i.then((function(e){n(e)}),(function(e){r(e)})):n(i)}else n(u);return!1}r(t.hook.error?t.hook.error(u,e):u)},fail:function(n){r(t.hook.error?t.hook.error(n,e):n)}}))}))}},{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}(),s=o;t.default=s}}]); |