(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-edit-name"],{"0d511":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("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})}}};e.default=i},1644:function(t,e,a){"use strict";a.r(e);var i=a("339c"),n=a("32f9");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("3b06");var u=a("f0c5"),r=Object(u["a"])(n["default"],i["b"],i["c"],!1,null,"2918ab5b",null,!1,i["a"],void 0);e["default"]=r.exports},"32f9":function(t,e,a){"use strict";a.r(e);var i=a("d8a2"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"339c":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("bar-title",{attrs:{bgColor:"bg-white",isBack:!0}},[a("template",{attrs:{slot:"content"},slot:"content"},[t._v("修改昵称")])],2),a("v-uni-view",{staticClass:"cu-form-group margin-top"},[a("v-uni-view",{staticClass:"title"},[t._v("新昵称")]),a("v-uni-input",{attrs:{placeholder:"请输入新昵称"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),a("v-uni-view",{staticClass:"text-sm text-gray padding-sm"},[t._v("13个字以内,仅支持汉字、字母、数字或下划线")]),a("v-uni-view",{staticClass:"bg-white zaiui-footer-fixed zaiui-foot-padding-bottom",staticStyle:{padding:"20upx"}},[a("v-uni-view",{staticClass:"flex flex-direction"},[a("v-uni-button",{staticClass:"cu-btn bg-red",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submitName.apply(void 0,arguments)}}},[t._v("保存昵称")])],1)],1)],1)},n=[]},"3b06":function(t,e,a){"use strict";var i=a("fa46"),n=a.n(i);n.a},"4fae":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'.cu-form-group .title[data-v-2918ab5b]:before{content:"";position:absolute;height:%?27.27?%;width:%?3.63?%;background:#e6e6e6;top:%?16.36?%;right:%?12.72?%}.cu-form-group uni-input[data-v-2918ab5b]{color:#333}',""]),t.exports=e},"5a30":function(t,e,a){var i=a("7ed5");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("e9abf2d4",i,!0,{sourceMap:!1,shadowMode:!1})},6675:function(t,e,a){"use strict";var i=a("5a30"),n=a.n(i);n.a},"713c":function(t,e,a){"use strict";a.r(e);var i=a("e88e"),n=a("df75a");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("6675");var u=a("f0c5"),r=Object(u["a"])(n["default"],i["b"],i["c"],!1,null,"1b7fdbfe",null,!1,i["a"],void 0);e["default"]=r.exports},"7ed5":function(t,e,a){var i=a("24fb");e=i(!1),e.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=e},b27f:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3"),a("d401"),a("d3b7"),a("25f0"),a("e25e"),a("c975"),a("ac1f"),a("5319");var i={strLeng:function(t){if(t){for(var e=t.length,a=0,i=0;i128?a+=2:a+=1;return a}return 0},getPageNum:function(t,e){var a=Number(t)/Number(e);if(a%1!==0){var i=a.toString(),n=parseInt(i.substring(0,i.indexOf("."))),o=i.replace(/\d+\.(\d*)/,"$1");o>0&&(a=n+1)}return a},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;e.default=n},d8a2:function(t,e,a){"use strict";a("7a82");var i=a("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("713c")),o=i(a("b27f")),u={components:{barTitle:n.default},data:function(){return{name:""}},onLoad:function(){var t=this;this.name=this.userInfo.name,this.userInfo.id||this.loadUserInfo().then((function(e){t.name=e.user.name}))},onReady:function(){o.default.setBarColor(!0),uni.pageScrollTo({scrollTop:0,duration:0})},methods:{submitName:function(){var t=this;this.reqByuser({url:"?l=user.update",data:{name:this.name},success:function(e){1==e.data.status?console.log(e.data.data):t.error=e.data.msg}})}}};e.default=u},df75a:function(t,e,a){"use strict";a.r(e);var i=a("0d511"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},e88e:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"zaiui-bar-title-box",style:t.isWechatBrowser?"display: none;":""},[a("v-uni-view",{staticClass:"cu-bar",class:[t.fixed?"fixed":"",t.shadow?"":"no-shadow",t.bgColor]},[t.isBack?a("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.BackPage.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"cuIcon-back"}),a("v-uni-text",[t._v(t._s(t.backText))])],1):t._e(),t.isBack?t._e():a("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.leftTap.apply(void 0,arguments)}}},[t._t("left")],2),a("v-uni-view",{staticClass:"content",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.contentTap.apply(void 0,arguments)}}},[t._t("content")],2),a("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.rightTap.apply(void 0,arguments)}}},[t._t("right")],2)],1),t.fixed?a("v-uni-view",{staticClass:"zaiui-seat-height"}):t._e()],1)},n=[]},fa46:function(t,e,a){var i=a("4fae");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("2916f3c0",i,!0,{sourceMap:!1,shadowMode:!1})}}]);