index.wxml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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/20250419/l1fsbm101248703.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" style="background: rgba(244, 242, 243);">
  42. <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>
  43. </swiper-item>
  44. </block>
  45. </swiper>
  46. </view>
  47. <view class="wang-cardbox">
  48. <block wx:for="{{gift}}" wx:key="index">
  49. <view class="wang-card" data-url="/nova-tourism/pages/collect/collect-detail/index?gid={{item.objectId}}" bindtap="tourl">
  50. <view style="background: rgba(244, 242, 243);;">
  51. <image src="{{item.image||'https://img95.699pic.com/photo/60072/5330.jpg_wh860.jpg'}}" mode="aspectFit"></image>
  52. </view>
  53. <view class="wang-catex">{{item.name}}</view>
  54. <view class="wang-numbox">
  55. <view class="wang-num">
  56. <view class="wang-num1">¥</view>
  57. <view class="wang-num2">{{item.price||0}}</view>
  58. </view>
  59. <view class="wang-submit">购买</view>
  60. </view>
  61. </view>
  62. </block>
  63. </view>
  64. <view class="more" data-url="/nova-tourism/pages/collect/good-list/index" bind:tap="tourl">
  65. <view class="more-tex">查看更多 ></view>
  66. </view>
  67. </view>
  68. <view id="makeup">
  69. <view class="wangbox">
  70. <view class="wang">妆造旅拍</view>
  71. </view>
  72. </view>
  73. <view id="vegetable"></view>
  74. <view id="serve"></view>
  75. <view id="school"></view>
  76. </view>
  77. </view>
  78. <view wx:if="{{currentTab == 1}}">
  79. <!-- 卡片 -->
  80. <view class="Legendary-Information" wx:if="{{storeList.length!=0}}">
  81. <block wx:for="{{storeList}}" wx:key="index" wx:if="{{item.isCollect&&item.homestayStore.isShow}}">
  82. <view class="cardbox">
  83. <image class="pic" src="{{item.homestayStore.cover}}" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl"></image>
  84. <view class="textobx">
  85. <view class="title" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  86. <view class="til">{{item.homestayStore.storeName}}</view>
  87. <image class="collect" wx:if="{{!item.isCollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/2gcp1e030048570.png?imageView2/1/w/200/h/200"></image>
  88. <image class="collect" wx:if="{{item.isCollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/8mp9uj030058190.png?imageView2/1/w/200/h/200"></image>
  89. </view>
  90. <view class="miaosu" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  91. {{item.homestayStore.desc}}
  92. </view>
  93. <view class="bottom">
  94. <view class="qian" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  95. <view class="numbox">
  96. {{item.homestayStore.perCapita}}
  97. </view>
  98. </view>
  99. <view class="soucang" wx:if="{{!item.isCollect}}" data-id="{{item.homestayStore.objectId}}" bindtap="submit">收藏</view>
  100. <view class="soucang" wx:if="{{item.isCollect}}" data-id="{{item.homestayStore.objectId}}" bindtap="cancle">取消</view>
  101. </view>
  102. </view>
  103. </view>
  104. </block>
  105. </view>
  106. <van-empty wx:if="{{storeList.length==0}}" image="network" description="暂无收藏" />
  107. </view>
  108. </view>
  109. <view style="height: 200rpx;"></view>