text: webpackJsonp([39],{Kzw2:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"set_nickname"},[n("van-cell-group",[n("van-field",{attrs:{label:"姓名",error:!!t.$vuelidation.error("name")},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),t._v(" "),n("div",{staticClass:"bottom_btn"},[n("van-button",{attrs:{size:"large",type:"danger"},on:{click:t.saveNick}},[t._v("保存")])],1)],1)},s=[],i={render:a,staticRenderFns:s};e.a=i},blG2:function(t,e,n){e=t.exports=n("FZ+f")(!0),e.push([t.i,".bottom_btn[data-v-34fd4dc2]{padding:30px 15px 0}","",{version:3,sources:["D:/phpserver/wwwroot/ditui_clients/src/views/user/user-information-set/set-nickname/index.vue"],names:[],mappings:"AACA,6BACC,mBAA0B,CAC1B",file:"index.vue",sourcesContent:["\n.bottom_btn[data-v-34fd4dc2]{\n\tpadding: 30px 15px 0 15px;\n}\n"],sourceRoot:""}])},"l/5r":function(t,e,n){var a=n("blG2");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("2cb2d0b0",a,!0,{})},qG4m:function(t,e,n){"use strict";function a(t){n("l/5r")}Object.defineProperty(e,"__esModule",{value:!0});var s=n("wgct"),i=n("Kzw2"),r=n("VU/8"),c=a,o=r(s.a,i.a,!1,c,"data-v-34fd4dc2",null);e.default=o.exports},wgct:function(t,e,n){"use strict";var a=n("vMJZ");e.a={data:function(){return{name:""}},vuelidation:{data:{name:{required:{msg:function(){return"请填写姓名"}}}}},created:function(){this.getNick()},methods:{getNick:function(){this.name=localStorage.getItem("name")||""},saveNick:function(){var t=this;this.mixValid()&&this.$reqPut(a.g,{name:this.name}).then(function(e){t.saveSuccess(e)}).catch(function(e){t.saveSuccess(e)})},saveSuccess:function(t){var e=this;if(t.data){if(0!=t.data.code){var n=t.data.msg?t.data.msg:"保存失败";return void Toast.fail(n)}return localStorage.setItem("name",this.name),this.$dialog.alert({message:"保存成功"}).then(function(){e.$router.go(-1)})}}}}}});
  //# sourceMappingURL=39.f4f31d17ae1a3da35b18.js.map