productContent.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view class="introduce-section">
  3. <text class="title clamp2">{{ goodsObjact.store_name }}</text>
  4. <text class="info" v-if="goodsObjact.store_info">{{ goodsObjact.store_info }}</text>
  5. <view class="m-price" v-if="goodsObjact.ot_price > goodsObjact.price"><image src="../../../static/img/list02.png" mode=""></image>市场参考价¥{{ goodsObjact.ot_price }}</view>
  6. <view class="price-box">
  7. <view class="price-img">
  8. <image src="../../../static/img/list03.png" mode=""></image>
  9. </view>
  10. <text class="price-tip">¥</text>
  11. <view class="price">
  12. {{ goodsObjact.price }}
  13. </view>
  14. <view class="price-img-right">
  15. <image src="../../../static/img/list01.png" mode=""></image>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. props: {
  23. goodsObjact: {
  24. type: Object,
  25. default: function() {
  26. return {
  27. percent:1
  28. };
  29. }
  30. }
  31. },
  32. filters: {
  33. parseIntTo(percent) {
  34. percent = +percent * 100;
  35. if (percent % 1 === 0) {
  36. return percent;
  37. } else {
  38. percent = percent.toFixed(1);
  39. return percent;
  40. }
  41. }
  42. },
  43. data() {
  44. return {};
  45. }
  46. };
  47. </script>
  48. <style lang="scss">
  49. /* 标题简介 */
  50. .introduce-section {
  51. position: relative;
  52. background: #fff;
  53. padding: 26rpx 26rpx 30rpx 20rpx;
  54. .title {
  55. // margin-top: 26rpx;
  56. font-size: 36rpx;
  57. font-family: PingFang SC;
  58. font-weight: 800;
  59. color: #333333;
  60. }
  61. .shareDate {
  62. position: absolute;
  63. top: 25rpx;
  64. right: 25rpx;
  65. font-size: 26rpx;
  66. color: #3d3f46;
  67. border-radius: 15rpx;
  68. background-color: #ffffff;
  69. height: 60rpx;
  70. line-height: 60rpx;
  71. }
  72. .share-img {
  73. width: 30rpx;
  74. height: 30rpx;
  75. position: relative;
  76. top: 5rpx;
  77. left: 0;
  78. margin-right: 10rpx;
  79. }
  80. .info {
  81. color: #999999;
  82. font-size: 26rpx;
  83. padding-bottom: 15rpx;
  84. }
  85. .progress-box {
  86. width: 260rpx;
  87. position: relative;
  88. margin-top: 15rpx;
  89. line-height: 10px;
  90. .number {
  91. font-size: 17rpx;
  92. position: absolute;
  93. z-index: 999;
  94. top: 3rpx;
  95. left: 15rpx;
  96. color: #ffffff;
  97. }
  98. }
  99. .price-box {
  100. display: flex;
  101. align-items: baseline;
  102. font-size: 40rpx;
  103. color: #303030;
  104. .price-img{
  105. margin-right: 10rpx;
  106. width: 24rpx;
  107. height: 24rpx;
  108. image{
  109. width: 100%;
  110. height: 100%;
  111. }
  112. }
  113. .price-img-right{
  114. margin-left: 10rpx;
  115. width: 96rpx;
  116. height: 24rpx;
  117. image{
  118. width: 100%;
  119. height: 100%;
  120. }
  121. }
  122. }
  123. .price {
  124. font-size: 50rpx;
  125. .text {
  126. padding-left: 5rpx;
  127. color: #b0b0b0;
  128. font-size: 32rpx !important;
  129. }
  130. }
  131. .m-price {
  132. image{
  133. width: 20rpx;
  134. height: 20rpx;
  135. margin-right: 10rpx;
  136. }
  137. font-size: 26rpx;
  138. font-weight: 500;
  139. color: #FF4C4C;
  140. line-height: 37rpx;
  141. }
  142. }
  143. </style>