index.wxml 1.2 KB

12345678910111213141516171819202122232425262728
  1. <!--pages/quality/index/index.wxml-->
  2. <view class="container-goods">
  3. <view class="tabs">
  4. <scroll-view class="scroll-view" scroll-x scroll-into-view="{{scrollIntoView}}" scroll-with-animation>
  5. <view data-index="{{index}}" id="location{{item.id}}" class="tab {{index == currentTab ? 'tab-active' : ''}}" wx:for="{{tabs}}" wx:key="item" bindtap="handleClassfiy">{{item.name}}</view>
  6. </scroll-view>
  7. </view>
  8. <view class="goods">
  9. <view class="goods-item" data-id="{{item.id}}" bindtap="goodsDetail" wx:for="{{list}}">
  10. <image src="{{item.thumbnail}}"></image>
  11. <view class="body">
  12. <view class="goods-title">
  13. {{item.name}}
  14. <!-- <text>{{item.name}}</text> -->
  15. </view>
  16. <view class="goods-classify">{{item.categoryName}}</view>
  17. <view class="goods-total-num">剩余:{{item.quantity}}</view>
  18. <view class="getCoupon">点击领券</view>
  19. <!-- <view class="goods-price">{{item.price}}</view> -->
  20. </view>
  21. </view>
  22. <block wx:if="{{list.length<=0}}">
  23. <view class='tc h100'>
  24. <image src="{{nodata}}" class='nodata-img'></image>
  25. </view>
  26. </block>
  27. </view>
  28. </view>