GroupBuyingGood.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <template>
  2. <view class="groupCard" v-if="groupList && groupList.length > 0">
  3. <view class="group_title">
  4. <view class="group_title_l">拼团购</view>
  5. <view
  6. class="group_title_r"
  7. @click="goProductDetails('/pages/research/homepage/groupList')"
  8. >
  9. 查看更多
  10. <!-- <text class="iconfont">&#xe65f;</text> -->
  11. <view style="display: inline-block;">
  12. <uv-icon name="arrow-right" color="#333333" size="26rpx"></uv-icon>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="goodsListBox">
  17. <view
  18. class="goods_item"
  19. v-for="(item, index) in groupList"
  20. :key="index"
  21. @click="
  22. goProductDetails('/pages/product/goods/puzzleGoods?id=' + item.id)
  23. "
  24. >
  25. <view class="goods_item_img">
  26. <!-- ?x-oss-process=style/w_350 -->
  27. <image :src="`${item.coverImage}`" mode=""></image>
  28. </view>
  29. <view class="goods_item_data">
  30. <view class="goods_item_data_title">{{ item.title }}</view>
  31. <view class="goods_item_data_box">
  32. <view class="goods_item_data_box_l">
  33. <view class="num">
  34. <view class="large">
  35. <rich-text
  36. :nodes="$mUtil.priceBigSmall(item.minPrice)"
  37. ></rich-text>
  38. </view>
  39. <view class="small">
  40. <text class="pintuanc6">¥ {{ item.minSalePrice }}</text>
  41. </view>
  42. </view>
  43. <view class="goods_item_data_box_l_person">
  44. {{ item.groupPeopleNum || 0 }}人团,已拼<text>{{
  45. item.resultSaleNum || 0
  46. }}</text
  47. >件
  48. </view>
  49. </view>
  50. <view class="goods_item_data_box_r">去拼团</view>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </template>
  57. <script setup>
  58. import { ref, watch } from "vue";
  59. const groupList = ref([]);
  60. const goProductDetails = (url) => {
  61. uni.navigateTo({
  62. url: url,
  63. });
  64. };
  65. </script>
  66. <style lang="scss" scoped>
  67. .groupCard {
  68. margin: auto;
  69. width: 720rpx;
  70. // height: 1500rpx;
  71. padding: 0 30rpx;
  72. // background: url('/static/convenienceService/cardBg.png')0 0 no-repeat;
  73. // background-size: 720rpx 1500rpx;
  74. box-shadow: 0rpx 4rpx 8rpx 0rpx #f1f1f1;
  75. border-radius: 16rpx;
  76. box-sizing: border-box;
  77. .num {
  78. display: flex;
  79. align-items: center;
  80. margin-top: 46rpx;
  81. font-weight: Bold;
  82. font-size: 20rpx;
  83. color: red;
  84. }
  85. .small {
  86. color: #cccccc;
  87. font-size: 22rpx;
  88. font-weight: 500;
  89. text-decoration: line-through;
  90. margin-left: 17rpx;
  91. }
  92. .group_title {
  93. display: flex;
  94. justify-content: space-between;
  95. padding: 35rpx 30rpx 20rpx 30rpx;
  96. align-items: center;
  97. border-bottom: 1rpx solid #e6e6e6;
  98. .group_title_l {
  99. font-size: 36rpx;
  100. color: #1a1a1a;
  101. font-weight: 700;
  102. }
  103. .group_title_r {
  104. font-size: 24rpx;
  105. color: #333333;
  106. }
  107. }
  108. .goodsListBox {
  109. .goods_item {
  110. &:last-child {
  111. border-bottom: none !important;
  112. }
  113. display: flex;
  114. padding: 50rpx 0 40rpx;
  115. border-bottom: 1rpx solid #e6e6e6;
  116. .goods_item_img {
  117. margin-right: 25rpx;
  118. image {
  119. width: 226rpx;
  120. height: 226rpx;
  121. }
  122. }
  123. .goods_item_data {
  124. flex: 1;
  125. .goods_item_data_title {
  126. font-size: 28rpx;
  127. min-height: 80rpx;
  128. color: #181818;
  129. overflow: hidden;
  130. text-overflow: ellipsis;
  131. display: -webkit-box;
  132. -webkit-line-clamp: 2;
  133. -webkit-box-orient: vertical;
  134. }
  135. .autotrophyCls {
  136. width: 69rpx;
  137. height: 30rpx;
  138. margin-right: 10rpx;
  139. margin-top: 10rpx;
  140. }
  141. .originalCls {
  142. width: 116rpx;
  143. height: 28rpx;
  144. margin-top: 10rpx;
  145. }
  146. .goods_item_data_box {
  147. display: flex;
  148. justify-content: space-between;
  149. align-items: center;
  150. margin-top: 10rpx;
  151. .goods_item_data_box_l {
  152. .goods_item_data_box_l_price {
  153. display: flex;
  154. align-items: flex-end;
  155. font-size: 20rpx;
  156. color: #00bf5a;
  157. text {
  158. font-size: 36rpx;
  159. font-weight: 500;
  160. display: inline-block;
  161. position: relative;
  162. top: 4rpx;
  163. }
  164. > view {
  165. font-size: 24rpx;
  166. color: #cccccc;
  167. margin-left: 30rpx;
  168. text-decoration: line-through;
  169. }
  170. }
  171. .goods_item_data_box_l_person {
  172. font-size: 24rpx;
  173. color: #333333;
  174. text {
  175. color: #ff0000;
  176. }
  177. }
  178. }
  179. .goods_item_data_box_r {
  180. width: 138rpx;
  181. height: 63rpx;
  182. background: #00bf5a;
  183. border-radius: 32rpx;
  184. font-size: 28rpx;
  185. display: flex;
  186. justify-content: center;
  187. align-items: center;
  188. color: #fff;
  189. }
  190. }
  191. }
  192. }
  193. }
  194. }
  195. </style>