Browse Source

用户信息

develop
liwei 3 years ago
parent
commit
fd928b29e8
2 changed files with 8 additions and 4 deletions
  1. +6
    -2
      pages/basicInformation/basicInformation.js
  2. +2
    -2
      pages/basicInformation/basicInformation.wxml

+ 6
- 2
pages/basicInformation/basicInformation.js View File

@ -1,5 +1,6 @@
Page({
data: {
userInfo:{},
statusBarHeight: 44, // 导航高度
modalY: 0, // 楼栋选择top值
addressList:[
@ -99,7 +100,7 @@ Page({
} else {
statusBarHeight = statusBarHeight;
}
this.setData({
_this.setData({
statusBarHeight
});
// 获取用户授权信息
@ -110,7 +111,10 @@ Page({
// 必须是在用户已经授权的情况下调用
wx.getUserInfo({
success: function (res) {
// console.log(res)
console.log(res)
// _this.setData({
// userInfo
// })
}
})
} else {


+ 2
- 2
pages/basicInformation/basicInformation.wxml View File

@ -7,8 +7,8 @@
<view class="content-details-wrap">
<!-- 问卷列表 -->
<view class="user-details">
<image class="user-logo" mode="物业logo" src="http://8.140.133.55:8096/public/uploadfile/logo.png"></image>
<view class="user-name">用户昵称</view>
<image class="user-logo" mode="物业logo" src="{{userInfo.avatarUrl}}"></image>
<view class="user-name">{{userInfo.nickName}}</view>
</view>
<view class="content-details-content-wrap">
<!-- 地址信息等级 -->


Loading…
Cancel
Save