123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <view class='tab'>
- <view class='top'>
- <view class="{{index==0?'select':''}}" catchtap='tab' data-index='0'>全部</view>
- <view class="{{index==1?'select':''}}" catchtap='tab' data-index='1'>已回复</view>
- <view class="{{index==2?'select':''}}" catchtap='tab' data-index='2'>未回复</view>
- </view>
- </view>
- <swiper style="height: 100%;" current='{{current_index}}' bindchange='swiper'>
- <!-- 办事指南模块 -->
- <swiper-item>
- <scroll-view scroll-y="{{true}}" style="height: 100%;">
- <block wx:for='{{allMsg}}' wx:key='{{index}}'>
- <view class="list" bindtap="detail" data-id="{{item.id}}">
- <view class="list-left">
- <view>主题:{{item.title}}</view>
- <view>{{item.userName}}</view>
- <view>{{item.create_date}}</view>
- </view>
- <view class="list-right">
- <view wx:if='{{item.newreply}}' style="font-size:28rpx;color:#6282f4">已回复</view>
- <view wx:if='{{!item.newreply}}' style="font-size:28rpx;color:red;">未回复</view>
- </view>
- </view>
- </block>
- <view wx:if='{{allMsg.length==0}}'>暂无数据</view>
- </scroll-view>
- </swiper-item>
- <swiper-item>
- <scroll-view scroll-y="{{true}}" style="height: 100%;">
- <block wx:for='{{yesMsg}}' wx:key='{{index}}'>
- <view class="list" wx:if='{{item.newreply}}' bindtap="detail" data-id="{{item.id}}">
- <view class="list-left">
- <view>主题:{{item.title}}</view>
- <view>{{item.userName}}</view>
- <view>{{item.create_date}}</view>
- </view>
- <!-- <view class="list-right">
- <view>投诉</view>
- </view> -->
- </view>
- </block>
- <view wx:if='{{!yesMsg}}' class="nodata">
- <text>暂无数据</text>
- </view>
- </scroll-view>
- </swiper-item>
- <swiper-item>
- <scroll-view scroll-y="{{true}}" style="height: 100%;">
- <block wx:for='{{noMsg}}' wx:key='{{index}}'>
- <view class="list" wx:if='{{!item.newreply}}' bindtap="detail" data-id="{{item.id}}">
- <view class="list-left">
- <view>主题:{{item.title}}</view>
- <view>{{item.userName}}</view>
- <view>{{item.create_date}}</view>
- </view>
- <!-- <view class="list-right">
- <view>投诉</view>
- </view> -->
- </view>
- </block>
- <view wx:if='{{!noMsg}}' class="nodata">
- <text>暂无数据</text>
- </view>
- </scroll-view>
- </swiper-item>
- </swiper>
|