groupDoing.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <!-- 拼团详情 -->
  3. <view class="doing" v-if="processItem.length">
  4. <view class="rd-14rpx bg--w111-fff mt-20 p-24">
  5. <view class="flex fs-24 notice pb-24 border-bottom mb-38">
  6. <image class="laba" src="../../static/images/laba.png" mode=""></image>
  7. <text class="text-red">已拼{{groupBuyActivityResponse.latestBuyCount||0}}件</text>
  8. <text v-if="groupBuyActivityResponse.groupBuyUserActivityDoneList">丨</text>
  9. <view class='swiper'>
  10. <swiper :indicator-dots="false" autoplay interval="2500" duration="500" vertical="true"
  11. circular="true">
  12. <block v-for="(item,index) in groupBuyActivityResponse.groupBuyUserActivityDoneList"
  13. :key='index'>
  14. <swiper-item>
  15. <view class='line1'>{{item.groupNickname}}拼团成功</view>
  16. </swiper-item>
  17. </block>
  18. </swiper>
  19. </view>
  20. </view>
  21. <view class="flex-between-center pink-cell" v-for='(item,index) in processItem' :key='index'
  22. v-if="index < 5">
  23. <view class="flex-1 flex-y-center">
  24. <image :src='item.orderDoneUserImages[0].groupAvatar' class="w-64 h-64 rd-50-p111-"></image>
  25. <view class="flex-y-center fs-26 pl-24">
  26. <text>还差 <text class="text-red">{{item.needSomeTogetherCount}}</text>人,</text>
  27. <text class="pl-8">还剩</text>
  28. <view class="time-box">
  29. <countDown :is-day="true" :tip-text="' '" :day-text="' : '" :hour-text="' : '"
  30. :minute-text="' : '" :second-text="' '" :isCol="false" :datatime="item.recordEndTime|dataTime"
  31. :bgColor="bgColor" :isBg="true">
  32. </countDown>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="w-120 h-56 rd-30rpx bg-red flex-center text--w111-fff fs-24"
  37. @click="$emit('toGroup',item.orderDoneUserImages[0].groupRecordId)">去拼团</view>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. import countDown from "@/components/countDown";
  44. export default {
  45. components: {
  46. countDown,
  47. },
  48. props: {
  49. processItem: {
  50. type: Array,
  51. default: () => [],
  52. },
  53. groupBuyActivityResponse: {
  54. type: Object,
  55. default: () => {},
  56. }
  57. },
  58. data() {
  59. return {
  60. bgColor: {
  61. 'bgColor': '#fff',
  62. 'Color': '',
  63. 'width': '36rpx',
  64. 'timeTxtwidth': '6rpx',
  65. 'isDay': true,
  66. 'txtColor': '#999'
  67. },
  68. }
  69. },
  70. created() {
  71. },
  72. methods: {
  73. }
  74. }
  75. </script>
  76. <style lang="scss" scoped>
  77. .doing {
  78. padding: 0 26rpx;
  79. margin: 22rpx 0;
  80. }
  81. .notice .swiper {
  82. width: 360rpx;
  83. overflow: hidden;
  84. margin-left: 8rpx;
  85. }
  86. .notice .swiper swiper {
  87. height: 30rpx;
  88. width: 100%;
  89. overflow: hidden;
  90. padding-bottom: 2px;
  91. font-size: 22rpx;
  92. color: #282828;
  93. }
  94. .border-bottom {
  95. border-bottom: 1rpx solid #eee;
  96. }
  97. .text-red {
  98. color: #e93323;
  99. }
  100. .pink-cell~.pink-cell {
  101. margin-top: 64rpx;
  102. }
  103. .time-box {
  104. margin-top: 2rpx;
  105. }
  106. .laba {
  107. width: 46rpx;
  108. height: 40rpx;
  109. }
  110. /deep/.swiper-item {
  111. height: 100rpx !important;
  112. }
  113. .swiper-item-box {
  114. height: auto !important;
  115. }
  116. </style>