diff --git a/pages/index/mine.vue b/pages/index/mine.vue index b920252..f921a82 100644 --- a/pages/index/mine.vue +++ b/pages/index/mine.vue @@ -17,7 +17,7 @@ - ID:{{userinfo.id}} + ID:{{userinfo.sn}} @@ -80,7 +80,7 @@ - + {{$t('mine.kfphone')}} diff --git a/pages/mine/changinfo.vue b/pages/mine/changinfo.vue index 5cde56e..ea84d46 100644 --- a/pages/mine/changinfo.vue +++ b/pages/mine/changinfo.vue @@ -175,7 +175,8 @@ icon: 'none' }); }else{ - that.userinfo.avatar = path.data.path + that.userinfo.avatar = path.data.image_url + that.userinfo.avatar_url = path.data.path console.log(that.form) } } @@ -199,11 +200,13 @@ uni.navigateBack({}) }, bcFn(){ + console.log(this.userinfo) request({ url:'user/save', method:'POST', data:{ avatar:this.userinfo.avatar, + avatar_url:this.userinfo.avatar_url, sex:this.userinfo.sex, name:this.userinfo.name, mobile:this.userinfo.mobile,