index.wxml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!--nova-tourism/components/collect/index.wxml-->
  2. <nav type="title" background-color="#ffffff" frontColor="#000000" title="云上望仙" />
  3. <view class="all">
  4. <image class="img2" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/jc17lo114657420.jpg"></image>
  5. <view class="tab-bar">
  6. <view style="margin-left: 66rpx;" class="tab-item {{currentTab == 0? 'active' : ''}}" bindtap="switchTab" data-index="0">
  7. 云上风物
  8. </view>
  9. <view style="margin-left: 44rpx;" class="tab-item {{currentTab == 1? 'active' : ''}}" bindtap="switchTab" data-index="1">
  10. 我的收藏
  11. </view>
  12. </view>
  13. <view wx:if="{{currentTab == 0}}">
  14. <view class="box">
  15. <view class="taps">
  16. <block wx:for="{{taps}}" wx:key="index">
  17. <view class="tap" data-top="{{item.top}}" bind:tap="anchors">
  18. <image src="{{item.url}}"></image>
  19. <view class="tap-tex">{{item.tex}}</view>
  20. </view>
  21. </block>
  22. </view>
  23. <view class="box-tex">热门推荐</view>
  24. <view class="picturebox">
  25. <swiper autoplay="{{true}}" indicator-dots='{{true}}' indicator-color='#D9D9D9' indicator-active-color='#F8DA7F' interval="{{5000}}" circular duration="{{500}}" class="img">
  26. <block wx:for="{{banner}}" wx:key="index" wx:for-item="ban">
  27. <swiper-item class="img">
  28. <image src="{{ban.image}}" data-url="{{ban.url}}" bind:tap="tourl" mode="aspectFill"></image>
  29. </swiper-item>
  30. </block>
  31. </swiper>
  32. </view>
  33. <view id="gift">
  34. <view class="wangbox">
  35. <view class="wang">望仙礼遇</view>
  36. <view class="wang2">望日w望月w来望仙w</view>
  37. </view>
  38. <view class="picturebox2">
  39. <swiper autoplay="{{true}}" indicator-dots='{{true}}' indicator-color='#D9D9D9' indicator-active-color='#F8DA7F' interval="{{5000}}" circular duration="{{500}}" class="img">
  40. <block wx:for="{{giftBanner}}" wx:key="index" wx:for-item="gifban">
  41. <swiper-item class="img">
  42. {{}}
  43. <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="aspectFill"></image>
  44. </swiper-item>
  45. </block>
  46. </swiper>
  47. </view>
  48. <view class="wang-cardbox">
  49. <block wx:for="{{gift}}" wx:key="index">
  50. <view class="wang-card" data-url="/nova-tourism/pages/collect/collect-detail/index?gid={{item.objectId}}" bindtap="tourl">
  51. <image src="{{item.image||'https://img95.699pic.com/photo/60072/5330.jpg_wh860.jpg'}}" mode="aspectFill"></image>
  52. <view class="wang-catex">{{item.name}}</view>
  53. <view class="wang-numbox">
  54. <view class="wang-num">
  55. <view class="wang-num1">¥</view>
  56. <view class="wang-num2">{{item.price||0}}</view>
  57. </view>
  58. <view class="wang-submit">购买</view>
  59. </view>
  60. </view>
  61. </block>
  62. </view>
  63. <view class="more" data-url="/nova-tourism/pages/collect/good-list/index" bind:tap="tourl">
  64. <view class="more-tex">查看更多 ></view>
  65. </view>
  66. </view>
  67. <view id="makeup">
  68. <view class="wangbox">
  69. <view class="wang">妆造旅拍</view>
  70. </view>
  71. </view>
  72. <view id="vegetable"></view>
  73. <view id="serve"></view>
  74. <view id="school"></view>
  75. </view>
  76. </view>
  77. <view wx:if="{{currentTab == 1}}">
  78. <!-- 卡片 -->
  79. <view class="Legendary-Information" wx:if="{{storeList.length!=0}}">
  80. <block wx:for="{{storeList}}" wx:if="{{item.isCollect&&item.homestayStore.isShow}}">
  81. <view class="cardbox">
  82. <image class="pic" src="{{item.homestayStore.cover}}" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl"></image>
  83. <view class="textobx">
  84. <view class="title" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  85. <view class="til">{{item.homestayStore.storeName}}</view>
  86. <image class="collect" wx:if="{{!item.isCollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/2gcp1e030048570.png?imageView2/1/w/200/h/200"></image>
  87. <image class="collect" wx:if="{{item.isCollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/8mp9uj030058190.png?imageView2/1/w/200/h/200"></image>
  88. </view>
  89. <view class="miaosu" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  90. {{item.homestayStore.desc}}
  91. </view>
  92. <view class="bottom">
  93. <view class="qian" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  94. <view class="numbox">
  95. {{item.homestayStore.perCapita}}
  96. </view>
  97. </view>
  98. <view class="soucang" wx:if="{{!item.isCollect}}" data-id="{{item.homestayStore.objectId}}" bindtap="submit">收藏</view>
  99. <view class="soucang" wx:if="{{item.isCollect}}" data-id="{{item.homestayStore.objectId}}" bindtap="cancle">取消</view>
  100. </view>
  101. </view>
  102. </view>
  103. </block>
  104. </view>
  105. <van-empty wx:if="{{storeList.length==0}}" image="network" description="暂无收藏" />
  106. </view>
  107. </view>
  108. <view style="height: 200rpx;"></view>