tousujianyiList.wxml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <view class="container">
  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.title}}</view>
  12. <view class="notice-info">
  13. <text>{{item.contact}}/{{item.phone}}</text>
  14. <text>{{item.date}}</text>
  15. </view>
  16. </view>
  17. <!-- 预览图按钮,仅当有附件时显示 -->
  18. <view class="preview" wx:if="{{item.hasAttachment}}" catchtap="previewImage" data-id="{{item.id}}">
  19. <image class="preview-icon" src="/static_file/yl.png"></image>
  20. <text class="preview-text">预览图</text>
  21. </view>
  22. <!-- 已回复标识 -->
  23. <image wx:if="{{item.isReplied}}" class="replied-stamp" src="/static_file/spSuccess.png"></image>
  24. </view>
  25. </block>
  26. </scroll-view>
  27. <!-- 添加按钮 -->
  28. <view class="add-button" bindtap="goToForm">
  29. <image src="/static_file/add.png" mode="aspectFit"></image>
  30. </view>
  31. <!-- 图片列表 -->
  32. <view class="image-container">
  33. <block wx:for="{{imageList}}" wx:key="index">
  34. <image
  35. src="{{item}}"
  36. mode="aspectFill"
  37. bindtap="previewImage"
  38. data-index="{{index}}"
  39. class="preview-image"
  40. ></image>
  41. </block>
  42. </view>
  43. <!-- 自定义图片预览组件 -->
  44. <view class="custom-preview-container" wx:if="{{showCustomPreview}}" bindtap="closePreview">
  45. <view class="custom-preview-content" catchtap="preventBubble">
  46. <image
  47. class="preview-image"
  48. src="{{currentPreviewImages[currentPreviewIndex]}}"
  49. mode="aspectFit"
  50. ></image>
  51. <view class="preview-controls">
  52. <view class="preview-arrow left-arrow" catchtap="changePreviewImage" data-direction="prev">
  53. <text class="arrow-text">《</text>
  54. </view>
  55. <view class="preview-arrow right-arrow" catchtap="changePreviewImage" data-direction="next">
  56. <text class="arrow-text">》</text>
  57. </view>
  58. </view>
  59. <view class="preview-counter">
  60. {{currentPreviewIndex + 1}}/{{currentPreviewImages.length}}
  61. </view>
  62. <view class="close-button" catchtap="closePreview">×</view>
  63. </view>
  64. </view>
  65. </view>