groupTime.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <template>
  2. <view class="introduce-section seckill-box-title">
  3. <view class="title flex" style="width: 100%;">
  4. <view class="title-left flex">
  5. <view class="title-box flex_item">
  6. <view class="title-o">
  7. <view class="price-tip flex">
  8. <view class="tip-info">¥</view>
  9. <text class="price">{{ goodsObjact.price }}</text>
  10. </view>
  11. </view>
  12. <view class="title-t">
  13. <view class="peice-out"></view>
  14. <view class="num">{{ goodsObjact.people }}人起团</view>
  15. </view>
  16. </view>
  17. <view class="group flex">
  18. <image src="/https://hy.liuniu946.com/app/img/img064.png"></image>
  19. <view class="text">{{goodsObjact.pink_type}}</view>
  20. </view>
  21. </view>
  22. <view class="timeStop">
  23. <view class="item">
  24. <view class="timeStop-name">距离结束</view><!-- #FF3334 -->
  25. <uni-countdown
  26. class="timeBox"
  27. color="#ffffff"
  28. background-color="#f75022"
  29. splitor-color="#000000"
  30. :show-day="false"
  31. :hour="seckillObj.stopTimeH+(seckillObj.stopTimeD*24)"
  32. :minute="seckillObj.stopTimeM"
  33. :second="seckillObj.stopTimeS"
  34. ></uni-countdown>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. import uniCountdown from '@/components/uni-countdown/uni-countdown.vue';
  42. export default {
  43. components: {
  44. uniCountdown
  45. },
  46. props: {
  47. goodsObjact: {
  48. type: Object,
  49. default: function() {
  50. return {
  51. price: 0,
  52. product_price: 0,
  53. people: 0
  54. };
  55. }
  56. },
  57. seckillObj: {
  58. type: Object,
  59. default: function() {
  60. return {
  61. stopTime: 0, //结束时间
  62. stop: false, //是否结束
  63. stopTimeH: 0, //小时
  64. stopTimeM: 0, //分钟
  65. stopTimeS: 0, //秒钟
  66. stopTimeD: 0, //秒钟
  67. upTime: 0
  68. };
  69. }
  70. }
  71. },
  72. data() {
  73. return {};
  74. }
  75. };
  76. </script>
  77. <style lang="scss">
  78. /* 标题简介 */
  79. .introduce-section {
  80. position: relative;
  81. background: #fff;
  82. .title {
  83. font-size: 32rpx;
  84. color: $font-color-dark;
  85. .tip-o {
  86. color: #ff3334;
  87. padding-left: 15rpx;
  88. }
  89. .title-left {
  90. padding: 15rpx;
  91. width: 560rpx;
  92. }
  93. }
  94. .title-box {
  95. color: #ffffff;
  96. .title-o {
  97. .price {
  98. font-size: 65rpx !important;
  99. position: relative;
  100. top: 8rpx;
  101. }
  102. }
  103. .title-t {
  104. font-size: 24rpx !important;
  105. position: relative;
  106. bottom: 10rpx;
  107. padding-left: 10rpx;
  108. top: 10rpx;
  109. .peice-out {
  110. text-decoration: line-through;
  111. }
  112. .num {
  113. margin-top: 10rpx;
  114. background-color: #ffffff;
  115. color: #ff3a56;
  116. border-radius: 8rpx;
  117. padding: 0 5rpx ;
  118. float: left;
  119. }
  120. }
  121. }
  122. .group {
  123. color: #ffffff;
  124. position: relative;
  125. top: 8rpx;
  126. image {
  127. width: 55rpx;
  128. height: 45rpx;
  129. }
  130. .text {
  131. font-size: 40rpx !important;
  132. padding-left: 10rpx;
  133. }
  134. }
  135. .timeStop {
  136. // background-color: #feeeee;
  137. background: linear-gradient(90deg, #f9dcdd, #feeeee);
  138. // background: #ffa13f;
  139. height: 120rpx;
  140. padding: 0 10rpx;
  141. position: relative;
  142. width: 0;
  143. flex-grow: 1;
  144. .timeStop-name {
  145. padding-top: 15rpx;
  146. text-align: center;
  147. // color: #ff3334;
  148. color:#f75022;
  149. font-size: 20rpx;
  150. }
  151. .timeBox {
  152. // margin-left: -10rpx;
  153. position: absolute;
  154. top: 50rpx;
  155. }
  156. .item{
  157. height: 120rpx;
  158. width: 0;
  159. min-width: 100%;
  160. position: relative;
  161. }
  162. }
  163. .share-img {
  164. width: 30rpx;
  165. height: 30rpx;
  166. position: relative;
  167. top: 5rpx;
  168. left: 0;
  169. margin-right: 10rpx;
  170. }
  171. }
  172. .seckill-box-title {
  173. // background:linear-gradient(14deg,rgba(254,107,38,1),rgba(255,50,40,1)) !important;
  174. background: linear-gradient(270deg, #f75022 0%, #f75022 100%) !important;
  175. .price,
  176. .m-price {
  177. color: #ffffff !important;
  178. }
  179. .price-tip {
  180. font-size: $font-base;
  181. color: #ffffff !important;
  182. }
  183. .tip-info{
  184. position: relative;
  185. top:18rpx;
  186. font-size: 32rpx !important;
  187. padding-right: 8rpx;
  188. }
  189. .price {
  190. font-size: 45rpx !important;
  191. font-weight: bold;
  192. }
  193. }
  194. </style>