index.wxml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <view class="content">
  2. <view>
  3. </view>
  4. </view>
  5. <!--index.wxml-->
  6. <view class="container">
  7. <!-- 店铺信息 -->
  8. <view class="shop">
  9. <view class="title">
  10. <view class="c-202020" user-select="false" space="false" decode="false">附近门店
  11. </view>
  12. <navigator class="c-202020 f15" url="../shop/shop" hover-class="none" open-type="navigate">
  13. 查看全部
  14. <image class="" src="../../images/icons/right.png" style="width: 25rpx;height: 25rpx;">
  15. </image>
  16. </navigator>
  17. </view>
  18. <!-- 店铺 -->
  19. <view wx:if="{{locationFlag}}">
  20. <navigator url="../../pages/shopinfo/shopinfo?id={{storeInfo.id}}"
  21. hover-class="none">
  22. <view class="shop-info">
  23. <view class="shopimg">
  24. <image src="{{storeInfo.logo}}" mode="aspectFill" lazy-load="false" class="img">
  25. </image>
  26. </view>
  27. <view class="shopmsg">
  28. <view class="shopview">
  29. <view class="c-202020">
  30. {{storeInfo.storeName}}
  31. </view>
  32. <!-- <view class="c-202020 mark f12 {{item.new?'new':''}} {{item.discount?'discount':''}}" wx:if="{{item.mark}}">
  33. {{item.marktext}}
  34. </view> -->
  35. </view>
  36. <view class="shopview">
  37. <view>
  38. <mp-icon icon="star" color="#E15F3D" size="18" type="{{parseInt(storeInfo.storeScore)>0?'filled':'outline'}}"></mp-icon>
  39. <mp-icon icon="star" color="#E15F3D" size="18" type="{{parseInt(storeInfo.storeScore)>1?'filled':'outline'}}"></mp-icon>
  40. <mp-icon icon="star" color="#E15F3D" size="18" type="{{parseInt(storeInfo.storeScore)>2?'filled':'outline'}}"></mp-icon>
  41. <mp-icon icon="star" color="#E15F3D" size="18" type="{{parseInt(storeInfo.storeScore)>3?'filled':'outline'}}"></mp-icon>
  42. <mp-icon icon="star" color="#E15F3D" size="18" type="{{parseInt(storeInfo.storeScore)>4?'filled':'outline'}}"></mp-icon>
  43. </view>
  44. </view>
  45. <view class="shop-address shopview">
  46. <view class="c-707070 f12">
  47. <mp-icon icon="location" color="#707070" size="20" class="address-icon" ></mp-icon>
  48. {{storeInfo.address}}
  49. </view>
  50. <view class="c-707070 f12">
  51. {{storeInfo.distance}}
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </navigator>
  57. </view>
  58. <view class="user-location-btn" wx:if="{{!locationFlag}}" >
  59. <button class="location-btn" open-type="getLocation" catchtap="getLocation" >授权获取附近门店</button>
  60. </view>
  61. </view>
  62. <!-- 产品信息 -->
  63. <view class="product" >
  64. <block wx:for="{{productList}}" wx:key="id" >
  65. <view class="productinfo">
  66. <view class="product-item" data-productid="{{item.id}}" bindtap = "showProduct" style="background-image: url({{item.productImg}});">
  67. <view class="product-desc" >
  68. <view class="f17">{{item.productName}}</view>
  69. <view class=".fw700">¥{{item.currentPrice}}/人</view>
  70. <!-- <view class="f13">{{item.productContent}}</view> -->
  71. </view>
  72. <view class="order {{item.status==1?'':'gray'}}">
  73. <view >
  74. 立即预约
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </block>
  80. </view>
  81. </view>