groupTime.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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="/static/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="#5dbc7c"
  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: #ddffdf;
  138. height: 120rpx;
  139. padding: 0 10rpx;
  140. position: relative;
  141. width: 0;
  142. flex-grow: 1;
  143. .timeStop-name {
  144. padding-top: 15rpx;
  145. text-align: center;
  146. // color: #ff3334;
  147. color:#5dbc7c;
  148. font-size: 20rpx;
  149. }
  150. .timeBox {
  151. // margin-left: -10rpx;
  152. position: absolute;
  153. top: 50rpx;
  154. }
  155. .item{
  156. height: 120rpx;
  157. width: 0;
  158. min-width: 100%;
  159. position: relative;
  160. }
  161. }
  162. .share-img {
  163. width: 30rpx;
  164. height: 30rpx;
  165. position: relative;
  166. top: 5rpx;
  167. left: 0;
  168. margin-right: 10rpx;
  169. }
  170. }
  171. .seckill-box-title {
  172. // background:linear-gradient(14deg,rgba(254,107,38,1),rgba(255,50,40,1)) !important;
  173. background: linear-gradient(270deg, #5dbc7c 0%, #5dbc7c 100%) !important;
  174. .price,
  175. .m-price {
  176. color: #ffffff !important;
  177. }
  178. .price-tip {
  179. font-size: $font-base;
  180. color: #ffffff !important;
  181. }
  182. .tip-info{
  183. position: relative;
  184. top:18rpx;
  185. font-size: 32rpx !important;
  186. padding-right: 8rpx;
  187. }
  188. .price {
  189. font-size: 45rpx !important;
  190. font-weight: bold;
  191. }
  192. }
  193. </style>