clientInfo.wxml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <view class="content">
  2. <view class="border-radius padding user-info">
  3. <view class="top flex-justify-space-between">
  4. <text style="font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;">基本信息</text>
  5. <navigator url="/pages/clientInfoEdit/clientInfoEdit?userId={{userId}}" hover-class="none">
  6. <view class="edit-btn flex-center">编辑信息</view>
  7. </navigator>
  8. </view>
  9. <view class="user-avatar flex-align-center">
  10. <image src="{{ userInfo.avatar_url }}"></image>
  11. <text style="font-size: 28rpx;">{{ userInfo.nickname }}</text>
  12. <text class="flex1"></text>
  13. <text style="font-size: 28rpx;color: #999;">{{ userInfo.update_time }}</text>
  14. </view>
  15. <view class="user-content flex-column">
  16. <text>姓名:{{ userInfo.realname }}</text>
  17. <text>性别:{{ userInfo.sex == 1 ? "男" : "女" }}</text>
  18. <text>生日:{{ userInfo.birthday || '-' }}</text>
  19. <text>手机号码:{{ userInfo.mobile || '-' }}</text>
  20. <text>所在地区:{{ userInfo.city || '-' }}</text>
  21. <view class="tags-list flex-align-center">
  22. <text>客户标签:</text>
  23. <block wx:if="{{ userInfo.tags && userInfo.tags.length > 0 }}">
  24. <view class="item" wx:for="{{ userInfo.tags }}" wx:key="index">
  25. <text>{{ item }}</text>
  26. </view>
  27. </block>
  28. <block wx:else>
  29. <text>-</text>
  30. </block>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="border-radius padding buy-info">
  35. <text style="font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;">会员信息</text>
  36. <view class="buy-content flex-column" wx:if="{{ userInfo.card_list && userInfo.card_list.length > 0 }}">
  37. <text class="ellipsis {{ index == 0 ? 'active' : '' }}" wx:for="{{ userInfo.card_list }}" wx:key="index">{{ item.active_time }}-{{ item.expire_time }}{{ item.card_name }}</text>
  38. <view class="buy-active flex-center">生效中</view>
  39. </view>
  40. <view class="no-more-data" style="padding-bottom: 28rpx;" wx:else>暂无数据~</view>
  41. <!-- <view class="btn-more flex-center" style="color: #666;">查看更多记录</view> -->
  42. </view>
  43. <view class="border-radius padding">
  44. <calendar
  45. id="calendar"
  46. config="{{calendarConfig}}"
  47. bind:onSwipe="onSwipe"
  48. bind:takeoverTap="takeoverTap"
  49. bind:afterCalendarRender="afterCalendarRender"
  50. />
  51. </view>
  52. <view class="border-radius padding list">
  53. <view class="item-top flex-align-center">
  54. <text class="flex1">反馈记录</text>
  55. <!-- <view class="btn flex-center">订单</view> -->
  56. </view>
  57. <view class="item flex-column" wx:for="{{ list }}" wx:for-index="idx" wx:key="index">
  58. <view class="user-info flex-align-center">
  59. <image src="{{ item.avatar_url }}"></image>
  60. <view class="info flex-column flex1">
  61. <text style="font-size: 28rpx;margin-bottom: 6rpx;">{{ item.nickname }}</text>
  62. <text style="font-size: 20rpx;color: #999;">{{ item.create_time }}</text>
  63. </view>
  64. <!-- <view class="more flex-align-center flex-justify-space-between" bindtap="onEditItem">
  65. <text></text>
  66. <text></text>
  67. <text></text>
  68. </view> -->
  69. <!-- <view class="more">···</view> -->
  70. </view>
  71. <text style="font-size: 28rpx;color: #666;">{{ item.content }}</text>
  72. <view class="box">
  73. <view class="item-media" wx:for="{{ item.media_list }}" wx:key="index">
  74. <block wx:if="{{ item.type == 'video' }}">
  75. <!-- <video src="{{ item.url }}"></video> -->
  76. <!-- <text>视频播放</text> -->
  77. <view class="flex-center" style="font-size: 28rpx;width: 100%;height: 100%;background-color: #ccc;" data-idx="{{ idx }}" data-index="{{index}}" bindtap="previewMedia">
  78. <!-- 这个是视频 -->
  79. <image class="icon-01" src="/images/icon_01.png"></image>
  80. <!-- <text style="position: absolute;">这个是视频</text> -->
  81. <image class="img-content" data-index="{{index}}" src="{{ item.thumb }}" alt=""></image>
  82. </view>
  83. </block>
  84. <block wx:if="{{ item.type == 'image' }}">
  85. <image class="img-content" data-idx="{{ idx }}" data-index="{{index}}" src="{{ item.url }}" alt="" bindtap="previewMedia"></image>
  86. </block>
  87. </view>
  88. <!-- <image src="{{item}}" data-index="{{item}}" bindtap="previewImage" wx:for="{{urls}}" wx:key="index"></image> -->
  89. </view>
  90. </view>
  91. </view>
  92. <view class="no-more-data" style="display: {{list.length > 0 && list.length >= total ? 'block' : 'none'}};">已经到底啦~~</view>
  93. </view>