Browse Source

用户信息

dev
jiazhipeng 7 months ago
parent
commit
049cb53c08
  1. 4
      pages/user/user.vue
  2. 4
      subPackages/user/profile.vue

4
pages/user/user.vue

@ -361,8 +361,8 @@
} }
.headImg { .headImg {
width: 60rpx; width: 120rpx;
height: 60rpx; height: 120rpx;
border-radius: 50%; border-radius: 50%;
} }

4
subPackages/user/profile.vue

@ -8,7 +8,7 @@
style="width: 80rpx;height: 80rpx;border-radius: 50%;"></image> style="width: 80rpx;height: 80rpx;border-radius: 50%;"></image>
</view> </view>
</div> </div>
<navigator :url="'/subPackages/user/changeNickname?nicknane='+nickname" tag="view" class="userinfo-item"> <navigator :url="'/subPackages/user/changeNickname?nickname='+nickname" tag="view" class="userinfo-item">
<span>姓名</span> <span>姓名</span>
<view>{{nickname}}</view> <view>{{nickname}}</view>
</navigator> </navigator>
@ -210,7 +210,7 @@
birthday: this.birthday birthday: this.birthday
}, '/api/user/profile').then(res => { }, '/api/user/profile').then(res => {
console.log(res) console.log(res)
if (res.code == 1) { if (res.code == 1 || res.code == 200) {
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
content: res.msg, content: res.msg,

Loading…
Cancel
Save