setMeal.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <view class="container">
  3. <!-- 每一个套餐区域 -->
  4. <view class="setMeal_box">
  5. <!-- 图片区域 -->
  6. <view class="box_img">
  7. <img src="../../static/search/img.png" />
  8. </view>
  9. <!-- 套餐信息区域 -->
  10. <view class="box_info">
  11. <view class="info_msg">新店开业:端午周末不加价|靖安双溪抱朴小院3天2晚含门票|三爪仑漂流双人|中华传统文化园套票|特色小吃2份</view>
  12. <view class="info_price">
  13. <view class="new">
  14. ¥180
  15. <text>起</text>
  16. </view>
  17. <view class="old">市场价¥400</view>
  18. </view>
  19. <view class="info_btn">
  20. <view class="btn_count">已售88张</view>
  21. <view class="btn_pay">立即抢购</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="setMeal_box">
  26. <!-- 图片区域 -->
  27. <view class="box_img">
  28. <img src="../../static/search/img.png" />
  29. </view>
  30. <!-- 套餐信息区域 -->
  31. <view class="box_info">
  32. <view class="info_msg">新店开业:端午周末不加价|靖安双溪抱朴小院3天2晚含门票|三爪仑漂流双人|中华传统文化园套票|特色小吃2份</view>
  33. <view class="info_price">
  34. <view class="new">
  35. ¥180
  36. <text>起</text>
  37. </view>
  38. <view class="old">市场价¥400</view>
  39. </view>
  40. <view class="info_btn">
  41. <view class="btn_count">已售88张</view>
  42. <view class="btn_pay">立即抢购</view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {}
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scoped>
  56. .container {
  57. box-sizing: border-box;
  58. padding: 20rpx 30rpx;
  59. min-height: 100vh;
  60. background-color: #ebeced;
  61. .setMeal_box {
  62. margin-bottom: 20rpx;
  63. border-radius: 10rpx;
  64. background-color: #fff;
  65. .box_img {
  66. height: 377rpx;
  67. img {
  68. width: 100%;
  69. height: 100%;
  70. }
  71. }
  72. .box_info {
  73. padding: 0 25rpx;
  74. .info_msg {
  75. margin-top: 20rpx;
  76. line-height: 45rpx;
  77. font-size: 28rpx;
  78. }
  79. .info_price {
  80. display: flex;
  81. height: 62rpx;
  82. line-height: 62rpx;
  83. .new {
  84. color: #ff5733;
  85. font-size: 36rpx;
  86. font-weight: bold;
  87. text {
  88. font-size: 24rpx;
  89. font-weight: 400;
  90. }
  91. }
  92. .old {
  93. margin-left: 20rpx;
  94. color: #a6a6a6;
  95. font-size: 24rpx;
  96. text-decoration: line-through;
  97. }
  98. }
  99. .info_btn {
  100. display: flex;
  101. justify-content: space-between;
  102. height: 98rpx;
  103. .btn_count {
  104. padding: 0 20rpx;
  105. margin-top: 10rpx;
  106. height: 56rpx;
  107. line-height: 56rpx;
  108. color: #fff;
  109. font-size: 24rpx;
  110. border-radius: 10rpx;
  111. background-color: #e86346;
  112. }
  113. .btn_pay {
  114. display: flex;
  115. justify-content: center;
  116. align-items: center;
  117. margin-top: -10rpx;
  118. width: 204rpx;
  119. height: 72rpx;
  120. border-radius: 48rpx;
  121. color: #ff5733;
  122. font-size: 32rpx;
  123. border: 1rpx solid #ff5733;
  124. }
  125. }
  126. }
  127. }
  128. }
  129. </style>