topic.wxml 865 B

12345678910111213141516
  1. <view class="container">
  2. <scroll-view class="topic-list" scroll-y="true" scroll-top="{{scrollTop}}">
  3. <navigator class="item" wx:for="{{topicList}}" wx:key="{{item.id}}" url="../topicDetail/topicDetail?id={{item.id}}">
  4. <image class="img" src="{{item.scene_pic_url}}"></image>
  5. <view class="info">
  6. <text class="title">{{item.title}}</text>
  7. <text class="desc">{{item.subtitle}}</text>
  8. <text class="price">{{item.price_info}}元起</text>
  9. </view>
  10. </navigator>
  11. <view class="page" wx:if="{{showPage}}">
  12. <view class="prev {{ page <= 1 ? 'disabled' : ''}}" bindtap="prevPage">上一页</view>
  13. <view class="next {{ (count / size) < page +1 ? 'disabled' : ''}}" bindtap="nextPage">下一页</view>
  14. </view>
  15. </scroll-view>
  16. </view>