baoxiuList.wxml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <view class="bxcontainer">
  2. <!-- 返回按钮 -->
  3. <view class="custom-nav">
  4. <view bindtap="goBack">
  5. <image src="/static_file/backcion.png" mode="aspectFit" class="back-icon"></image>
  6. </view>
  7. <view class="nav-title">我的报修</view>
  8. </view>
  9. <scroll-view scroll-y="true" class="notice-list">
  10. <block wx:for="{{noticeList}}" wx:key="id">
  11. <view class="notice-item" bindtap="goToDetail" data-id="{{item.id}}">
  12. <view class="notice-content">
  13. <view class="notice-title">{{item.faultdescription}}</view>
  14. <view class="notice-address">{{item.address}}</view>
  15. <view class="notice-info">
  16. <text>{{item.contact}}/{{item.contactnumber}}</text>
  17. <text>{{item.createdate}}</text>
  18. </view>
  19. </view>
  20. <!-- 预览图按钮,仅当有附件时显示 -->
  21. <view class="preview" wx:if="{{item.hasAttachment}}" catchtap="previewImage" data-id="{{item.id}}">
  22. <image class="preview-icon" src="/static_file/yl.png"></image>
  23. <text class="preview-text">预览图</text>
  24. </view>
  25. <!-- 已回复标识 -->
  26. <image wx:if="{{item.isReplied}}" class="replied-stamp" src="/static_file/chuli.png"></image>
  27. </view>
  28. </block>
  29. </scroll-view>
  30. <!-- 添加按钮 -->
  31. <view class="add-button" bindtap="goToForm">
  32. <image src="/static_file/add.png" mode="aspectFit"></image>
  33. </view>
  34. <!-- 图片列表 -->
  35. <view class="image-container">
  36. <block wx:for="{{imageList}}" wx:key="index">
  37. <image
  38. src="{{item}}"
  39. mode="aspectFill"
  40. bindtap="previewImage"
  41. data-index="{{index}}"
  42. class="preview-image"
  43. ></image>
  44. </block>
  45. </view>
  46. <!-- 自定义图片预览组件 -->
  47. <view class="custom-preview-container" wx:if="{{showCustomPreview}}" bindtap="closePreview">
  48. <view class="custom-preview-content" catchtap="preventBubble">
  49. <image
  50. class="preview-image"
  51. src="{{currentPreviewImages[currentPreviewIndex]}}"
  52. mode="aspectFit"
  53. ></image>
  54. <view class="preview-controls">
  55. <view class="preview-arrow left-arrow" catchtap="changePreviewImage" data-direction="prev">
  56. <text class="arrow-text">《</text>
  57. </view>
  58. <view class="preview-arrow right-arrow" catchtap="changePreviewImage" data-direction="next">
  59. <text class="arrow-text">》</text>
  60. </view>
  61. </view>
  62. <view class="preview-counter">
  63. {{currentPreviewIndex + 1}}/{{currentPreviewImages.length}}
  64. </view>
  65. <view class="close-button" catchtap="closePreview">×</view>
  66. </view>
  67. </view>
  68. </view>