groupContent.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <view class="introduce-section">
  3. <text class="title clamp">
  4. {{goodsObjact.title}}
  5. <!-- <text class="tip-o">截单后8小时到货</text> -->
  6. </text>
  7. <!-- <button open-type="share" class="shareDate flex_item">
  8. <image class="share-img" src="/static/img/img085.png"></image>
  9. <view class="name">分享</view>
  10. </button> -->
  11. <!-- <view class="progress-box">
  12. <progress :percent="goodsObjact.percent | parseIntTo" activeColor="#F65527" font-size="10" show-info border-radius="5" stroke-width="9" />
  13. <view class="number">剩余{{ goodsObjact.percent | parseIntTo }}%</view>
  14. </view> -->
  15. <!-- <view class="old_price" v-if="goodsObjact.pink_type == '达人团'">
  16. ¥{{ goodsObjact.product_price }}
  17. </view> -->
  18. <!-- <text class="info" v-if="goodsObjact.store_info">{{ goodsObjact.store_info }}</text> -->
  19. <!-- <view class="price-green">
  20. ¥{{ goodsObjact.product_price }}
  21. <text>市场价</text>
  22. </view> -->
  23. <view class="good-base">
  24. <view class="postage">邮费:{{goodsObjact.postage}}</view>
  25. <view class="stock">剩余:{{goodsObjact.stock}}</view>
  26. <view class="addr">浙江省 台州市</view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. props: {
  33. goodsObjact: {
  34. type: Object,
  35. default: function() {
  36. return {
  37. store_info: '',
  38. ot_price: ''
  39. };
  40. }
  41. }
  42. },
  43. data() {
  44. return {};
  45. },
  46. filters: {
  47. parseIntTo(percent) {
  48. percent = +percent * 100;
  49. if (percent % 1 === 0) {
  50. return percent;
  51. } else {
  52. percent = percent.toFixed(1);
  53. return percent;
  54. }
  55. }
  56. },
  57. methods: {
  58. Getcoupon() {
  59. this.$emit('click');
  60. }
  61. }
  62. };
  63. </script>
  64. <style lang="scss">
  65. /* 标题简介 */
  66. .introduce-section {
  67. position: relative;
  68. background: #fff;
  69. padding: 35rpx 0rpx;
  70. padding-left: 35rpx;
  71. margin-bottom: 15rpx;
  72. .title {
  73. font-size: 32rpx;
  74. color: $font-color-dark;
  75. height: 50rpx;
  76. width: 70%;
  77. font-weight: bold;
  78. .tip-o {
  79. color: #ff3334;
  80. padding-left: 15rpx;
  81. font-size: 25rpx;
  82. }
  83. }
  84. .shareDate {
  85. padding: 15rpx 25rpx;
  86. padding-bottom: 25rpx !important;
  87. position: absolute;
  88. top: 25rpx;
  89. right: 0rpx;
  90. font-size:30rpx;
  91. color: #3d3f46;
  92. border-bottom-left-radius: 25rpx;
  93. border-top-left-radius: 25rpx;
  94. background-color: #ffffff;
  95. height: 60rpx;
  96. background-color:#F2FEE6;
  97. border: none !important;
  98. }
  99. uni-button:after{
  100. border: none !important;
  101. }
  102. .share-img {
  103. width: 45rpx;
  104. height: 45rpx;
  105. position: relative;
  106. top: 5rpx;
  107. left: 0;
  108. margin-right: 10rpx;
  109. }
  110. .name{
  111. position: relative;
  112. top: 5rpx;
  113. }
  114. .progress-box {
  115. width: 260rpx;
  116. position: relative;
  117. margin-top: 15rpx;
  118. line-height: 10px;
  119. .number {
  120. font-size: 17rpx;
  121. position: absolute;
  122. z-index: 999;
  123. top: 3rpx;
  124. left: 15rpx;
  125. color: #ffffff;
  126. }
  127. }
  128. .old_price {
  129. margin-top: 10rpx;
  130. font-size: $font-base;
  131. text-decoration: line-through;
  132. color: #7a7a7a;
  133. }
  134. .info {
  135. color: #999999;
  136. font-size: 26rpx;
  137. padding-bottom: 15rpx;
  138. }
  139. .price-green {
  140. color: #2dbd59;
  141. font-size: 28rpx !important;
  142. text {
  143. background: #2dbd59;
  144. color: #ffffff;
  145. padding: 0rpx 10rpx;
  146. border-radius: 5rpx;
  147. font-size: 22rpx !important;
  148. margin-left: 15rpx;
  149. }
  150. }
  151. .good-base {
  152. padding-top: 20rpx;
  153. display: flex;
  154. // padding: 0 30rpx;
  155. padding-right: 30rpx;
  156. justify-content: space-between;
  157. font-size: 24rpx;
  158. font-weight: 500;
  159. color: #999999;
  160. }
  161. }
  162. </style>