usercenter.wxml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <view class="userinfo">
  2. <button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
  3. <block wx:else>
  4. <image style="/* 居中 */ margin: 0 auto; display: flex; justify-content: center; overflow: hidden; width: 161rpx; height: 161rpx; border-radius: 50%; " bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
  5. <text class="userinfo-nickname" style="/* 居中 */ margin: 0 auto; display: flex; justify-content: center; overflow: hidden; width: 161rpx; height: 161rpx; ; ">{{userInfo.nickName}}</text>
  6. </block>
  7. </view>
  8. <view>
  9. <view class="aui-take-content">
  10. <view class="aui-take-content-col">
  11. <view class="aui-img-text">
  12. <view class='h2'>姓名:{{dinfo.name}}</view>
  13. </view>
  14. <view class="aui-img-text">
  15. <view class='h2'>手机号:{{dinfo.tel}}</view>
  16. </view>
  17. </view>
  18. </view>
  19. <navigator url="../../pages/uinfo/uinfo">
  20. <view class="aui-icon-box" >
  21. <view class="aui-flex-box" >
  22. <view class="aui-flex-box-hd" >
  23. <image src="../../images/sg_normal.png" alt=""/>
  24. </view>
  25. <view class="aui-flex-box-bd">个人资料
  26. </view>
  27. <view class="aui-flex-box-fr"></view>
  28. </view>
  29. <view class="divHeight"></view>
  30. </view>
  31. </navigator>
  32. <navigator url="../../pages/order-list/index">
  33. <view class="aui-icon-box" >
  34. <view class="aui-flex-box" >
  35. <view class="aui-flex-box-hd" >
  36. <image src="../../images/sg_normal.png" alt=""/>
  37. </view>
  38. <view class="aui-flex-box-bd">我的订单
  39. </view>
  40. <view class="aui-flex-box-fr"></view>
  41. </view>
  42. <view class="divHeight"></view>
  43. </view>
  44. </navigator>
  45. <view class="aui-button" style='margin-top:140rpx;' bindtap='loginout'>
  46. <button class="aui-btn-out">退出</button>
  47. </view>
  48. </view>