person.wxml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!--pages/person/person.wxml-->
  2. <view class="container">
  3. <view class="person card" wx:if="{{hasUserInfo}}" bindtap = "gotoPersonInfo">
  4. <view class="person-info">
  5. <view class="user-name f18 c-202020">{{userInfo.name}}
  6. <image class="next" src="../../images/icons/next.png">
  7. </image>
  8. </view>
  9. <view class="tel c-707070 fw300">{{userInfo.mobile}}</view>
  10. </view>
  11. <view class="head-img">
  12. <image class="" src="{{userInfo.avatar}}">
  13. </image>
  14. </view>
  15. </view>
  16. <view wx:else class="user-login">
  17. <view class="person-info">
  18. <view class="user-name f18 c-202020">
  19. <button open-type="getUserInfo" bindgetuserinfo="getInfo" class="login-btn"
  20. style="height: 100px;width: 200px;">请点击登录</button>
  21. <image class="next" src="../../images/icons/next.png">
  22. </image>
  23. </view>
  24. </view>
  25. <view class="head-img">
  26. <image class="defult-user" src="../../images/icons/defult-user.png">
  27. </image>
  28. </view>
  29. </view>
  30. <view class="order">
  31. <image class="icons" src="../../images/icons/order.png">
  32. </image>
  33. <view class="order-text">我的订单
  34. </view>
  35. <image class="next-gray" src="../../images/icons/next-gray.png">
  36. </image>
  37. </view>
  38. <view class="assess" bindtap = "gotoComment">
  39. <image class="icons" src="../../images/icons/assess.png"></image>
  40. <view class="assess-text">我的点评
  41. </view>
  42. <image class="next-gray" src="../../images/icons/next-gray.png">
  43. </image>
  44. </view>
  45. </view>