index.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!-- 商品分类tab -->
  2. <view class="header">
  3. <scroll-view scroll-x scroll-left>
  4. <view class="cs {{ category_id == 0 ? 'active' : '' }}" catchtap="onSwitchTab" data-id="0">
  5. <text>首页</text>
  6. </view>
  7. <!-- 商品分类列表 -->
  8. <view class="cs {{ item.category_id == category_id ? 'active' : '' }}" catchtap="onSwitchTab" wx:for="{{ categoryList }}" wx:key="this" data-id="{{ item.category_id }}">
  9. <text>{{ item.name }}</text>
  10. </view>
  11. </scroll-view>
  12. </view>
  13. <!-- 拼团商品列表 -->
  14. <view class="cont">
  15. <scroll-view bindscrolltolower="bindDownLoad" scroll-y style="height: {{scrollHeight}}px;">
  16. <view class="main">
  17. <view class="main_goods" wx:for="{{ goodsList.data }}" wx:key="this" catchtap="onTargetGoods" data-id="{{ item.goods_id }}">
  18. <!-- 商品图片 -->
  19. <view class="main_goods_left">
  20. <image src="{{ item.goods_image }}"></image>
  21. </view>
  22. <view class="main_goods_right">
  23. <!-- 商品标题 -->
  24. <view class="twolist-hidden">
  25. <text class="main_goods_title">{{ item.goods_name }}</text>
  26. </view>
  27. <!-- 商品信息 -->
  28. <view class="main_goods_desc">
  29. <view class="">
  30. <text class="desc_introduction onelist-hidden">{{ item.selling_point }}</text>
  31. </view>
  32. <text class="desc_situation">
  33. <text class="iconfont icon-pintuan_huaban"></text>
  34. <text class="people">{{ item.people }}人团</text>
  35. <text class="cl-9">已有{{ item.goods_sales }}人进行拼团</text>
  36. </text>
  37. <text class="desc_footer">
  38. <text class="price_x">¥{{ item.goods_sku.sharing_price }}</text>
  39. <text class="price_y cl-9">¥{{ item.goods_sku.line_price }}</text>
  40. </text>
  41. </view>
  42. <button class="settlement">去拼团</button>
  43. </view>
  44. </view>
  45. <view wx:if="{{ no_more }}" class="no-more f-30">亲, 没有更多了</view>
  46. <!-- 无数据提供的页面 -->
  47. <view wx:if="{{ !isLoading && !goodsList.data.length }}">
  48. <view class="yoshop-notcont">
  49. <text class="iconfont icon-wushuju"></text>
  50. <text class="cont">亲,暂无拼团商品哦</text>
  51. </view>
  52. </view>
  53. </view>
  54. </scroll-view>
  55. </view>