me.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!-- pages/me/me.wxml -->
  2. <view class="containerss">
  3. <!-- 用户信息 -->
  4. <view class="user-info">
  5. <!-- <image class="avatar" src="{{userInfo.avatar}}" mode="aspectFill"></image> -->
  6. <view class="avatar">
  7. <image style="width: 100%; height: 100%;border-radius: 50%;" src="{{userInfo.img}}" alt=""/>
  8. <image bindtap="chooseAvatar" class="xiangjiimgs" src="{{xiangjiimg}}" mode=""/>
  9. </view>
  10. <view class="info">
  11. <view style="display: flex; align-items: center;">
  12. <text class="name">{{userInfo.user_name}}</text>
  13. <image bindtap="goToGoodsLists" style="width: 35rpx;height: 35rpx;margin-left: 20rpx;" src="{{xiugaiimg}}" mode=""/>
  14. </view>
  15. <view class="info_view2">
  16. {{xxdata.name}}
  17. </view>
  18. </view>
  19. </view>
  20. <!-- 绑定手机号 -->
  21. <view class="phone-binding">
  22. <text style="margin-right: 20rpx;">绑定手机号:{{userInfo.phone ? displayPhone : '未绑定'}}</text>
  23. <navigator url="/subpackages/changephone/changephone" open-type="navigate" wx:if="{{userInfo.phone}}">更改手机号</navigator>
  24. </view>
  25. <!-- 订单状态 -->
  26. <view class="order-status">
  27. <view class="status-item" wx:for="{{orderStatus}}" wx:key="index">
  28. <view style="display: flex; align-items: center; flex-direction: column;" bindtap="goToGoodsList" data-type="{{ item.type }}">
  29. <view class="circle">
  30. <image style="width: 100%; height: 100%;" src="{{item.url}}" mode=""/>
  31. </view>
  32. <view style="margin-top: 16rpx;">{{item.text}}</view>
  33. </view>
  34. </view>
  35. </view>
  36. <!-- 购买历史 -->
  37. <view class="history">
  38. <view class="title">
  39. <text>购买历史</text>
  40. <navigator url="/subpackages/purchasehistory/purchasehistory" open-type="navigate">查看更多</navigator>
  41. </view>
  42. <view class="items">
  43. <block wx:for="{{historyItems}}" wx:key="id">
  44. <view class="item">
  45. <!-- <image mode="aspectFill"></image> -->
  46. <view class="thumbnail">
  47. <image style="width: 100%; height: 100%;" src="{{item.cover}}" mode=""/>
  48. </view>
  49. <view class="details">
  50. <view class="name">{{item.name}}</view>
  51. <view class="date">{{item.createdAt}}</view>
  52. </view>
  53. <view class="xiazai_img">
  54. <image class="search-icon" src="{{souchangs}}" />
  55. </view>
  56. </view>
  57. </block>
  58. </view>
  59. </view>
  60. <!-- 用户注销 -->
  61. <button class="logout-btn" size="default" bindtap="handleLogout">用户注销</button>
  62. <!-- <custom-tabbar role="{{role}}" selected="{{2}}" /> -->
  63. </view>