index.wxml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!--nova-tourism/components/template2/gourmet/index.wxml-->
  2. <nav type="location" title="美食预定" frontColor="#ffffff" background-color="#f39283" />
  3. <view class="flexd">
  4. <view class="nav-background"></view>
  5. <view class="v-search">
  6. <van-search bindtap="goUrl"
  7. data-url="/nova-tourism/pages/food-list/index" left-icon="https://file.ruixiuauto.com/cDBRXuM6Xh/20230807/1314fo040350926.png"
  8. background="transparent" placeholder="搜索你想要的生活" shape="round" disabled use-action-slot >
  9. </van-search>
  10. </view>
  11. </view>
  12. <swiper class="swiper" indicator-dots="true" circular>
  13. <swiper-item wx:for="{{banner}}" wx:key="index">
  14. <image src="{{item.image}}" class="slide-image" />
  15. </swiper-item>
  16. </swiper>
  17. <view class="rank">
  18. <view>
  19. <view class="item-title">
  20. <view class="title-left">
  21. <view>
  22. <image src="https://file.ruixiuauto.com/cDBRXuM6Xh/20230807/1tcj18050717954.png"
  23. style="width:30rpx;height:30rpx;" />
  24. </view>
  25. <view class="text">美食高分推荐</view>
  26. </view>
  27. <view class="title-right">
  28. <block wx:for="{{cateList}}" wx:key="index">
  29. <view class="{{textItem==item.objectId?'right-active':''}}" bindtap="changeText" data-id="{{item.objectId}}">{{item.name}}</view>
  30. </block>
  31. </view>
  32. </view>
  33. <view class="content">
  34. <block wx:for="{{rankList}}" wx:for-item="content" wx:if="{{idx<4}}" wx:key="*this" wx:for-index="idx">
  35. <view class="card" bindtap="goUrl" data-url="/nova-tourism/pages/gourmet/store-package/index?id={{content.objectId}}">
  36. <view class="left">
  37. <view class="ranking">NO.{{idx+1}}</view>
  38. <image src="{{content.cover}}" />
  39. </view>
  40. <view class="right">
  41. <view class="h1">{{content.storeName}}</view>
  42. <view class="h3">{{content.storeAddress}}</view>
  43. <view class="h2">
  44. <view>{{content.score}}评分推荐</view>
  45. <view class="light">{{content.perCapita}}RMB/人</view>
  46. </view>
  47. </view>
  48. </view>
  49. </block>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="tabs">
  54. <view class="navBar">
  55. <block wx:for="{{tabs}}" wx:key="item">
  56. <view data-index="{{index}}" class="navItem {{tabIndex == index ? 'active' : '' }}" bindtap="onTabClick">
  57. <view class="navItemTitle">{{item.title}}</view>
  58. </view>
  59. </block>
  60. </view>
  61. </view>
  62. <view style="margin: 24rpx 32rpx;">
  63. <image style="width:687rpx;height:165rpx;"
  64. src="https://file.ruixiuauto.com/cDBRXuM6Xh/20230808/hu1af5051336154.web" />
  65. </view>
  66. <view class="play-list">
  67. <block wx:for="{{list}}" wx:key="index">
  68. <view class="play-item" bindtap="goUrl" data-url="/nova-tourism/pages/gourmet/store-package/index?id={{item.objectId}}">
  69. <view class="item-img">
  70. <view class="item-ranking">HOT</view>
  71. <image src="{{item.cover}}"
  72. style="width: 332rpx;height: 308rpx;" />
  73. </view>
  74. <view class="body">
  75. <view class="item-text">
  76. {{item.storeName}}</view>
  77. <view class="label">
  78. <block wx:for="{{item.tags}}" wx:for-item="tag" wx:key="*this" wx:for-index="i">
  79. <view>{{tag}}</view>
  80. </block>
  81. </view>
  82. <view class="detail">
  83. <view class="d-light">¥{{item.perCapita}}</view>
  84. <view>距离 {{item.distances}}km</view>
  85. </view>
  86. </view>
  87. </view>
  88. </block>
  89. </view>