<!--nova-tourism/components/collect/index.wxml-->
<nav type="title" background-color="#ffffff" frontColor="#000000" title="云上望仙" />
<view class="all">
  <image class="img2" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20250419/l1fsbm101248703.jpg"></image>
  <view class="tab-bar">
    <view style="margin-left: 66rpx;" class="tab-item {{currentTab == 0? 'active' : ''}}" bindtap="switchTab" data-index="0">
      云上风物
    </view>
    <view style="margin-left: 44rpx;" class="tab-item {{currentTab == 1? 'active' : ''}}" bindtap="switchTab" data-index="1">
      我的收藏
    </view>
  </view>
  <view wx:if="{{currentTab == 0}}">
    <view class="box">
      <view class="taps">
        <block wx:for="{{taps}}" wx:key="index">
          <view class="tap" data-top="{{item.top}}" bind:tap="anchors">
            <image src="{{item.url}}"></image>
            <view class="tap-tex">{{item.tex}}</view>
          </view>
        </block>
      </view>
      <view class="box-tex">热门推荐</view>
      <view class="picturebox">
        <swiper autoplay="{{true}}" indicator-dots='{{true}}' indicator-color='#D9D9D9' indicator-active-color='#F8DA7F' interval="{{5000}}" circular duration="{{500}}" class="img">
          <block wx:for="{{banner}}" wx:key="index" wx:for-item="ban">
            <swiper-item class="img">
              <image src="{{ban.image}}" data-url="{{ban.url}}" bind:tap="tourl" mode="aspectFill"></image>
            </swiper-item>
          </block>
        </swiper>
      </view>

      <view id="gift">
        <view class="wangbox">
          <view class="wang">望仙礼遇</view>
          <view class="wang2">望日w望月w来望仙w</view>
        </view>
        <view class="picturebox2">
          <swiper autoplay="{{true}}" indicator-dots='{{true}}' indicator-color='#D9D9D9' indicator-active-color='#F8DA7F' interval="{{5000}}" circular duration="{{500}}" class="img">
            <block wx:for="{{giftBanner}}" wx:key="index" wx:for-item="gifban">
              <swiper-item class="img" style="background: rgba(244, 242, 243);">
                <image data-url="/nova-tourism/pages/collect/collect-detail/index?gid={{gifban.objectId}}" bindtap="tourl" style="border-radius: 10rpx;" src="{{gifban.image||'https://file-cloud.fmode.cn/EbxZUK5lBI/20250411/frvr1u080411965.jpg'}}" mode="aspectFit"></image>
              </swiper-item>
            </block>
          </swiper>
        </view>
        <view class="wang-cardbox">
          <block wx:for="{{gift}}" wx:key="index">
            <view class="wang-card" data-url="/nova-tourism/pages/collect/collect-detail/index?gid={{item.objectId}}" bindtap="tourl">
            <view style="background: rgba(244, 242, 243);;">
              <image src="{{item.image||'https://img95.699pic.com/photo/60072/5330.jpg_wh860.jpg'}}" mode="aspectFit"></image>
            </view>
              <view class="wang-catex">{{item.name}}</view>
              <view class="wang-numbox">
                <view class="wang-num">
                  <view class="wang-num1">￥</view>
                  <view class="wang-num2">{{item.price||0}}</view>
                </view>
                <view class="wang-submit">购买</view>
              </view>
            </view>
          </block>
        </view>
        <view class="more" data-url="/nova-tourism/pages/collect/good-list/index" bind:tap="tourl">
          <view class="more-tex">查看更多 ></view>
        </view>
      </view>
      <view id="makeup">
        <view class="wangbox">
          <view class="wang">妆造旅拍</view>
        </view>
      </view>
      <view id="vegetable"></view>
      <view id="serve"></view>
      <view id="school"></view>
    </view>
  </view>
  <view wx:if="{{currentTab == 1}}">
    <!-- 卡片 -->
    <view class="Legendary-Information" wx:if="{{storeList.length!=0}}">
      <block wx:for="{{storeList}}" wx:key="index" wx:if="{{item.isCollect&&item.homestayStore.isShow}}">
        <view class="cardbox">
          <image class="pic" src="{{item.homestayStore.cover}}" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl"></image>
          <view class="textobx">
            <view class="title" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
              <view class="til">{{item.homestayStore.storeName}}</view>
              <image class="collect" wx:if="{{!item.isCollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/2gcp1e030048570.png?imageView2/1/w/200/h/200"></image>
              <image class="collect" wx:if="{{item.isCollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/8mp9uj030058190.png?imageView2/1/w/200/h/200"></image>
            </view>

            <view class="miaosu" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
              {{item.homestayStore.desc}}
            </view>

            <view class="bottom">
              <view class="qian" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
                ￥
                <view class="numbox">
                  {{item.homestayStore.perCapita}}
                </view>
              </view>
              <view class="soucang" wx:if="{{!item.isCollect}}" data-id="{{item.homestayStore.objectId}}" bindtap="submit">收藏</view>
              <view class="soucang" wx:if="{{item.isCollect}}" data-id="{{item.homestayStore.objectId}}" bindtap="cancle">取消</view>
            </view>
          </view>
        </view>
      </block>
    </view>
    <van-empty wx:if="{{storeList.length==0}}" image="network" description="暂无收藏" />
  </view>

</view>
<view style="height: 200rpx;"></view>