shop.wxml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!--pages/shop/shop.wxml-->
  2. <import src="../../module/header.wxml"/>
  3. <import src="../../module/caritem/caritem.wxml"/>
  4. <template
  5. is="header"
  6. data="{{title:'店铺主页',headerheight:headerheight,hasback:true}}"
  7. />
  8. <page-scroll
  9. className="content"
  10. styleSheet="height:{{windowh-headerheight}}rpx;"
  11. scroll-y
  12. bind:scrolltolower="{{hasloadall?'':'loadCars'}}"
  13. >
  14. <view class="shop_info">
  15. <view
  16. class="shop_img"
  17. style="background-image: url({{info.img}})"
  18. >
  19. </view>
  20. <view class="shop_detail">
  21. <view class="shop_detail_title">
  22. {{info.store_name}}
  23. </view>
  24. <view class="shop_detail_address">
  25. <image src="../../img/address.png"/>{{info.address}}
  26. </view>
  27. <view
  28. class="shop_detail_phone"
  29. data-phonenumber="{{info.phone}}"
  30. bindtap="makeCall"
  31. >
  32. <image src="../../img/phone2.png"/>{{info.phone}}
  33. </view>
  34. </view>
  35. </view>
  36. <view class="total_count">
  37. 全部车源<view class="total_count_n">({{total}})</view>
  38. </view>
  39. <view class="shop_cart_c">
  40. <block wx:for="{{list}}" wx:key="id">
  41. <template is="caritem" data="{{car:item}}"/>
  42. </block>
  43. </view>
  44. <!-- <view
  45. style="display:none"
  46. class="loading"
  47. ></view> -->
  48. </page-scroll>