index.wxml 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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' : ''}}"
  6. wx:for="{{tabs}}" wx:key="item" bindtap="handleClassfiy">{{item.name}}</view>
  7. </scroll-view>
  8. </view>
  9. <view class="goods">
  10. <view class="goods-item" data-id="{{item.id}}" bindtap="goodsDetail" wx:for="{{list}}">
  11. <image src="{{item.thumbnail}}"></image>
  12. <view class="body">
  13. <view class="goods-title">
  14. {{item.name}}
  15. <!-- <text>{{item.name}}</text> -->
  16. </view>
  17. <view class="goods-classify">{{item.categoryName}}</view>
  18. <view class="goods-total-num">剩余:<text>{{item.quantity}}</text></view>
  19. <view class="getCouponBox">
  20. <view class="getCoupon">我想要</view>
  21. </view>
  22. <!-- <view class="goods-price">{{item.price}}</view> -->
  23. </view>
  24. </view>
  25. <block wx:if="{{list.length<=0}}">
  26. <view class='tc h100'>
  27. <image src="{{nodata}}" class='nodata-img'></image>
  28. </view>
  29. </block>
  30. </view>
  31. </view>