详情小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.3 KiB

  1. <template>
  2. <view class="content">
  3. <view class="card" :class="'bg-color'+ (item+1)" v-for="item in 3" :key="item">
  4. <view>
  5. <text class="title">套餐一实实用用</text>
  6. <text class="label">6.5</text>
  7. </view>
  8. <view class="lf-m-t-12 lf-font-24 lf-row-between">
  9. <view class="lf-color-777">红线数</view>
  10. <view class="lf-color-222">1</view>
  11. </view>
  12. <view class="lf-m-t-12 lf-font-24 lf-row-between">
  13. <view class="lf-color-777">有效时间</view>
  14. <view class="lf-color-222">3</view>
  15. </view>
  16. <view class="lf-m-t-16 lf-row-between">
  17. <view>
  18. <lf-price :price="30.12" color="#E21196"></lf-price>
  19. <text class="original-price">¥30.00</text>
  20. </view>
  21. <view class="btn" hover-class="lf-opacity">立即购买</view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import lfPrice from '@/components/lf-price/lf-price.vue'
  28. export default {
  29. components: { lfPrice },
  30. data(){
  31. return {
  32. }
  33. },
  34. onLoad(){
  35. // 点击买字按钮直接调取支付
  36. },
  37. methods: {
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped="scoped">
  42. .content{
  43. width: 750rpx;
  44. height: max-content;
  45. padding: 30rpx 32rpx;
  46. box-sizing: border-box;
  47. .card{
  48. width: 686rpx;
  49. height: max-content;
  50. background-color: #FFFFFF;
  51. box-shadow: 0rpx 2rpx 4rpx 2rpx rgba(0, 0, 0, 0.07);
  52. border-radius: 10rpx;
  53. padding: 30rpx;
  54. box-sizing: border-box;
  55. &:nth-child(n+2){
  56. margin-top: 30rpx;
  57. }
  58. .title{
  59. font-size: 28rpx;
  60. font-weight: bold;
  61. color: #222222;
  62. margin-right: 15rpx;
  63. }
  64. .label{
  65. display: inline-block;
  66. width: 84rpx;
  67. height: 33rpx;
  68. border-radius: 3rpx;
  69. border: 2rpx solid #E21196;
  70. font-size: 24rpx;
  71. color: #E21196;
  72. text-align: center;
  73. line-height: 29rpx;
  74. }
  75. .original-price{
  76. margin-left: 15rpx;
  77. color: #777777;
  78. font-size: 24rpx;
  79. text-decoration: line-through;
  80. }
  81. .btn{
  82. width: 130rpx;
  83. height: 43rpx;
  84. background: linear-gradient(180deg, #FE3EA5 0%, #FE7350 100%);
  85. border-radius: 22rpx;
  86. font-size: 24rpx;
  87. color: #FFFFFF;
  88. display: flex;
  89. justify-content: center;
  90. align-items: center;
  91. }
  92. }
  93. .bg-color1{
  94. background-color: #FFF7FC;
  95. }
  96. .bg-color2{
  97. background-color: #FFF4F2;
  98. }
  99. .bg-color3{
  100. background-color: #F2FAFF;
  101. }
  102. }
  103. </style>