index.wxml 1.1 KB

123456789101112131415161718192021
  1. <!--index.wxml-->
  2. <view class="wrapper">
  3. <t-sticky offset-top="{{0}}">
  4. <view class="search-container">
  5. <t-search class="search" model:value="{{searchValue}}" label="1" bind:change='handleSerach' placeholder="搜索带看" shape='round' />
  6. </view>
  7. </t-sticky>
  8. <view class="container">
  9. <view wx:for="{{searchValue.length > 0 ? searchDataList : dataList}}" wx:key="roomId" wx:for-index="idx" wx:for-item="item">
  10. <card cardId="{{item.roomId}}" name="{{item.roomTitle}}" cover="{{item.roomCoverUrl}}" status="{{item.hostStatus }}" lastTime="{{item.lastLookTime}}" bindtoRoom="handleToRoom"></card>
  11. </view>
  12. <view wx:if="{{ (searchValue.length > 0 && searchDataList.length === 0) || (dataList.length === 0 && isLoad )}}" class="search-no-data">
  13. <image class="no-data" src="../../static/images/img_noshop@3x.png"></image>
  14. <text class="txt">暂无相关带看</text>
  15. </view>
  16. </view>
  17. <t-back-top class="backtoTop" theme="round" text="顶部" bind:to-top="onToTop" fixed="{{true}}"></t-back-top>
  18. <t-toast id="t-toast" />
  19. </view>