1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_info-index"],{"0063":function(t,e,n){"use strict";(function(t){n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("2110"),a=(n("bed0"),n("1939")),s=n("26cb"),o=(i(n("c61b")),{components:{},data:function(){return{memberInfo:{},loginType:"h5",userIndex:0,newAvatar:"",isAuto:!1,isShowAuth:!1}},computed:(0,s.mapGetters)(["isLogin","uid","userInfo"]),onLoad:function(){this.isLogin||(0,a.toLogin)()},methods:{authColse:function(t){this.isShowAuth=t},Setting:function(){uni.openSetting({success:function(e){t("log",e.authSetting," at pages/users/user_info/index.vue:123")}})},outLogin:function(){var e=this;"h5"==e.loginType&&uni.showModal({title:"提示",content:"确认退出登录?",success:function(n){n.confirm?(0,r.getLogout)().then((function(t){e.$store.commit("LOGOUT"),uni.reLaunch({url:"/pages/users/login/index"})})).catch((function(e){t("log",e," at pages/users/user_info/index.vue:147")})):n.cancel&&t("log","用户点击取消"," at pages/users/user_info/index.vue:150")}})},uploadpic:function(){var t=this;t.$util.uploadImageOne({name:"file"},(function(e){t.newAvatar=e.data}))},formSubmit:function(t){var e=this,n=t.detail.value;if(!n.nickname)return e.$util.Tips({title:"用户姓名不能为空"});n.avatar=e.newAvatar?e.newAvatar:e.userInfo.avatar,(0,r.userEdit)(n).then((function(t){return e.$store.commit("changInfo",{amount1:"avatar",amount2:e.newAvatar}),e.$util.Tips({title:"更换头像已成功",icon:"success"},{tab:3,url:1})})).catch((function(t){return e.$util.Tips({title:t||"保存失败,您并没有修改"},{tab:3,url:1})}))}}});e.default=o}).call(this,n("0de9")["log"])},3156:function(t,e,n){"use strict";n.r(e);var i=n("0063"),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},5787:function(t,e,n){"use strict";var i=n("b55a"),r=n.n(i);r.a},"9f82":function(t,e,n){"use strict";n.r(e);var i=n("b65c"),r=n("3156");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("5787");var s=n("f0c5"),o=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"1554cb5b",null,!1,i["a"],void 0);e["default"]=o.exports},b55a:function(t,e,n){var i=n("de20");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("1508fb19",i,!0,{sourceMap:!1,shadowMode:!1})},b65c:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmit.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"personal-data pad30"},[i("v-uni-view",{staticClass:"list borRadius14"},[i("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[i("v-uni-view",[t._v("头像")]),i("v-uni-view",{staticClass:"pictrue",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.uploadpic.apply(void 0,arguments)}}},[i("v-uni-image",{attrs:{src:t.newAvatar?t.newAvatar:t.userInfo.avatar}}),i("v-uni-image",{staticClass:"alter",attrs:{src:n("cc3a")}})],1)],1),i("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[i("v-uni-view",[t._v("昵称")]),i("v-uni-view",{staticClass:"input"},[i("v-uni-input",{attrs:{type:"text",name:"nickname",value:t.userInfo.nickname}})],1)],1),i("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[i("v-uni-view",[t._v("手机号码")]),t.userInfo.phone?i("v-uni-navigator",{staticClass:"input",attrs:{url:"/pages/users/user_phone/index","hover-class":"none"}},[i("v-uni-view",{staticClass:"input acea-row row-between-wrapper"},[i("v-uni-input",{staticClass:"id",attrs:{type:"text",disabled:"true",name:"phone",value:t.userInfo.phone}}),i("v-uni-text",{staticClass:"iconfont icon-xiangyou"})],1)],1):i("v-uni-navigator",{staticClass:"input",attrs:{url:"/pages/users
|