groupCard.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view :data-theme="theme" class="seckill ">
  3. <view class="seckill_activity pad-30 acea-row row-between acea-no-warp" :style="[...bgImage]">
  4. <view class="" >
  5. <image class="img" src="../../static/images/czpt.png" mode=""></image>
  6. <view class="acea-row price-box">
  7. <text class="title">拼团价</text>
  8. <text class="biao">¥</text>
  9. <text class="price semiBold">{{productInfo.groupPrice}}</text>
  10. <text class="ot-price text-dec">¥{{productInfo.price}}</text>
  11. </view>
  12. </view>
  13. <view class="acea-row row-column groupFoter">
  14. <view class="groupNum">{{groupBuyActivityResponse.buyCount}}人团</view>
  15. <view class="status">活动进行中</view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. import svipPrice from '@/components/svipPrice.vue';
  22. const app = getApp();
  23. export default {
  24. components: {
  25. svipPrice
  26. },
  27. props:['productInfo','groupBuyActivityResponse'],
  28. data() {
  29. return {
  30. urlDomain: this.$Cache.get("imgHost"),
  31. theme: app.globalData.theme,
  32. bgColor: {
  33. 'bgColor': '#fff',
  34. 'Color': '',
  35. 'width': '36rpx',
  36. 'timeTxtwidth': '16rpx',
  37. 'isDay': true
  38. },
  39. }
  40. },
  41. computed: {
  42. bgImage() {
  43. return [
  44. {
  45. 'background':`url(${this.urlDomain}crmebimage/public/store/2025/05/20/e3bd7fcec2534635b73c8d42b6b63071hobdvcsrki.png)`
  46. },
  47. {
  48. 'background-size':`cover`
  49. }
  50. ]
  51. }
  52. },
  53. }
  54. </script>
  55. <style scoped lang="scss">
  56. .pad-30 {
  57. padding: 0 30rpx;
  58. }
  59. .seckill_activity {
  60. width: 750rpx;
  61. height: 303rpx;
  62. color: #fff;
  63. padding: 0 30rpx;
  64. background-size: cover;
  65. .title,
  66. .ot-price {
  67. font-size: 22rpx;
  68. margin-top: 25rpx;
  69. }
  70. .biao {
  71. font-size: 22rpx;
  72. margin-top: 25rpx;
  73. }
  74. .price {
  75. font-size: 50rpx;
  76. margin-right: 8rpx;
  77. margin-top: 4rpx;
  78. }
  79. .groupFoter {
  80. margin-top: 28rpx;
  81. text-align: right;
  82. .groupNum{
  83. background: #FFFFFF;
  84. opacity: 0.9;
  85. font-size: 26rpx;
  86. color: #E93323;
  87. text-align: center;
  88. padding: 6rpx 16rpx;
  89. border-radius: 50rpx 40rpx 40rpx 0;
  90. }
  91. .status{
  92. margin-top: 20rpx;
  93. font-size: 26rpx;
  94. }
  95. }
  96. .img{
  97. width: 150rpx;
  98. height: 30rpx;
  99. margin-top: 28rpx;
  100. }
  101. .price-box{
  102. margin-top: 10rpx;
  103. }
  104. }
  105. </style>