person.wxml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. <button open-type="getPhoneNumber" bindgetphonenumber="getmobile" class="login-btn" >获取手机号</button>
  11. </view>
  12. <view class="head-img">
  13. <image class="" src="{{userInfo.avatar}}">
  14. </image>
  15. </view>
  16. </view>
  17. <view wx:else class="user-login">
  18. <view class="person-info">
  19. <view class="user-name f18 c-202020">
  20. <button open-type="getUserInfo" bindgetuserinfo="getInfo" class="login-btn"
  21. style="height: 100px;width: 200px;">请点击登录</button>
  22. <image class="next" src="../../images/icons/next.png">
  23. </image>
  24. </view>
  25. </view>
  26. <view class="head-img">
  27. <image class="defult-user" src="../../images/icons/defult-user.png">
  28. </image>
  29. </view>
  30. </view>
  31. <view class="order" bindtap = "gotoOrder">
  32. <image class="icons" src="../../images/icons/order.png">
  33. </image>
  34. <view class="order-text">我的订单
  35. </view>
  36. <image class="next-gray" src="../../images/icons/next-gray.png">
  37. </image>
  38. </view>
  39. <view class="assess" bindtap = "gotoComment">
  40. <image class="icons" src="../../images/icons/assess.png"></image>
  41. <view class="assess-text">我的点评
  42. </view>
  43. <image class="next-gray" src="../../images/icons/next-gray.png">
  44. </image>
  45. </view>
  46. </view>