pages-set-userinfo.16b83cbf.js 3.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-userinfo"],{"091e":function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-68df3a59]{background:#f8f6f6;padding-top:%?16?%}body.?%PAGE?%[data-v-68df3a59]{background:#f8f6f6}.row[data-v-68df3a59]{display:flex;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-68df3a59]{flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-68df3a59]{flex:1;font-size:%?30?%;color:#303133}.row .iconlocation[data-v-68df3a59]{font-size:%?36?%;color:#909399}.add-btn[data-v-68df3a59]{display:flex;align-items:center;justify-content:center;width:%?690?%;height:%?80?%;margin:%?60?% auto;font-size:%?32?%;color:#fff;background-color:#ee2f72;border-radius:%?10?%}',""]),t.exports=e},"3a5f":function(t,e,n){"use strict";n.r(e);var a=n("4986"),i=n("fe7e5");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("5419");var u=n("f0c5"),r=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,"68df3a59",null,!1,a["a"],void 0);e["default"]=r.exports},4986:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"row b-b"},[n("v-uni-text",{staticClass:"tit"},[t._v("昵称")]),n("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"修改昵称","placeholder-class":"placeholder"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),n("v-uni-button",{staticClass:"add-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}},[t._v("提交")])],1)},i=[]},"512d":function(t,e,n){var a=n("091e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("14bdec78",a,!0,{sourceMap:!1,shadowMode:!1})},5419:function(t,e,n){"use strict";var a=n("512d"),i=n.n(a);i.a},7377:function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("5530")),o=n("26cb"),u=n("eefd"),r={data:function(){return{name:""}},computed:(0,i.default)({},(0,o.mapState)("user",["userInfo"])),onShow:function(t){this.name=this.userInfo.nickname+""},methods:{switchChange:function(t){this.addressData.default=t.value},confirm:function(){var t=this;(0,u.userEdit)({nickname:this.name,avatar:this.userInfo.avatar}).then((function(e){t.$api.msg("修改成功"),setTimeout((function(){uni.switchTab({url:"/pages/user/user"})}),1e3),console.log(e)})).catch((function(t){console.log(t)}))}}};e.default=r},eefd:function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.binding=function(t){return(0,i.default)({url:"/api/binding",method:"post",data:t})},e.logout=function(t){return(0,i.default)({url:"/api/logout",method:"get",data:t})},e.registerReset=function(t){return(0,i.default)({url:"/api/register/reset",method:"post",data:t})},e.userEdit=function(t){return(0,i.default)({url:"/api/user/edit",method:"post",data:t})};var i=a(n("5784"))},fe7e5:function(t,e,n){"use strict";n.r(e);var a=n("7377"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a}}]);