cta.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!--
  2. * @Author: LiZhiWei
  3. * @Date: 2026-01-22 11:06:36
  4. * @LastEditors: LiZhiWei
  5. * @LastEditTime: 2026-01-23 08:28:08
  6. * @Description:
  7. -->
  8. <template>
  9. <section class="cta">
  10. <h2 class="cta-title pf-sc-semibold">开启您的智慧社区转型之旅</h2>
  11. <p class="cta-desc pf-sc-light">
  12. 提交您的需求,我们的专属顾问将在24小时内为您提供定制化解决方案
  13. </p>
  14. <button class="cta-btn pf-sc-regular" @click="openConsultation">
  15. <span class="cta-btn-text">立即咨询</span>
  16. <i class="i-custom-arrow-right cta-btn-icon"></i>
  17. </button>
  18. </section>
  19. </template>
  20. <script setup lang="ts">
  21. const { openConsultation } = useConsultation()
  22. </script>
  23. <style scoped lang="scss">
  24. .cta {
  25. @apply w-full h-276px py-60px flex-center flex-col;
  26. @apply lt-sm:h-345px lt-sm:py-60px;
  27. background-size: cover;
  28. background-position: center;
  29. background-image: url('@/assets/images/bg-3.png');
  30. @screen lt-sm {
  31. background-size: cover;
  32. background-position: center;
  33. background-image: url('@/assets/images/bg-3-mobile.png');
  34. }
  35. }
  36. .cta-title {
  37. @apply font-s-40px lh-56px text-center;
  38. @apply lt-sm:font-s-40px lt-sm:lh-56px;
  39. }
  40. .cta-desc {
  41. @apply font-s-18px text-#232325;
  42. @apply lt-sm:font-s-18px lt-sm:mt-24px;
  43. }
  44. .cta-btn {
  45. @apply h-52px mt-22px w-268px bg-#0F67F8 text-white rounded-8px px-16px flex items-center justify-between hover:opacity-80;
  46. @apply lt-sm:h-84px lt-sm:w-391px lt-sm:mt-24px lt-sm:rounded-8px;
  47. }
  48. .cta-btn-text {
  49. @apply font-s-16px;
  50. @apply lt-sm:font-s-26px;
  51. }
  52. .cta-btn-icon {
  53. @apply i-custom-arrow-right wh-18px;
  54. @apply lt-sm:wh-26px;
  55. }
  56. </style>