(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-info"],{"628b":function(t,a,e){"use strict";e.r(a);var n=e("ed93"),i=e.n(n);for(var u in n)"default"!==u&&function(t){e.d(a,t,(function(){return n[t]}))}(u);a["default"]=i.a},"6baf":function(t,a,e){"use strict";var n;e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return u})),e.d(a,"a",(function(){return n}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",[t.pageLoad?e("v-uni-view",[e("v-uni-form",{on:{submit:function(a){arguments[0]=a=t.$handleEvent(a),t.submit.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"input-flex"},[e("v-uni-view",{staticClass:"input-flex-label"},[t._v("昵称")]),e("v-uni-input",{staticClass:"input-flex-text",attrs:{name:"nickname",value:t.data.nickname}})],1),e("v-uni-view",{staticClass:"input-flex"},[e("v-uni-view",{staticClass:"input-flex-label"},[t._v("生日")]),e("v-uni-picker",{staticClass:"input-flex-text flex flex-ai-center",attrs:{mode:"date"},on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.changeDate.apply(void 0,arguments)}}},[e("v-uni-view",[t._v(t._s(t.data.birthday))])],1),e("v-uni-input",{staticClass:"none",attrs:{name:"birthday",value:t.data.birthday}})],1),e("v-uni-view",{staticClass:"input-flex"},[e("v-uni-view",{staticClass:"input-flex-label"},[t._v("自我介绍")]),e("v-uni-input",{staticClass:"input-flex-text",attrs:{name:"description",value:t.data.description}})],1),e("v-uni-button",{staticClass:"btn-row-submit",attrs:{"form-type":"submit"}},[t._v("提交")])],1)],1):t._e()],1)},u=[]},ed93:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n={data:function(){return{pageLoad:!1,data:{}}},onLoad:function(t){uni.setNavigationBarTitle({title:"用户资料"}),this.getPage()},methods:{getPage:function(){var t=this;t.app.get({url:t.app.apiHost+"?m=user&a=info&ajax=1",success:function(a){a.error?t.app.goHome():(t.pageLoad=!0,t.data=a.data.data)}})},changeGender:function(t){this.data.gender=t.detail.value},changeDate:function(t){this.data.birthday=t.detail.value},submit:function(t){var a=this;uni.request({url:a.app.apiHost+"?m=user&a=save&ajax=1&fromapp="+a.app.fromapp()+"&authcode="+a.app.getAuthCode(),method:"POST",header:{"content-type":"application/x-www-form-urlencoded"},data:t.detail.value,success:function(t){uni.showToast({title:t.data.message}),t.data.error||setTimeout((function(){uni.navigateBack()}),600)}})}}};a.default=n},f3fc:function(t,a,e){"use strict";e.r(a);var n=e("6baf"),i=e("628b");for(var u in i)"default"!==u&&function(t){e.d(a,t,(function(){return i[t]}))}(u);var s,r=e("f0c5"),o=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"3b2eed0f",null,!1,n["a"],s);a["default"]=o.exports}}]);