proposalList.wxml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <view class='tab'>
  2. <view class='top'>
  3. <view class="{{index==0?'select':''}}" catchtap='tab' data-index='0'>全部</view>
  4. <view class="{{index==1?'select':''}}" catchtap='tab' data-index='1'>已回复</view>
  5. <view class="{{index==2?'select':''}}" catchtap='tab' data-index='2'>未回复</view>
  6. </view>
  7. </view>
  8. <swiper style="height: 100%;" current='{{current_index}}' bindchange='swiper'>
  9. <!-- 办事指南模块 -->
  10. <swiper-item>
  11. <scroll-view scroll-y="{{true}}" style="height: 100%;">
  12. <block wx:for='{{allMsg}}' wx:key='{{index}}'>
  13. <view class="list" bindtap="detail" data-id="{{item.id}}">
  14. <view class="list-left">
  15. <view>主题:{{item.title}}</view>
  16. <view>{{item.userName}}</view>
  17. <view>{{item.create_date}}</view>
  18. </view>
  19. <view class="list-right">
  20. <view wx:if='{{item.newreply}}' style="font-size:28rpx;color:#6282f4">已回复</view>
  21. <view wx:if='{{!item.newreply}}' style="font-size:28rpx;color:red;">未回复</view>
  22. </view>
  23. </view>
  24. </block>
  25. <view wx:if='{{allMsg.length==0}}'>暂无数据</view>
  26. </scroll-view>
  27. </swiper-item>
  28. <swiper-item>
  29. <scroll-view scroll-y="{{true}}" style="height: 100%;">
  30. <block wx:for='{{yesMsg}}' wx:key='{{index}}'>
  31. <view class="list" wx:if='{{item.newreply}}' bindtap="detail" data-id="{{item.id}}">
  32. <view class="list-left">
  33. <view>主题:{{item.title}}</view>
  34. <view>{{item.userName}}</view>
  35. <view>{{item.create_date}}</view>
  36. </view>
  37. <!-- <view class="list-right">
  38. <view>投诉</view>
  39. </view> -->
  40. </view>
  41. </block>
  42. <view wx:if='{{!yesMsg}}' class="nodata">
  43. <text>暂无数据</text>
  44. </view>
  45. </scroll-view>
  46. </swiper-item>
  47. <swiper-item>
  48. <scroll-view scroll-y="{{true}}" style="height: 100%;">
  49. <block wx:for='{{noMsg}}' wx:key='{{index}}'>
  50. <view class="list" wx:if='{{!item.newreply}}' bindtap="detail" data-id="{{item.id}}">
  51. <view class="list-left">
  52. <view>主题:{{item.title}}</view>
  53. <view>{{item.userName}}</view>
  54. <view>{{item.create_date}}</view>
  55. </view>
  56. <!-- <view class="list-right">
  57. <view>投诉</view>
  58. </view> -->
  59. </view>
  60. </block>
  61. <view wx:if='{{!noMsg}}' class="nodata">
  62. <text>暂无数据</text>
  63. </view>
  64. </scroll-view>
  65. </swiper-item>
  66. </swiper>