groupBottom.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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: 0;
  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. }
  83. .bgLine {
  84. background: linear-gradient(90deg, rgba(239, 78, 81, 1) 0%, rgba(244, 113, 59, 1) 100%);
  85. }
  86. // 拼团支付按钮
  87. .goods-pay {
  88. display: flex;
  89. align-content: center;
  90. flex-wrap: wrap;
  91. justify-content: center;
  92. height: 100rpx;
  93. font-size: 22rpx;
  94. .goods-buttom {
  95. font-size: 35rpx;
  96. width: 100%;
  97. }
  98. &.bg-danger {
  99. // background:linear-gradient(14deg,rgba(254,107,38,1),rgba(255,50,40,1));
  100. background: linear-gradient(270deg, #5dbc7c 0%, #5dbc7c 100%);
  101. }
  102. .goods-pay-o {
  103. border: 1px solid #ddffdf;
  104. .title {
  105. background:linear-gradient(14deg,rgba(254,107,38,1),rgba(255,50,40,1));
  106. padding: 5rpx 10rpx;
  107. border-radius: 5rpx;
  108. line-height: 1;
  109. flex-shrink: 0;
  110. }
  111. .money {
  112. padding: 5rpx 10rpx;
  113. color: #ff0919;
  114. flex-grow: 1;
  115. }
  116. }
  117. .goods-pay-t {
  118. padding: 5rpx 10rpx;
  119. color: #ff0919;
  120. text {
  121. padding: 5rpx 10rpx;
  122. color: rgba(249, 220, 221, 1);
  123. }
  124. }
  125. .goods-pay-o,
  126. .goods-pay-t {
  127. width: 260rpx;
  128. border-radius: 5rpx;
  129. background-color: #fff5f4;
  130. border: 1px solid #f9dcdd;
  131. }
  132. }
  133. .bg-pinks {
  134. // background: linear-gradient(90deg, #f9dcdd, #feeeee);
  135. background: #ddffdf;
  136. // color: #FD1A2B !important;
  137. color: #5dbc7c;
  138. font-size: 32rpx !important;
  139. font-weight: bold;
  140. }
  141. .goods-pay-stop,
  142. .goods-pay {
  143. padding: 15rpx 0;
  144. height: 100%;
  145. width: 100%;
  146. }
  147. .goods-pay-stop {
  148. background: $color-gray;
  149. line-height: 70rpx;
  150. }
  151. }
  152. </style>