index.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!--pages/search/index.wxml-->
  2. <view>
  3. <van-search shape="round" value="{{ spaceName }}" bind:search="spaceSearch" placeholder="请输入搜索关键词" />
  4. <van-tabs type="card" color="#5575ff" active="{{ activeTab }}" bind:change="tabChange">
  5. <van-tab title="关注列表">
  6. <!-- {{imgShow?'':'del_box'}} -->
  7. <view class="cardlist">
  8. <block wx:for="{{listContent}}" wx:key="index">
  9. <spacecard bind:listClick="listClick" cardDate="{{item}}" bind:starClick="starClick" canvashidden="{{activeTab==0}}"></spacecard>
  10. <van-divider/>
  11. </block>
  12. </view>
  13. </van-tab>
  14. <van-tab title="空间列表">
  15. <view class="cardlist" >
  16. <block wx:for="{{alllistContent}}" wx:key="index">
  17. <spacecard bind:listClick="listClick" cardDate="{{item}}" bind:starClick="starClick" canvashidden="{{activeTab==1}}"></spacecard>
  18. <van-divider/>
  19. <!-- class="{{imgShow?'':'del_box'}}" -->
  20. </block>
  21. </view>
  22. </van-tab>
  23. </van-tabs>
  24. <view class="nolist" wx:if="{{activeTab===0&&noSpace}}">
  25. <image src="../../static/images/nofollow.png"></image>
  26. <text>暂无关注</text>
  27. <text>从空间列表选择关注吧!</text>
  28. </view>
  29. <view style="text-align: center;margin: 10px;">
  30. <view wx:if="{{loading}}">加载中...</view>
  31. <view wx:if="{{noMore}}">没有更多了</view>
  32. <view wx:if="{{loadingFailed}}">数据加载失败,请重试</view>
  33. </view>
  34. <van-toast id="van-toast" />
  35. </view>