pages-set-userinfo.62fa1e99.js 3.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-userinfo"],{"2ac1":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-0c260ac4]{background:#f8f6f6;padding-top:%?16?%}.row[data-v-0c260ac4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-0c260ac4]{-webkit-flex-shrink:0;flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-0c260ac4]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?30?%;color:#303133}.row .iconlocation[data-v-0c260ac4]{font-size:%?36?%;color:#909399}.add-btn[data-v-0c260ac4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?690?%;height:%?80?%;margin:%?60?% auto;font-size:%?32?%;color:#fff;background-color:#921a23;border-radius:%?10?%}body.?%PAGE?%[data-v-0c260ac4]{background:#f8f6f6}',""]),t.exports=e},"4b22":function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.userEdit=o,e.logout=c,e.registerReset=r,e.binding=u;var i=a(n("bc58"));function o(t){return(0,i.default)({url:"/api/user/edit",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/logout",method:"get",data:t})}function r(t){return(0,i.default)({url:"/api/register/reset",method:"post",data:t})}function u(t){return(0,i.default)({url:"/api/binding",method:"post",data:t})}},"56c8":function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("5530")),o=n("2f62"),c=n("4b22"),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,c.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},"80ba":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var i=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)},o=[]},"919e":function(t,e,n){"use strict";n.r(e);var a=n("80ba"),i=n("b863");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("e99c");var c,r=n("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"0c260ac4",null,!1,a["a"],c);e["default"]=u.exports},b2dc:function(t,e,n){var a=n("2ac1");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("2dc0af4e",a,!0,{sourceMap:!1,shadowMode:!1})},b863:function(t,e,n){"use strict";n.r(e);var a=n("56c8"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},e99c:function(t,e,n){"use strict";var a=n("b2dc"),i=n.n(a);i.a}}]);