groupTime.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. <template>
  2. <view class="introduce-section seckill-box-title">
  3. <view class="title flex" style="width: 100%;">
  4. <view class="title-left ">
  5. <view class="price-info">
  6. <view class="all-price">¥<text class="now-price">{{ goodsObjact.price }}</text><text class="old-price">¥{{goodsObjact.product_price}}</text><text class="pt-num">{{ goodsObjact.people }}人团{{pinkingNum}}人中</text></view>
  7. </view>
  8. <view class="pt-title">
  9. 拼中可得200积分,未拼中可得¥1.50元补贴
  10. </view>
  11. <!-- <view class="title-box flex_item">
  12. <view class="title-o">
  13. <view class="price-tip flex">
  14. <view class="tip-info">¥</view>
  15. <text class="price" style="font-size: 24rpx;">{{ goodsObjact.price }}</text>
  16. </view>
  17. </view>
  18. <view class="title-t">
  19. <view class="peice-out"></view>
  20. <view class="num">{{ goodsObjact.people }}人团1人中</view>
  21. </view>
  22. </view> -->
  23. <!-- <view class="group flex">
  24. <image src="/static/img/img064.png"></image>
  25. <view class="text">{{goodsObjact.pink_type}}</view>
  26. </view> -->
  27. </view>
  28. <!-- <view class="timeStop">
  29. <view class="item">
  30. <view class="timeStop-name">距离结束</view>
  31. <uni-countdown
  32. class="timeBox"
  33. color="#ffffff"
  34. background-color="#5dbc7c"
  35. splitor-color="#000000"
  36. :show-day="false"
  37. :hour="seckillObj.stopTimeH+(seckillObj.stopTimeD*24)"
  38. :minute="seckillObj.stopTimeM"
  39. :second="seckillObj.stopTimeS"
  40. ></uni-countdown>
  41. </view>
  42. </view> -->
  43. <button class="shop-share" open-type="share">
  44. <view class="share-icon"><image src="../../../static/icon/share.png" mode=""></image></view>
  45. <view class="share-title">拼团分享</view>
  46. </button>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. import uniCountdown from '@/components/uni-countdown/uni-countdown.vue';
  52. export default {
  53. components: {
  54. uniCountdown
  55. },
  56. props: {
  57. goodsObjact: {
  58. type: Object,
  59. default: function() {
  60. return {
  61. price: 0,
  62. product_price: 0,
  63. people: 0
  64. };
  65. }
  66. },
  67. seckillObj: {
  68. type: Object,
  69. default: function() {
  70. return {
  71. stopTime: 0, //结束时间
  72. stop: false, //是否结束
  73. stopTimeH: 0, //小时
  74. stopTimeM: 0, //分钟
  75. stopTimeS: 0, //秒钟
  76. stopTimeD: 0, //秒钟
  77. upTime: 0
  78. };
  79. }
  80. },
  81. pinkingNum: {
  82. type: Number,
  83. default: 0
  84. }
  85. },
  86. data() {
  87. return {};
  88. }
  89. };
  90. </script>
  91. <style lang="scss">
  92. /* 标题简介 */
  93. .introduce-section {
  94. position: relative;
  95. background: #fff;
  96. // outline: 1rpx red solid;
  97. box-shadow: 10rpx 10rpx 10rpx rgba(0,0,0,0.2);
  98. z-index: 998;
  99. .title {
  100. // background-color: #901b21;
  101. font-size: 32rpx;
  102. color: $font-color-dark;
  103. // background-color: #901b21;
  104. // box-shadow: 10px 10px 10px red !important;
  105. .tip-o {
  106. color: #ff3334;
  107. padding-left: 15rpx;
  108. }
  109. .title-left {
  110. // padding: 15rpx;
  111. width: 560rpx;
  112. background-color: #901b21;
  113. height: 121rpx;
  114. padding: 25rpx 0 0 25rpx;
  115. color: #fff;
  116. .price-info {
  117. }
  118. }
  119. }
  120. .title-box {
  121. color: #ffffff;
  122. .title-o {
  123. .price {
  124. font-size: 32rpx !important;
  125. position: relative;
  126. top: 8rpx;
  127. }
  128. }
  129. .title-t {
  130. font-size: 20rpx !important;
  131. position: relative;
  132. top: 0rpx;
  133. // top: 10rpx;
  134. // background-color: #c9969a;
  135. // border-radius: 3rpx 3rpx;
  136. .peice-out {
  137. text-decoration: line-through;
  138. }
  139. .num {
  140. // margin-top: 10rpx;
  141. padding:6rpx 8rpx 6rpx 130rpx;
  142. border: 6rpx solid #c9969a;
  143. background-color: #c9969a;
  144. color: #fff;
  145. border-radius: 20rpx 20rpx;
  146. padding: 0 5rpx ;
  147. float: left;
  148. }
  149. }
  150. }
  151. .group {
  152. color: #ffffff;
  153. position: relative;
  154. top: 8rpx;
  155. image {
  156. width: 55rpx;
  157. height: 45rpx;
  158. }
  159. .text {
  160. font-size: 40rpx !important;
  161. padding-left: 10rpx;
  162. }
  163. }
  164. .timeStop {
  165. // background-color: #feeeee;
  166. background: #ddffdf;
  167. height: 120rpx;
  168. padding: 0 10rpx;
  169. position: relative;
  170. width: 0;
  171. flex-grow: 1;
  172. .timeStop-name {
  173. padding-top: 15rpx;
  174. text-align: center;
  175. // color: #ff3334;
  176. color:#5dbc7c;
  177. font-size: 20rpx;
  178. }
  179. .timeBox {
  180. // margin-left: -10rpx;
  181. position: absolute;
  182. top: 50rpx;
  183. }
  184. .item{
  185. height: 120rpx;
  186. width: 0;
  187. min-width: 100%;
  188. position: relative;
  189. }
  190. }
  191. .share-img {
  192. width: 30rpx;
  193. height: 30rpx;
  194. position: relative;
  195. top: 5rpx;
  196. left: 0;
  197. margin-right: 10rpx;
  198. }
  199. .shop-share {
  200. border: none;
  201. width: 146rpx;
  202. height: 121rpx;
  203. background: #FFFFFF;
  204. display: felx;
  205. align-items: center;
  206. // border-radius: 0 2rpx 2rpx 0;
  207. padding: 25rpx 0 0 0;
  208. .share-icon {
  209. width: 42rpx;
  210. height: 42rpx;
  211. margin: 0 auto 15rpx;
  212. image {
  213. width: 100%;
  214. height: 100%;
  215. }
  216. }
  217. .share-title {
  218. font-size: 24rpx;
  219. font-weight: bold;
  220. color: #262A35;
  221. margin: 0 auto;
  222. text-align: center;
  223. line-height: 1;
  224. }
  225. }
  226. }
  227. .seckill-box-title {
  228. // background:linear-gradient(14deg,rgba(254,107,38,1),rgba(255,50,40,1)) !important;
  229. // background: linear-gradient(270deg, #5dbc7c 0%, #5dbc7c 100%) !important;
  230. // background: #901b21;
  231. overflow: hidden;
  232. width: 694rpx;
  233. height: 121rpx;
  234. border-radius: 10rpx 10rpx;
  235. top: -60.5rpx;
  236. left: 28rpx;
  237. margin-bottom: -60.5rpx;
  238. .price,
  239. .m-price {
  240. color: #ffffff !important;
  241. }
  242. .price-tip {
  243. font-size: $font-base;
  244. color: #ffffff !important;
  245. }
  246. .tip-info{
  247. position: relative;
  248. top:8rpx;
  249. font-size: 22rpx !important;
  250. padding-right: 4rpx;
  251. font-weight: bold;
  252. }
  253. }
  254. .price {
  255. font-size: 80rpx !important;
  256. font-weight: bold;
  257. }
  258. .all-price {
  259. font-size: 18rpx;
  260. font-weight: 500;
  261. .now-price {
  262. font-size: 32rpx;
  263. font-weight: bold;
  264. }
  265. .pt-num {
  266. display: inline-block;
  267. font-size: 20rpx;
  268. background-color: #c9969a;
  269. padding: 6rpx 6rpx 8rpx 13rpx;
  270. border-radius: 20rpx 20rpx;
  271. position: relative;
  272. bottom: 8rpx;
  273. }
  274. .old-price {
  275. // display: inline;
  276. margin: 0 7rpx;
  277. text-decoration: line-through;
  278. }
  279. }
  280. .pt-title {
  281. font-size: 24rpx;
  282. font-weight: 500;
  283. }
  284. </style>