index.wxml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!--index.wxml-->
  2. <view class="container">
  3. <view>
  4. <!-- 店铺信息 -->
  5. <view class="shop">
  6. <view class="title">
  7. <view class="c-202020" user-select="false" space="false" decode="false">附近门店
  8. </view>
  9. <navigator class="c-202020 f15" url="../shop/shop" hover-class="none" open-type="navigate">
  10. 查看全部
  11. <image class="" src="../../images/right.png" style="width: 25rpx;height: 25rpx;">
  12. </image>
  13. </navigator>
  14. </view>
  15. <!-- 店铺 -->
  16. <view wx:if="{{locationFlag}}">
  17. <navigator url="../../pages/shopinfo/shopinfo?id={{item.id}}" wx:for="{{shopList}}" wx:key="id"
  18. hover-class="none">
  19. <view class="shop-info">
  20. <view class="shopimg">
  21. <image src="{{item.imgurl}}" mode="aspectFill" lazy-load="false" class="img">
  22. </image>
  23. </view>
  24. <view class="shopmsg">
  25. <view class="shopview">
  26. <view class="c-202020">
  27. {{item.shopname}}
  28. </view>
  29. <view class="c-202020 mark f12 {{item.new?'new':''}} {{item.discount?'discount':''}}"
  30. wx:if="{{item.mark}}">
  31. {{item.marktext}}
  32. </view>
  33. </view>
  34. <view class="shopview">
  35. <view>
  36. <mp-icon icon="star" color="#E15F3D" size="18" type="{{item.stars>0?'filled':'outline'}}"></mp-icon>
  37. <mp-icon icon="star" color="#E15F3D" size="18" type="{{item.stars>1?'filled':'outline'}}"></mp-icon>
  38. <mp-icon icon="star" color="#E15F3D" size="18" type="{{item.stars>2?'filled':'outline'}}"></mp-icon>
  39. <mp-icon icon="star" color="#E15F3D" size="18" type="{{item.stars>3?'filled':'outline'}}"></mp-icon>
  40. <mp-icon icon="star" color="#E15F3D" size="18" type="{{item.stars>4?'filled':'outline'}}"></mp-icon>
  41. </view>
  42. </view>
  43. <view class="shop-address shopview">
  44. <view class="c-707070 f12">
  45. <mp-icon icon="location" color="#707070" size="20" class="address-icon"></mp-icon>
  46. {{item.shop_address}}
  47. </view>
  48. <view class="c-707070 f12">
  49. {{item.shop_distance}}
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. </navigator>
  55. </view>
  56. <view class="user-location-btn" wx:if="{{!locationFlag}}">
  57. <button class="location-btn">授权获取附近门店</button>
  58. </view>
  59. </view>
  60. <!-- 产品信息 -->
  61. <view class="product" style="height: {{productHeight+100}}rpx;">
  62. <!-- <mp-tabs tabs="{{tabs}}" activeTab="{{activeTab}}" swiperClass="weui-tabs-swiper" bindtabclick="onTabClick"
  63. bindchange="swiperChange" activeClass="tab-bar-title__selected" swiperHeight="{{(tabs[activeTab].list.length)*420}}">
  64. <block wx:for="{{tabs}}" wx:key="title">
  65. <view class="tab-content" data-set="{{item}}" slot="tab-content-{{index}}" bind:tap="handleClick">
  66. <view style="overflow-y: auto;height:{{productHeight}}rpx">
  67. <block wx:for="{{tabs[index].list}}" wx:key="id">
  68. <view class="productinfo">
  69. <view class="product-item" style="background-image: url({{item.imgurl}});">
  70. <view class="product-desc" style="height:390rpx">
  71. <view class="f17">{{item.title}}</view>
  72. <view class=".fw700">¥{{item.price}}/人</view>
  73. <view class="f13">{{item.desc}}</view>
  74. </view>
  75. <view class="order {{item.open?'':'gray'}}">
  76. <view >
  77. 立即预约
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </block>
  83. </view>
  84. </view>
  85. </block>
  86. </mp-tabs>
  87. -->
  88. <block wx:for="{{productList}}" wx:key="id">
  89. <view class="productinfo">
  90. <view class="product-item" style="background-image: url({{item.imgurl}});">
  91. <view class="product-desc">
  92. <view class="f17">{{item.title}}</view>
  93. <view class=".fw700">¥{{item.price}}/人</view>
  94. <view class="f13">{{item.desc}}</view>
  95. </view>
  96. <view class="order {{item.open?'':'gray'}}">
  97. <view>
  98. 立即预约
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. </block>
  104. </view>
  105. </view>
  106. </view>