app-bd-info.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <template>
  2. <view>
  3. <view class="main-between info-box">
  4. <view class="main-left">
  5. <image class="gd-cover" src="https://swdzshopv4.oss-cn-chengdu.aliyuncs.com/uploads/mall10000/20211213/bea32f790435d8a108717fd823113cda.jpg" mode=""></image>
  6. <view>
  7. <view class="title">{{name}}</view>
  8. <view>
  9. <text class="price">
  10. <text class="dw">¥</text>
  11. <text class="rmb">2466</text>
  12. <text class="decimal">.00</text>
  13. </text>
  14. <text class="price-line"><text>¥</text>3000.00</text>
  15. </view>
  16. <view class="main-between">
  17. <view class="main-left">
  18. <view class="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">
  27. 领券<image src="../../../../static/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. name:String,
  37. max
  38. },
  39. data() {
  40. return {
  41. };
  42. },
  43. methods:{
  44. receive(){
  45. this.$emit('receive')
  46. }
  47. }
  48. }
  49. </script>
  50. <style lang="scss" scoped>
  51. .receive{
  52. width: 92rpx;
  53. height: 38rpx;
  54. background: #FF0000;
  55. border-radius: 19rpx;
  56. font-size: 20rpx;
  57. font-weight: 500;
  58. color: #FFFFFF;
  59. line-height: 38rpx;
  60. text-align: center;
  61. image{
  62. width: 22rpx;
  63. height: 22rpx;
  64. margin-left: 7rpx;
  65. }
  66. }
  67. .info-box{
  68. width: 100%;
  69. height: 230rpx;
  70. background-color: #fff;
  71. padding: 35rpx;
  72. .gd-cover{
  73. width: 170rpx;
  74. height: 170rpx;
  75. border-radius: 8rpx;
  76. overflow: hidden;
  77. margin-right: 28rpx;
  78. }
  79. .title{
  80. font-size: 32rpx;
  81. font-weight: bold;
  82. color: #222222;
  83. line-height: 46rpx;
  84. }
  85. .price{
  86. color: #F93F3F;
  87. line-height: 70rpx;
  88. .dw{
  89. font-size: 24rpx;
  90. font-weight: 500;
  91. }
  92. .rmb{
  93. font-size: 40rpx;
  94. font-weight: 600;
  95. }
  96. .decimal{
  97. font-size: 24rpx;
  98. font-weight: 500;
  99. }
  100. }
  101. .price-line{
  102. font-size: 20rpx;
  103. font-weight: 500;
  104. text-decoration: line-through;
  105. color: #999999;
  106. line-height: 36rpx;
  107. }
  108. .tag{
  109. width: auto;
  110. height: 25rpx;
  111. border: 1rpx solid #F59922;
  112. border-radius: 2rpx;
  113. font-size: 20rpx;
  114. font-weight: 500;
  115. color: #F59922;
  116. line-height: 24rpx;
  117. margin-right: 13rpx;
  118. padding: 0 9rpx;
  119. }
  120. }
  121. </style>