<view>
  <!-- <lip-sync /> -->
  <auth bindlogin="reloadData" />

  <view class="storeContent">
    <view class="tab-header">
      <view class="un-start {{fetcherData.state == 102?'active':''}}" data-type="true" bindtap="setActive">
        <text>待开始({{listNmb.NotStart}})</text>
      </view>
      <view class="has-start {{fetcherData.state !== 102?'active':''}}" data-type="false" bindtap="setActive">
        <text>已开始({{listNmb.Start}})</text>
      </view>
    </view>
    <view class="search-container">
      <view class="storeSearch">
        <image src="../../static/images/icon/search@2x.png"></image>
        <input wx:if="{{fetcherData.type==31}}" maxlength="30" bindconfirm="search" bindinput="inputChange" type="text" placeholder="请输入VR场景名称" placeholder-class="placeholderStyle" />
        <input wx:else bindconfirm="search"  maxlength="30" bindinput="inputChange" type="text" placeholder="请输入房间名称" placeholder-class="placeholderStyle" />
      </view>
      <view class="searchBtn" bindtap="search">搜索</view>
    </view>


  </view>
      <image class="addRoom" src="../../static/images/add.png"  wx:if="{{canShow}}" bindtap="addRoom"></image>
      <view class="result" wx:if="{{roomList.length > 0}}">

    <view>
      <view  class="house-list">
        <!--<view class="list-item {{item.businessId == activeId?'list-item-touch-active':''}}" wx:for="{{roomList}}" wx:for-item="item" wx:for-index="index" wx:key="item.businessId" bindtouchstart="touchstart" bindtouchmove="touchmove" data-id="{{item.businessId}}">
              <partyItem class="parent" room="{{item}}" index="{{index}}" bindgotoWV="gotoWV"></partyItem>
              <view catchtap="deleteItem" class="item-delete">删除</view>
        </view>
        <view style="{{'width:'+parentW+'px;overflow-x:hidden;height:'+parentH+'px;overflow-y:hidden;'}}">
          <movable-area class="moveArea" wx:for="{{roomList}}" wx:key bindtap="toPosiDetl" data-id="{{item.work.id}}">
            <movable-view class="moveView" x="{{item.x}}" direction="horizontal" bindtouchend="touchEnd" bindtouchstart="touchStart" animation="{{true}}" data-id="{{item.id}}">
              <partyItem class="parent" room="{{item}}" index="{{index}}" bindgotoWV="gotoWV"></partyItem>
              <view class="delete" catchtap="delete" data-id="{{item.work.id}}">
                <text>删除</text>
              </view>
            </movable-view>
          </movable-area>
        </view> <view class='slider-handle'>{{todoItem.text}}</view>-->
        <swider-left class="swider-item moveView " wx:for="{{roomList}}" wx:for-item="item" wx:key="item.businessId"
        open="{{item.isOpen}}"
        butText="{{fetcherData.state == 102?'删除房间':'关闭房间'}}"
        data-id="{{item.businessId}}"
        bind:sliderLeftStart="handleSliderLeftStart"
        bind:change="handleChange"
        bind:delete="handleDelete">
        <partyItem class="parent" room="{{item}}" index="{{index}}" bindgotoWV="gotoWV"></partyItem>
      </swider-left>
      </view>
    </view>
  </view>

  <view class="unbrand" wx:else>
    <image src="/static/images/img_nodata@2x.png"></image>
    <view class="text">暂无相关数据</view>
  </view>
</view>