index.wxml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!--
  2. <view class="top">
  3. <swiper class="swiper" indicator-dots="true" autoplay="true">
  4. <swiper-item wx:for="{{imgUrls}}" wx:key="index">
  5. <image src="{{item}}" class="slide-image" mode="aspectFill" />
  6. </swiper-item>
  7. </swiper>
  8. </view> -->
  9. <headerCard imgUrls="{{banner}}" active='0' title='美食预定'></headerCard>
  10. <view style="padding: 0 20rpx;">
  11. <view class="rankingTitle">
  12. <view class="title">美食排行</view>
  13. <view class="tabs">
  14. <block wx:for="{{cateList}}" wx:key="index">
  15. <text class="{{textItem==item.objectId?'actvice':''}}" bindtap="changeText" data-id="{{item.objectId}}">{{item.name}}</text>
  16. </block>
  17. </view>
  18. </view>
  19. <view class="rankingContent">
  20. <view wx:for="{{rankList}}" wx:key="index" wx:if="{{index<3}}" class="rankingCard" style=" background: url({{item.cover||defaultCover}}) no-repeat 100% 100%;" bindtap="storepackage" data-item="{{item}}">
  21. <view style="height: 160rpx;">
  22. <view class="ranking" style="background: {{index==0?'#FBB404':(index==1?'#D0CFCB':'#BB9382 ')}};">{{index+1}}</view>
  23. </view>
  24. <view class="title">
  25. {{item.storeName}}
  26. </view>
  27. <view class="content">
  28. {{item.storeAddress}}
  29. </view>
  30. </view>
  31. </view>
  32. <view class="tabs">
  33. <view wx:for="{{tabs}}" wx:key="item" data-index="{{index}}"
  34. bindtap="onTabClick" class="{{active==index?'tabIndex':''}}">
  35. {{item.title}}
  36. </view>
  37. </view>
  38. <view class="card" wx:for="{{list}}" wx:key="index" bindtap="storepackage" data-item="{{item}}">
  39. <view class="image">
  40. <image src="{{item.cover}}"></image>
  41. </view>
  42. <view class="content">
  43. <view class="title">{{item.storeName}}</view>
  44. <view class="detail">{{item.storeAddress}}</view>
  45. <view class="tabs">
  46. <view class="score">
  47. <van-icon name="https://file-cloud.fmode.cn/sHNeVwSaAg/20230602/cv1d8f031530864.png" />
  48. 评分{{item.score}}分
  49. </view>
  50. <text wx:for="{{item.tags}}" wx:key="index" wx:for-item="tag">{{tag}}</text>
  51. </view>
  52. <view class="bottom">
  53. <text class="prive">¥{{item.perCapita}}/人</text>
  54. <text class="range">距离 {{item.distance}}km</text>
  55. </view>
  56. </view>
  57. </view>
  58. </view>