(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/complete-info/complete-info"],{"41bb":function(e,t,n){"use strict";var a=n("86a7"),s=n.n(a);s.a},"469f":function(e,t,n){"use strict";(function(e){n("fdf4");a(n("66fd"));var t=a(n("94d6"));function a(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},"6f35":function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var s=function(){var e=this,t=e.$createElement,n=(e._self._c,0==e.showEdit&&e.userInfo.sex?e.getSex(e.userInfo.sex):null);e._isMounted||(e.e0=function(t){e.showEdit=0},e.e1=function(t){e.showEdit=0}),e.$mp.data=Object.assign({},{$root:{m0:n}})},o=[]},"86a7":function(e,t,n){},9388:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("057a"),s=o(n("7fb5"));function o(e){return e&&e.__esModule?e:{default:e}}var r={data:function(){return{sexList:[{name:"男",val:1},{name:"女",val:2}],index:"",userSex:"",user_id:"",userInfo:"",showEdit:0,address:"",defaultAds:"",areaCode:"+86",areaName:"中国大陆",codeList:s.default}},onLoad:function(e){this.getUser(e.user_id),this.user_id=e.user_id},onShow:function(){this.otherFun(),this.address||this.getAds()},filters:{},methods:{addressList:function(){e.navigateTo({url:"../../pagesA/pages/ads-list/ads-list?user_id="+this.user_id})},otherFun:function(e){e&&(this.address=e)},getAds:function(){var t=this;(0,a.getAds)({id:this.user_id}).then((function(n){200==n.code?(t.store=n.data.store,t.defaultAds=n.data.address):e.showModal({content:n.data,showCancel:!1})}))},getSex:function(e){return!!e&&(1==e?"男":"女")},edit:function(e){this.showEdit=e},save:function(){var t=this.userInfo;t.user_id=this.user_id,(0,a.completeUser)(t).then((function(t){200==t.code?e.showModal({content:"保存成功",showCancel:!1,success:function(t){t.confirm&&e.reLaunch({url:"../user-manage/user-manage"})}}):e.showModal({content:t.data||"保存失败",showCancel:!1})}))},getUser:function(t){var n=this;(0,a.getUser)({user_id:t}).then((function(t){if(200==t.code){var a=t.data,s=a.name,o=a.nickname,r=a.phone,i=a.sex,u=a.remark,d=a.area_code;if(n.userInfo={name:s,nickname:o,phone:r,sex:i||"",remark:u||""},n.areaCode=d||"+86",n.areaCode){var c=n.areaCode.indexOf("+"),f=n.areaCode.substring(c+1);n.codeList[0].list.map((function(e){e.code===Number(f)&&(n.areaName=e.name)}))}}else e.showModal({content:t.data||"获取用户信息失败",showCancel:!1})}))},bindPickerChange:function(e){var t=e.target.value;this.userSex=this.sexList[t].name,this.userInfo.sex=t+1}}};t.default=r}).call(this,n("543d")["default"])},"94d6":function(e,t,n){"use strict";n.r(t);var a=n("6f35"),s=n("e217");for(var o in s)"default"!==o&&function(e){n.d(t,e,(function(){return s[e]}))}(o);n("41bb");var r,i=n("f0c5"),u=Object(i["a"])(s["default"],a["b"],a["c"],!1,null,"dc53013c",null,!1,a["a"],r);t["default"]=u.exports},e217:function(e,t,n){"use strict";n.r(t);var a=n("9388"),s=n.n(a);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=s.a}},[["469f","common/runtime","common/vendor"]]]);