app-bd-info.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <view>
  3. <view class="main-between info-box">
  4. <view class="main-left">
  5. <image class="gd-cover" :src="info.cover_img" mode=""></image>
  6. <view>
  7. <view class="title">{{info.name}}</view>
  8. <view>
  9. <text class="price">
  10. <text class="dw">¥</text>
  11. <text class="rmb">{{total?total:info.discount_amount}}</text>
  12. <text class="decimal">.00</text>
  13. </text>
  14. <text class="price-line"><text v-if="info.min_composition_price">¥</text>{{info.min_composition_price}}</text>
  15. </view>
  16. <view class="main-between">
  17. <view class="main-left">
  18. <view class="tag">{{info.tag}}</view>
  19. <!-- <view class="tag">全款</view> -->
  20. <!-- <view class="tag">满200减10</view> -->
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="cross-bottom">
  26. <view class="main-center cross-center receive" @click="receive" v-if="coupons.length>0">
  27. 领券<image src="https://t17.9026.com/web/statics/image/index/arrow-right-facet-white.png" mode=""></image>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. props:{
  36. info:Object,
  37. coupons:Array,
  38. total:Number,
  39. },
  40. data() {
  41. return {
  42. };
  43. },
  44. methods:{
  45. receive(){
  46. this.$emit('receive')
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. .receive{
  53. width: 92rpx;
  54. height: 38rpx;
  55. background: #FF0000;
  56. border-radius: 19rpx;
  57. font-size: 20rpx;
  58. font-weight: 500;
  59. color: #FFFFFF;
  60. line-height: 38rpx;
  61. text-align: center;
  62. image{
  63. width: 22rpx;
  64. height: 22rpx;
  65. margin-left: 7rpx;
  66. }
  67. }
  68. .info-box{
  69. width: 100%;
  70. height: 230rpx;
  71. background-color: #fff;
  72. padding: 35rpx;
  73. .gd-cover{
  74. width: 170rpx;
  75. height: 170rpx;
  76. border-radius: 8rpx;
  77. overflow: hidden;
  78. margin-right: 28rpx;
  79. }
  80. .title{
  81. font-size: 32rpx;
  82. font-weight: bold;
  83. color: #222222;
  84. line-height: 46rpx;
  85. }
  86. .price{
  87. color: #F93F3F;
  88. line-height: 70rpx;
  89. .dw{
  90. font-size: 24rpx;
  91. font-weight: 500;
  92. }
  93. .rmb{
  94. font-size: 40rpx;
  95. font-weight: 600;
  96. }
  97. .decimal{
  98. font-size: 24rpx;
  99. font-weight: 500;
  100. }
  101. }
  102. .price-line{
  103. font-size: 20rpx;
  104. font-weight: 500;
  105. text-decoration: line-through;
  106. color: #999999;
  107. line-height: 36rpx;
  108. margin-left: 21rpx;
  109. }
  110. .tag{
  111. width: auto;
  112. height: 28rpx;
  113. border: 1rpx solid #F59922;
  114. border-radius: 2rpx;
  115. font-size: 20rpx;
  116. font-weight: 500;
  117. color: #F59922;
  118. line-height: 24rpx;
  119. margin-right: 13rpx;
  120. padding: 0 9rpx;
  121. }
  122. }
  123. </style>