启程易购后端代码
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.
 
 
 
 
 
 
qicheng_shop_backend/public/static/js/pages-users-user_nickname-i...

1 lines
4.9 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_nickname-index"],{"0ebe":function(t,n,e){var i=e("7326");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=e("4f06").default;a("08b8465e",i,!0,{sourceMap:!1,shadowMode:!1})},3245:function(t,n,e){"use strict";e.r(n);var i=e("f00e"),a=e("4ed3");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("9749");var s=e("f0c5"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"1a93460e",null,!1,i["a"],void 0);n["default"]=r.exports},"4cd5":function(t,n,e){"use strict";e("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("6859"),a=e("26cb"),o=e("ddb3"),s={components:{},data:function(){return{userInfo:{},inputcontent:""}},computed:(0,a.mapGetters)(["isLogin","viewColor"]),onLoad:function(){this.isLogin?this.getUserInfo():(0,o.toLogin)()},methods:{getUserInfo:function(){var t=this;(0,i.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,i.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},"4ed3":function(t,n,e){"use strict";e.r(n);var i=e("4cd5"),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},7326:function(t,n,e){var i=e("24fb");n=i(!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},9749:function(t,n,e){"use strict";var i=e("0ebe"),a=e.n(i);a.a},f00e:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=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)},a=[]}}]);