1 line
4.9 KiB
JavaScript
1 line
4.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_nickname-index"],{"3a2d":function(t,n,e){"use strict";var a=e("692d"),i=e.n(a);i.a},"4a68":function(t,n,e){"use strict";e.r(n);var a=e("fd10"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},"4beb":function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{style:t.viewColor},[e("v-uni-form",{attrs:{"report-submit":"true"}},[e("h2",[t._v("修改昵称")]),e("v-uni-view",{staticClass:"ChangePassword"},[e("v-uni-view",{staticClass:"list"},[e("v-uni-view",{staticClass:"item"},[e("v-uni-input",{attrs:{type:"text",name:"nickname",value:t.userInfo.nickname,disabled:!0}})],1),e("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[e("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:"新昵称(限8个字符以内)",maxlength:"8","placeholder-class":"placeholder"},model:{value:t.inputcontent,callback:function(n){t.inputcontent=n},expression:"inputcontent"}})],1)],1),e("v-uni-button",{staticClass:"confirmBnt",attrs:{"form-type":"submit"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.inputEdita.apply(void 0,arguments)}}},[t._v("确认修改")])],1)],1)],1)},i=[]},"692d":function(t,n,e){var a=e("6d27");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=e("967d").default;i("8d16ba96",a,!0,{sourceMap:!1,shadowMode:!1})},"6d27":function(t,n,e){var a=e("c86c");n=a(!1),n.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/* 文章场景相关 */h2[data-v-1a93460e]{text-align:center;margin-top:%?30?%;font-weight:600}uni-page-body[data-v-1a93460e]{background-color:#fff!important}body.?%PAGE?%[data-v-1a93460e]{background-color:#fff!important}.ChangePassword .phone[data-v-1a93460e]{font-size:%?32?%;font-weight:700;text-align:center;margin-top:%?55?%}.ChangePassword .list[data-v-1a93460e]{width:%?580?%;margin:%?53?% auto 0 auto}.ChangePassword .list .item[data-v-1a93460e]{width:100%;height:%?110?%;border-bottom:%?2?% solid #f0f0f0}.ChangePassword .list .item uni-input[data-v-1a93460e]{width:100%;height:100%;font-size:%?32?%}.ChangePassword .list .item .placeholder[data-v-1a93460e]{color:#b9b9bc}.ChangePassword .list .item uni-input.codeIput[data-v-1a93460e]{width:%?340?%}.ChangePassword .list .item .code[data-v-1a93460e]{font-size:%?32?%;background-color:#fff;color:var(--view-theme)}.ChangePassword .list .item .code.on[data-v-1a93460e]{color:#b9b9bc}.ChangePassword .confirmBnt[data-v-1a93460e]{font-size:%?32?%;width:%?580?%;height:%?90?%;border-radius:%?45?%;color:#fff;margin:%?92?% auto 0 auto;text-align:center;line-height:%?90?%;background-color:var(--view-theme)}',""]),t.exports=n},"7dd5":function(t,n,e){"use strict";e.r(n);var a=e("4beb"),i=e("4a68");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("3a2d");var s=e("828b"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"1a93460e",null,!1,a["a"],void 0);n["default"]=r.exports},fd10:function(t,n,e){"use strict";e("6a54"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=e("672a"),i=e("8f59"),o=e("e44d"),s={components:{},data:function(){return{userInfo:{},inputcontent:""}},computed:(0,i.mapGetters)(["isLogin","viewColor"]),onLoad:function(){this.isLogin?this.getUserInfo():(0,o.toLogin)()},methods:{getUserInfo:function(){var t=this;(0,a.getUserInfo)().then((function(n){t.$set(t,"userInfo",n.data)}))},inputEdita:function(){var t=this;this.userInfo.nickname==this.inputcontent?uni.showToast({title:"昵称重复,请重新修改!",icon:"none"}):""==this.inputcontent?uni.showToast({title:"昵称不能为空!",icon:"none"}):(0,a.editAvatar)({nickname:this.inputcontent}).then((function(n){return t.$util.Tips({title:"修改成功!",icon:"success"},{tab:5,url:"/pages/users/user_info/index"})})).catch((function(t){uni.showToast({title:t,icon:"none"})}))}}};n.default=s}}]); |