index.wxml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!-- index.wxml -->
  2. <view class="container">
  3. <!-- 店铺信息 -->
  4. <view class="shop">
  5. <view class="title">
  6. <view class="c-202020 title-left" user-select="false" space="false" decode="false">
  7. <image class="shop-icon" src="../../images/icons/shop-icon.png" lazy-load="false"></image>
  8. 康道养生馆
  9. </view>
  10. <navigator class="c-202020 f15" url="../shop/shop" hover-class="none" open-type="navigate">
  11. {{storeInfo.storeName}}
  12. <image class="" src="../../images/icons/next.png" style="width: 25rpx;height: 25rpx;"></image>
  13. </navigator>
  14. </view>
  15. <!-- 店铺 -->
  16. <view class="user-location-btn" wx:if="{{!locationFlag}}">
  17. <button class="location-btn" open-type="getLocation" catchtap="getLocation">授权获取附近门店</button>
  18. </view>
  19. </view>
  20. <!-- 产品信息 -->
  21. <view class="product">
  22. <mp-tabs tabs="{{tabs}}" tab-class="tabItem" activeTab="{{activeTab}}" swiperClass="weui-tabs-swiper" bindtabclick="onTabClick" bindchange="onChange" activeClass="tab-bar-title__selected" tabUnderlineColor="#292E37" tabInactiveTextColor="#fff" tabActiveTextColor="#b1a384" tabBackgroundColor="#292E37" swiperHeight="1800">
  23. <block wx:for="{{tabs}}" wx:key="id">
  24. <view class="tab-content" data-set="{{item}}" slot="tab-content-{{index}}" bind:tap="handleClick" >
  25. <view class="shop-info">
  26. <image class="shop-img" src="{{tabs[index].productTypeImg}}" lazy-load="false"></image>
  27. </view>
  28. <view wx:if="{{tabs[index].list.length}}" class="productinfo" >
  29. <block wx:for="{{tabs[index].list}}" wx:key="id">
  30. <view class="product-item" data-productid="{{item.id}}" bindtap="gotoAppointment">
  31. <image class="product-img" src="{{item.productImg}}" lazy-load="false" binderror="" bindload=""></image>
  32. <view class="product-desc">
  33. <view class="fw700 product-name">{{item.productName}}</view>
  34. <view class="price">
  35. <view class="gold">会员价:¥{{item.currentPrice}}</view>
  36. <view class="gray">非会员价:¥{{item.oldPrice}}</view>
  37. </view>
  38. </view>
  39. </view>
  40. </block>
  41. </view>
  42. <view wx:else>
  43. <image class="noProduct" src="../../images/no-product.png"></image>
  44. <view class="noProductText">暂无产品</view>
  45. </view>
  46. </view>
  47. </block>
  48. </mp-tabs>
  49. <!-- </view>
  50. </block> -->
  51. </view>
  52. <!-- <view class="orderFood" bindtap="goSmdd" wx:if="isShowFood">
  53. <image src='/images/canju.png'></image>
  54. </view> -->
  55. </view>