(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-personal-data"],{"0d511":function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("c975");var i={name:"bar-title",props:{bgColor:{type:String,default:""},isBack:{type:Boolean,default:!0},backText:{type:String,default:""},fixed:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},title:{type:String,default:""}},data:function(){return{isWechatBrowser:!1}},methods:{BackPage:function(){uni.navigateBack()},leftTap:function(){this.$emit("leftTap")},contentTap:function(){this.$emit("contentTap")},rightTap:function(){this.$emit("rightTap")}},created:function(){uni.setNavigationBarTitle({title:this.title}),this.isWechatBrowser=navigator.userAgent.toLocaleLowerCase().indexOf("micromessenger")>0},watch:{title:function(t){uni.setNavigationBarTitle({title:t})}}};a.default=i},"18dd":function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",[e("bar-title",{attrs:{bgColor:"bg-white",isBack:!0}},[e("template",{attrs:{slot:"content"},slot:"content"},[t._v("个人资料")])],2),e("v-uni-view",{staticClass:"cu-list menu sm-border margin-top"},[e("v-uni-view",{staticClass:"cu-item arrow"},[e("v-uni-view",{staticClass:"content"},[t._v("头像")]),e("v-uni-view",{staticClass:"action"},[e("v-uni-view",{staticClass:"cu-avatar round sm",style:[{backgroundImage:"url("+t.avatar_img+")"}],on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.updateAvatar.apply(void 0,arguments)}}})],1)],1),e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.editNameTap.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"content"},[t._v("昵称")]),e("v-uni-view",{staticClass:"action"},[e("v-uni-text",{staticClass:"text-gray"},[t._v(t._s(t.userInfo.name))])],1)],1)],1),e("v-uni-view",{staticClass:"cu-list menu sm-border margin-top"},[e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.editPhoneTap.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"content"},[t._v("手机号")]),e("v-uni-view",{staticClass:"action"},[e("v-uni-text",{staticClass:"text-gray"},[t._v(t._s(t.userInfo.phone))])],1)],1),e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.addressTap.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"content"},[t._v("收货地址")])],1)],1),e("v-uni-view",{staticClass:"cu-list menu sm-border margin-top"},[e("v-uni-view",{staticClass:"cu-item arrow"},[e("v-uni-view",{staticClass:"content",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.logout.apply(void 0,arguments)}}},[t._v("退出登录")])],1)],1)],1)},n=[]},"5a30":function(t,a,e){var i=e("7ed5");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("e9abf2d4",i,!0,{sourceMap:!1,shadowMode:!1})},"5c98":function(t,a,e){var i=e("e7ac");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("99b648cc",i,!0,{sourceMap:!1,shadowMode:!1})},6675:function(t,a,e){"use strict";var i=e("5a30"),n=e.n(i);n.a},"713c":function(t,a,e){"use strict";e.r(a);var i=e("e88e"),n=e("df75a");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);e("6675");var u=e("f0c5"),s=Object(u["a"])(n["default"],i["b"],i["c"],!1,null,"1b7fdbfe",null,!1,i["a"],void 0);a["default"]=s.exports},"75ea":function(t,a,e){"use strict";e("7a82");var i=e("ee27").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("d3b7"),e("159b");var n=i(e("713c")),o=i(e("b27f")),u={components:{barTitle:n.default},data:function(){return{avatar_img:"/static/images/avatar/1.jpg",sexIndex:0,sexPicker:["男","女"],dateValue:"1945-10-01"}},onLoad:function(){this.userInfo.id||this.loadUserInfo()},onReady:function(){o.default.setBarColor(!0),uni.pageScrollTo({scrollTop:0,duration:0})},methods:{logout:function(){uni.removeStorageSync("baseToken"),this.setUserInfo({}),uni.reLaunch({url:"/pages/app/index"})},editNameTap:function(){uni.navigateTo({url:"/pages/my/edit-name"})},sexPickerChange:function(t){this.sexIndex=t.detail.value},datePickerChange:function(t){this.dateValue=t.detail.value},synopsisTap:function(){uni.navigateTo({url:"/pages/my/edit-synopsis"})},addressTap:function(){uni.navigateTo({url:"/pages/my/address"})},editPhoneTap:function(){uni.navigateTo({url:"/pages/my/edit-phone"})},editContactCardsTap:function(){uni.navigateTo({url:"/pages/my/contact-cards"})},regionTap:function(){uni.navigateTo({url:"/pages/my/region"})},updateAvatar:function(t){var a=this;uni.chooseImage({count:1,success:function(t){t.tempFilePaths.forEach((function(t,e){a.upload({url:"package/upload/?l=save.start",filePath:t,name:"file",formData:{key:9},success:function(t){var a=JSON.parse(t.data);1==a.status||uni.showToast({icon:"error",title:"上传失败"}),uni.hideLoading()},fail:function(){uni.showToast({icon:"error",title:"上传失败"}),uni.hideLoading()}})}))}})}}};a.default=u},"7ed5":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".zaiui-bar-title-box .cu-bar[data-v-1b7fdbfe]{padding-top:0;min-height:calc(0px + %?101?%)}.zaiui-bar-title-box .cu-bar .content[data-v-1b7fdbfe]{top:0}.zaiui-bar-title-box .cu-bar .content .cu-tag[data-v-1b7fdbfe]{position:relative;top:%?-2.72?%;padding:0 %?5.45?%}.zaiui-bar-title-box .cu-bar .content .cu-tag uni-text[data-v-1b7fdbfe]{position:relative;top:%?2?%}.zaiui-bar-title-box .cu-bar.fixed.no-shadow[data-v-1b7fdbfe]{box-shadow:inherit}.zaiui-bar-title-box .cu-bar.bg-white[data-v-1b7fdbfe]{color:#333}.zaiui-bar-title-box .zaiui-seat-height[data-v-1b7fdbfe]{width:100%;height:calc(0px + %?101?%)}",""]),t.exports=a},ae1c:function(t,a,e){"use strict";e.r(a);var i=e("75ea"),n=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);a["default"]=n.a},b27f:function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("a9e3"),e("d401"),e("d3b7"),e("25f0"),e("e25e"),e("c975"),e("ac1f"),e("5319");var i={strLeng:function(t){if(t){for(var a=t.length,e=0,i=0;i128?e+=2:e+=1;return e}return 0},getPageNum:function(t,a){var e=Number(t)/Number(a);if(e%1!==0){var i=e.toString(),n=parseInt(i.substring(0,i.indexOf("."))),o=i.replace(/\d+\.(\d*)/,"$1");o>0&&(e=n+1)}return e},setBarColor:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t?uni.setNavigationBarColor({frontColor:"#000000",backgroundColor:"#FAFAFA"}):uni.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:"#FAFAFA"})},zaiui_log:function(t){}},n=i;a.default=n},b7f5:function(t,a,e){"use strict";var i=e("5c98"),n=e.n(i);n.a},df75a:function(t,a,e){"use strict";e.r(a);var i=e("0d511"),n=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);a["default"]=n.a},e4e8:function(t,a,e){"use strict";e.r(a);var i=e("18dd"),n=e("ae1c");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);e("b7f5");var u=e("f0c5"),s=Object(u["a"])(n["default"],i["b"],i["c"],!1,null,"ba7e41d0",null,!1,i["a"],void 0);a["default"]=s.exports},e7ac:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".zaiui-head-box[data-v-ba7e41d0]{position:relative;padding:%?45.45?% %?90.9?%}.zaiui-btn-view[data-v-ba7e41d0]{position:fixed;width:100%;bottom:0}.zaiui-btn-view .flex[data-v-ba7e41d0]{padding:%?18.18?%}",""]),t.exports=a},e88e:function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"zaiui-bar-title-box",style:t.isWechatBrowser?"display: none;":""},[e("v-uni-view",{staticClass:"cu-bar",class:[t.fixed?"fixed":"",t.shadow?"":"no-shadow",t.bgColor]},[t.isBack?e("v-uni-view",{staticClass:"action",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.BackPage.apply(void 0,arguments)}}},[e("v-uni-text",{staticClass:"cuIcon-back"}),e("v-uni-text",[t._v(t._s(t.backText))])],1):t._e(),t.isBack?t._e():e("v-uni-view",{staticClass:"action",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.leftTap.apply(void 0,arguments)}}},[t._t("left")],2),e("v-uni-view",{staticClass:"content",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.contentTap.apply(void 0,arguments)}}},[t._t("content")],2),e("v-uni-view",{staticClass:"action",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.rightTap.apply(void 0,arguments)}}},[t._t("right")],2)],1),t.fixed?e("v-uni-view",{staticClass:"zaiui-seat-height"}):t._e()],1)},n=[]}}]);