groupBottom.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <view class="goods-pay-box ">
  3. <view class="goods-pay-buttom flex" v-if="!seckillObj.stop">
  4. <!-- <view class="goods-pay bg-pinks"> -->
  5. <!-- <view class="goods-pay-o flex">
  6. <view class="title">本单发起人奖金</view>
  7. <view class="money">{{peopleMoney}}元</view>
  8. </view>
  9. <view class="goods-pay-t">
  10. 本单销售额佣金
  11. <text>?%</text>
  12. </view> -->
  13. <!-- 发起拼团得奖金 -->
  14. <!-- </view> -->
  15. <!-- 单规格 -->
  16. <view class="goods-pay bg-danger" v-if="many == 1" @click="buy(1)"><view class="goods-buttom">立即参团</view></view>
  17. <!-- 多规格 -->
  18. <view class="goods-pay bg-danger" v-else @click="buys"><view class="goods-buttom">立即参团</view></view>
  19. </view>
  20. <view class="goods-pay-stop" v-else>活动已结束</view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. props: {
  26. peoplePrize: {
  27. default:0
  28. },
  29. seckillObj: {
  30. type: Object,
  31. default: function() {
  32. return {
  33. stopTime: 0, //结束时间
  34. stop: false, //是否结束
  35. stopTimeH: 0, //小时
  36. stopTimeM: 0, //分钟
  37. stopTimeS: 0 //秒钟
  38. };
  39. }
  40. },
  41. many:{
  42. default:9
  43. }
  44. },
  45. computed: {
  46. peopleMoney() {
  47. return +this.peoplePrize
  48. }
  49. },
  50. data() {
  51. return {};
  52. },
  53. methods: {
  54. buy(ls) {
  55. this.$emit('buy', ls);
  56. },
  57. buys(){
  58. this.$emit('specOPne');
  59. }
  60. }
  61. };
  62. </script>
  63. <style lang="scss">
  64. // 底部拼团、秒杀支付按钮
  65. .goods-pay-box {
  66. position: fixed;
  67. left: 0;
  68. bottom: 35rpx;
  69. z-index: 99;
  70. width: 100%;
  71. height: 100rpx;
  72. line-height: 1;
  73. color: #ffffff;
  74. padding: 10rpx 30rpx;
  75. text-align: center;
  76. font-size: $font-lg;
  77. background-color: #ffffff;
  78. .goods-pay-buttom {
  79. overflow: hidden;
  80. // border-radius: 99rpx;
  81. // height: 100%;
  82. width: 699rpx;
  83. height: 90rpx;
  84. // background: linear-gradient(90deg, #FE6F61 0%, #FF4343 100%);
  85. border-radius: 45rpx;
  86. }
  87. .bgLine {
  88. background: linear-gradient(90deg, rgba(239, 78, 81, 1) 0%, rgba(244, 113, 59, 1) 100%);
  89. }
  90. // 拼团支付按钮
  91. .goods-pay {
  92. display: flex;
  93. align-content: center;
  94. flex-wrap: wrap;
  95. justify-content: center;
  96. height: 100rpx;
  97. font-size: 22rpx;
  98. .goods-buttom {
  99. font-size: 35rpx;
  100. width: 100%;
  101. }
  102. &.bg-danger {
  103. // background:linear-gradient(14deg,rgba(254,107,38,1),rgba(255,50,40,1));
  104. // background: linear-gradient(270deg, #5dbc7c 0%, #5dbc7c 100%);
  105. // background:linear-gradient(14deg,rgba(254,107,38,1),rgba(255,50,40,1));
  106. background: #901b21 !important;
  107. }
  108. .goods-pay-o {
  109. border: 1px solid #ddffdf;
  110. .title {
  111. padding: 5rpx 10rpx;
  112. border-radius: 5rpx;
  113. line-height: 1;
  114. flex-shrink: 0;
  115. }
  116. .money {
  117. padding: 5rpx 10rpx;
  118. color: #ff0919;
  119. flex-grow: 1;
  120. }
  121. }
  122. .goods-pay-t {
  123. padding: 5rpx 10rpx;
  124. color: #ff0919;
  125. text {
  126. padding: 5rpx 10rpx;
  127. color: rgba(249, 220, 221, 1);
  128. }
  129. }
  130. .goods-pay-o,
  131. .goods-pay-t {
  132. width: 260rpx;
  133. border-radius: 5rpx;
  134. background-color: #fff5f4;
  135. border: 1px solid #f9dcdd;
  136. }
  137. }
  138. .bg-pinks {
  139. // background: linear-gradient(90deg, #f9dcdd, #feeeee);
  140. background: #ddffdf;
  141. // color: #FD1A2B !important;
  142. color: #5dbc7c;
  143. font-size: 32rpx !important;
  144. font-weight: bold;
  145. }
  146. .goods-pay-stop,
  147. .goods-pay {
  148. padding: 15rpx 0;
  149. height: 100%;
  150. width: 100%;
  151. }
  152. .goods-pay-stop {
  153. background: $color-gray;
  154. line-height: 70rpx;
  155. }
  156. }
  157. </style>