index.wxml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!--nova-tourism/components/collect/index.wxml-->
  2. <nav type="title" background-color="#ffffff" frontColor="#000000" title="云上望仙" />
  3. <view class="all" style="height: {{contentHeight}}rpx;">
  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}}">
  17. <view class="tap">
  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="{{3000}}" circular duration="{{500}}" class="img" bindchange="onSwiperChange">
  26. <block wx:for="{{imageUrls}}" wx:key="index" wx:for-item="img">
  27. <swiper-item class="img">
  28. <image src="{{img}}" mode="aspectFill"></image>
  29. </swiper-item>
  30. </block>
  31. </swiper>
  32. </view>
  33. <view class="wangbox">
  34. <view class="wang">望仙礼遇</view>
  35. <view class="wang2">望日w望月w来望仙w</view>
  36. </view>
  37. <view class="picturebox2" >
  38. <swiper autoplay="{{true}}" indicator-dots='{{true}}' indicator-color='#D9D9D9' indicator-active-color='#F8DA7F' interval="{{3000}}" circular duration="{{500}}" class="img" bindchange="onSwiperChange">
  39. <block wx:for="{{imageUrls}}" wx:key="index" wx:for-item="img">
  40. <swiper-item class="img" >
  41. <image style="border-radius: 10rpx;" src="{{img}}" mode="aspectFill"></image>
  42. </swiper-item>
  43. </block>
  44. </swiper>
  45. </view>
  46. <view class="wang-cardbox">
  47. <block wx:for="{{4}}">
  48. <view class="wang-card" bindtap="gourl2">
  49. <image src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241230/1ni1pl050800435.png"></image>
  50. <view class="wang-catex">粉黛胖挑主人杯(无礼盒)·手做</view>
  51. <view class="wang-numbox">
  52. <view class="wang-num">
  53. <view class="wang-num1">¥</view>
  54. <view class="wang-num2">19900</view>
  55. </view>
  56. <view class="wang-submit">购买</view>
  57. </view>
  58. </view>
  59. </block>
  60. </view>
  61. <view class="more">
  62. <view class="more-tex">查看更多 ></view>
  63. </view>
  64. <view class="wangbox">
  65. <view class="wang">妆造旅拍</view>
  66. </view>
  67. </view>
  68. </view>
  69. <view wx:if="{{currentTab == 1}}">
  70. <!-- 卡片 -->
  71. <view class="Legendary-Information" wx:if="{{storeList.length!=0}}">
  72. <block wx:for="{{storeList}}" wx:if="{{item.isCollect&&item.homestayStore.isShow}}">
  73. <view class="cardbox">
  74. <image class="pic" src="{{item.homestayStore.cover}}" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl"></image>
  75. <view class="textobx">
  76. <view class="title" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  77. <view class="til">{{item.homestayStore.storeName}}</view>
  78. <image class="collect" wx:if="{{!item.isCollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/2gcp1e030048570.png?imageView2/1/w/200/h/200"></image>
  79. <image class="collect" wx:if="{{item.isCollect}}" src="https://file-cloud.fmode.cn/EbxZUK5lBI/20241121/8mp9uj030058190.png?imageView2/1/w/200/h/200"></image>
  80. </view>
  81. <view class="miaosu" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  82. {{item.homestayStore.desc}}
  83. </view>
  84. <view class="bottom">
  85. <view class="qian" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
  86. <view class="numbox">
  87. {{item.homestayStore.perCapita}}
  88. </view>
  89. </view>
  90. <view class="soucang" wx:if="{{!item.isCollect}}" data-id="{{item.homestayStore.objectId}}" bindtap="submit">收藏</view>
  91. <view class="soucang" wx:if="{{item.isCollect}}" data-id="{{item.homestayStore.objectId}}" bindtap="cancle">取消</view>
  92. </view>
  93. </view>
  94. </view>
  95. </block>
  96. </view>
  97. <van-empty wx:if="{{storeList.length==0}}" image="network" description="暂无收藏" />
  98. </view>
  99. </view>