index.wxml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <view class="content">
  2. <view></view>
  3. </view>
  4. <!-- index.wxml -->
  5. <view class="container">
  6. <!-- 店铺信息 -->
  7. <view class="shop">
  8. <view class="title">
  9. <view class="c-202020 title-left" user-select="false" space="false" decode="false">
  10. <image class="shop-icon" src="../../images/icons/shop-icon.png" lazy-load="false"></image>
  11. 品牌名
  12. </view>
  13. <navigator class="c-202020 f15" url="../shop/shop" hover-class="none" open-type="navigate">
  14. {{storeInfo.storeName}}
  15. <image class="" src="../../images/icons/next.png" style="width: 25rpx;height: 25rpx;"></image>
  16. </navigator>
  17. </view>
  18. <!-- 店铺 -->
  19. <view wx:if="{{locationFlag}}">
  20. <view class="shop-info">
  21. <image class="shop-img" src="{{storeInfo.logo}}" lazy-load="false"></image>
  22. </view>
  23. </view>
  24. <view class="user-location-btn" wx:if="{{!locationFlag}}">
  25. <button class="location-btn" open-type="getLocation" catchtap="getLocation">授权获取附近门店</button>
  26. </view>
  27. </view>
  28. <!-- 产品信息 -->
  29. <view class="product">
  30. <block wx:for="{{productList}}" wx:key="id">
  31. <view class="productinfo">
  32. <view class="product-item" data-productid="{{item.id}}" bindtap="gotoAppointment">
  33. <image class="product-img" src="{{item.productImg}}" lazy-load="false" binderror="" bindload=""></image>
  34. <view class="product-desc">
  35. <view class="fw700 product-name">{{item.productName}}</view>
  36. <view class="price">
  37. <view class="gold">会员价:¥{{item.currentPrice}}</view>
  38. <view class="gray">非会员价:¥{{item.oldPrice}}</view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </block>
  44. </view>
  45. </view>