shopProds.wxml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!--pages/allGoods/allGoods.wxml-->
  2. <view class="shop-container">
  3. <!-- 店铺信息 -->
  4. <view class="shop" bindtap="toShopInfo">
  5. <view class="shopInfo">
  6. <view class="shopLogo">
  7. <image src="{{shopInfo.shopLogo}}"></image>
  8. </view>
  9. <view class="shopTitle">
  10. <view class="shopName">{{shopInfo.shopName}}</view>
  11. <view class="shopDesc">{{shopInfo.intro}}</view>
  12. </view>
  13. </view>
  14. </view>
  15. <!-- 搜索框 && 排序tab -->
  16. <view class="head-bg">
  17. <view class='bg-sear'>
  18. <view class="{{topFlag? 'navtop' : ''}}">
  19. <view class='section' bindtap='toShopSearchPage' data-shopid="{{shopInfo.shopId}}">
  20. <image class='search-img' src='../../images/icon/search.png'></image>
  21. <text class='placeholder'>搜索</text>
  22. </view>
  23. <view class='tab-tit'>
  24. <text bindtap='onStsTap' data-sort="0" class="{{sort==0 || currentTab?'on':''}}">默认</text>
  25. <text bindtap='onStsTap' data-sort="1" class="{{sort==1?'on':''}}">销量</text>
  26. <text bindtap='onStsTap' data-sort="2" class="{{sort==2?'on':''}}">价格</text>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. <!-- 商品列表 -->
  32. <view class='prodlist-item-cont'>
  33. <block wx:for="{{shopProdList}}" wx:for-item="prod" wx:key="prodId">
  34. <!-- <view class='prod-items' bindtap='toProdPage' data-prodid="{{prod.prodId}}">
  35. <view class='hot-imagecont'>
  36. <image src='{{prod.pic}}' class='hotsaleimg'></image>
  37. </view>
  38. <view class='hot-text'>
  39. <view class='hotprod-text'>{{prod.prodName}}</view>
  40. <view class='prod-info'>{{prod.brief}}</view>
  41. <view class='prod-text-info'>
  42. <view class='price'>
  43. <text class='symbol'>¥</text>
  44. <text class='big-num'>{{prod.price}}</text>
  45. </view>
  46. <image src='../../images/tabbar/basket-sel.png' class='basket-img'></image>
  47. </view>
  48. </view>
  49. </view> -->
  50. <prod-item prod="{{prod}}"></prod-item>
  51. </block>
  52. </view>
  53. <view class="tips" wx:if="{{isAll}}">已加载所有商品</view>
  54. <shop-tabbar style="position:fixed;bottom:0;width:100%;left:0;right:0;" currentTab="1"></shop-tabbar>
  55. </view>