special.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <view class="special">
  3. <view class="img">
  4. <image src="" mode="aspectFill" style="width: 100%;height: 100%;"></image>
  5. </view>
  6. <view class="special_title">
  7. <view class="title">
  8. 买Meso X 美肤导入仪免费送采美超级会...
  9. </view>
  10. <button class="special_btn">查看详情</button>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {}
  18. },
  19. methods: {}
  20. }
  21. </script>
  22. <style lang="scss" scoped>
  23. .special {
  24. border-radius: 8rpx;
  25. margin-bottom: 24rpx;
  26. height: 432rpx;
  27. width: 100%;
  28. box-sizing: border-box;
  29. overflow: hidden;
  30. }
  31. .img {
  32. width: 100%;
  33. height: 360rpx;
  34. border: 1px dotted;
  35. box-sizing: border-box;
  36. }
  37. .special_title {
  38. height: 72rpx;
  39. box-sizing: border-box;
  40. padding: 12rpx 24rpx;
  41. background-color: #FFF8EF;
  42. display: flex;
  43. justify-content: space-between;
  44. align-items: center;
  45. }
  46. .special_title .title {
  47. color: #F3B574;
  48. font-size: 26rpx;
  49. }
  50. .special_btn {
  51. border-radius: 8rpx;
  52. padding: 8rpx 16rpx;
  53. box-sizing: border-box;
  54. background-color: #F3B574;
  55. color: #FFFFFF;
  56. font-size: 24rpx;
  57. }
  58. </style>