index.wxml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <block wx:if="{{diyInfo.style==1}}">
  2. <view class='pin-spec' style="{{('margin-top:'+(diyInfo.marginTop*2+'rpx')+';')}}" wx:if="{{pinList.list&&pinList.list.length}}">
  3. <image class="pin-spec-img" mode="widthFix" src="{{diyInfo.list[style].imageUrl}}"
  4. wx:if="{{diyInfo.list[diyInfo.style-1].imageUrl}}" bindtap="goLink" data-link="/lionfish_comshop/moduleA/pin/index"></image>
  5. <scroll-view class='pin-spec-scroll' scroll-x>
  6. <view class='pin-spec-wrap'>
  7. <view class="pin-spec-item" wx:for="{{pinList.list}}" wx:key="actId" bindtap="goLink" data-link="/lionfish_comshop/moduleA/pin/goodsDetail?id={{item.actId}}">
  8. <i-img defaultImage="../../images/placeholder-refund.png" height="200" width="200" iClass="pin-img"
  9. loadImage="{{item.skuImage}}"></i-img>
  10. <view wx:if="{{item.label_info && item.label_info.type==0}}" class='item-tag'>
  11. <image class='item-tag-bg' mode='widthFix' src="../../images/tag.png"></image>
  12. <view class='tag-name {{item.label_info.len==2?"two-word":""}}'>{{item.label_info.tagcontent}}</view>
  13. </view>
  14. <view wx:if="{{item.label_info && item.label_info.type==1}}" class='item-tag'
  15. style='background:url({{item.label_info.tagcontent}}) no-repeat left top;background-size: 100%;'></view>
  16. <view class="act-end" wx:if="{{item.spuCanBuyNum==0}}">已抢光</view>
  17. <view class='title'>{{item.spuName}}</view>
  18. <text class="pin-tag" style="border-color:{{skin.color}};color:{{skin.color}}">{{item.pin_count}}人团</text>
  19. <view class='new-bot'>
  20. <view class='price'>¥{{item.actPrice[0]}}.{{item.actPrice[1]}}</view>
  21. <view class="market-price">¥{{item.marketPrice[0]}}.{{item.marketPrice[1]}}</view>
  22. </view>
  23. </view>
  24. </view>
  25. </scroll-view>
  26. </view>
  27. </block>
  28. <block wx:elif="{{diyInfo.style==2}}">
  29. <view class='pin-spec u-p-30' style="{{('margin-top:'+(diyInfo.marginTop*2+'rpx')+';')}}" wx:if="{{pinList.list&&pinList.list.length}}">
  30. <view class="i-flex i-flex-spb" bindtap="goLink" data-link="/lionfish_comshop/moduleA/pin/index">
  31. <image src="{{styleList[1].imageUrl}}" class="pin-s2-tit"></image>
  32. <view class="u-font-24" style="color:#909399;">
  33. <text>更多拼团</text>
  34. <text class="iconfont icon-youjiantou fsz-22"></text>
  35. </view>
  36. </view>
  37. <view class="pin-s2">
  38. <view wx:for="{{pinList.list}}" wx:key="id" class="i-flex pin-s2-item" style="height: 250rpx;" bindtap="goLink" data-link="/lionfish_comshop/moduleA/pin/goodsDetail?id={{item.actId}}">
  39. <view class="pos-r u-m-t-25">
  40. <i-img defaultImage="../../images/placeholder-refund.png" height="200" width="200" iClass="pin-img" loadImage="{{item.skuImage}}"></i-img>
  41. <view wx:if="{{item.label_info&&item.label_info.type==0}}" class='item-tag'>
  42. <image class='item-tag-bg' mode='widthFix' src="../../images/tag.png"></image>
  43. <view class='tag-name {{item.label_info.len==2?"two-word":""}}'>{{item.label_info.tagcontent}}</view>
  44. </view>
  45. <view wx:if="{{item.label_info && item.label_info.type==1}}" class='item-tag'
  46. style='background:url({{item.label_info.tagcontent}}) no-repeat left top;background-size: 100%;'></view>
  47. <view class="act-end" wx:if="{{item.spuCanBuyNum==0}}">已抢光</view>
  48. </view>
  49. <view class="i-flex-item u-m-l-20 u-p-b-25 u-p-t-25 pin-s2-item-r">
  50. <view class="top">
  51. <view class='title'>{{item.spuName}}</view>
  52. <view class="label i-flex">
  53. <view class="label-person tag" style="border-color:{{skin.color}};color:{{skin.color}}">
  54. <text class="iconfont icon-pintuan fsz-22"></text>
  55. <text class="label-name">{{item.pin_count}}人团</text>
  56. </view>
  57. <view class="label-num tag" style="border-color:{{skin.color}};color:{{skin.color}}">
  58. <text class="label-name">已拼{{item.soldNum}}件</text>
  59. </view>
  60. </view>
  61. </view>
  62. <view class='bot i-flex i-i-flex-spb'>
  63. <view class="content-price i-flex-item">
  64. <view class='price'>¥<text class="u-font-32 u-m-r-10">{{item.actPrice[0]}}.{{item.actPrice[1]}}</text></view>
  65. <view class="content-num">¥{{item.marketPrice[0]}}.{{item.marketPrice[1]}}</view>
  66. </view>
  67. <view class="pin-s2-btn">去拼团</view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </block>
  74. <block wx:elif="{{diyInfo.style==3}}">
  75. <view class='pin-spec u-p-30' style="{{('margin-top:'+(diyInfo.marginTop*2+'rpx')+';')}}" wx:if="{{pinList.list&&pinList.list.length}}">
  76. <view class="text-center">
  77. <image src="{{styleList[2].imageUrl}}" class="pin-s3-tit"></image>
  78. </view>
  79. <view class="pin-s2">
  80. <view wx:for="{{pinList.list}}" wx:key="id" class="i-flex pin-s2-item" style="height: 250rpx;" bindtap="goLink" data-link="/lionfish_comshop/moduleA/pin/goodsDetail?id={{item.actId}}">
  81. <view class="pos-r u-m-t-25">
  82. <i-img defaultImage="../../images/placeholder-refund.png" height="200" width="200" iClass="pin-img" loadImage="{{item.skuImage}}"></i-img>
  83. <view wx:if="{{item.label_info&&item.label_info.type==0}}" class='item-tag'>
  84. <image class='item-tag-bg' mode='widthFix' src="../../images/tag.png"></image>
  85. <view class='tag-name {{item.label_info.len==2?"two-word":""}}'>{{item.label_info.tagcontent}}</view>
  86. </view>
  87. <view wx:if="{{item.label_info && item.label_info.type==1}}" class='item-tag'
  88. style='background:url({{item.label_info.tagcontent}}) no-repeat left top;background-size: 100%;'></view>
  89. <view class="act-end" wx:if="{{item.spuCanBuyNum==0}}">已抢光</view>
  90. </view>
  91. <view class="i-flex-item u-m-l-20 u-p-b-25 u-p-t-25 pin-s2-item-r">
  92. <view class="top">
  93. <view class='title'>{{item.spuName}}</view>
  94. <view class="label i-flex">
  95. <view class="label-person tag" style="border-color:{{skin.color}};color:{{skin.color}}">
  96. <text class="iconfont icon-pintuan fsz-22"></text>
  97. <text class="label-name">{{item.pin_count}}人团</text>
  98. </view>
  99. <view class="label-num tag" style="border-color:{{skin.color}};color:{{skin.color}}">
  100. <text class="label-name">已拼{{item.soldNum}}件</text>
  101. </view>
  102. </view>
  103. </view>
  104. <view class='bot i-flex i-i-flex-spb'>
  105. <view class="content-price i-flex-item">
  106. <view class='price'>¥<text class="u-font-32 u-m-r-10">{{item.actPrice[0]}}.{{item.actPrice[1]}}</text></view>
  107. <view class="content-num">¥{{item.marketPrice[0]}}.{{item.marketPrice[1]}}</view>
  108. </view>
  109. <view class="pin-s2-btn">去拼团</view>
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. <view class="u-font-24 border-top u-p-t-30 text-center" style="color:#909399;" bindtap="goLink" data-link="/lionfish_comshop/moduleA/pin/index">
  115. <text>更多拼团</text>
  116. <text class="iconfont icon-youjiantou fsz-22"></text>
  117. </view>
  118. </view>
  119. </block>