baoxiuList.wxml 2.6 KB

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