index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <div class="customBox">
  3. <div class="customBox_title">No Relevant Report Found? Please Contact Us</div>
  4. <div class="customBox_content">Need more information? Our team is ready to assist.Reach out today for expert support tailored to your needs.</div>
  5. <a class="customBox_btn" @click="handleContact()">Custom Reports</a>
  6. <img class="customBox_img" src="/assets/images/img1.png" alt="">
  7. </div>
  8. <n-modal :show="demandShow" @close="demandShow = false" @esc="demandShow = false" @mask-click="demandShow = false" :style="'width: 720px'">
  9. <demand @closeDialog="handleCloseDiag" />
  10. </n-modal>
  11. </template>
  12. <script setup>
  13. import { ref, onMounted } from "vue";
  14. const showModal = ref(false);
  15. const demandShow = ref(false); // 需求页面
  16. const modalType = ref(1);
  17. const submitType = ref();
  18. const openModel = (index, type) => {
  19. submitType.value = type;
  20. modalType.value = index;
  21. showModal.value = true;
  22. }
  23. // 联系我们
  24. function handleContact () {
  25. demandShow.value = true;
  26. }
  27. // 关闭diag
  28. function handleCloseDiag () {
  29. demandShow.value = false;
  30. }
  31. </script>
  32. <style lang='scss' scoped>
  33. @import "~/assets/css/tool.scss";
  34. .customBox {
  35. background: url("@/assets/images/bg1.png");
  36. padding: var(--size-105) var(--size-145) var(--size-120);
  37. position: relative;
  38. .customBox_title {
  39. font-size: var(--size-48);
  40. font-family: Impact, Impact-Regular;
  41. font-weight: 400;
  42. text-align: left;
  43. color: #1a1a1a;
  44. }
  45. .customBox_content {
  46. font-size: var(--size-18);
  47. font-family: Arial, Arial-Regular;
  48. font-weight: 400;
  49. text-align: left;
  50. color: #1a1a1a;
  51. }
  52. .customBox_btn {
  53. display: block;
  54. width: var(--size-227);
  55. height: var(--size-60);
  56. background: linear-gradient(0deg, #7b9c4f 0%, #2da19d 100%), #1a1a1a;
  57. border-radius: var(--size-8);
  58. text-align: center;
  59. line-height: var(--size-60);
  60. font-size: var(--size-18);
  61. color: #ffffff;
  62. margin: var(--size-40) 0 0;
  63. cursor: pointer;
  64. }
  65. .customBox_img {
  66. width: var(--size-362);
  67. height: var(--size-553);
  68. position: absolute;
  69. bottom: 0;
  70. right: var(--size-145);
  71. }
  72. }
  73. @include responseTo("phone") {
  74. .customBox {
  75. padding: var(--size-30);
  76. .customBox_title {
  77. font-size: var(--size-24);
  78. font-weight: 700;
  79. }
  80. .customBox_content {
  81. font-size: var(--size-14);
  82. }
  83. .customBox_btn {
  84. width: var(--size-150);
  85. height: var(--size-40);
  86. line-height: var(--size-40);
  87. font-size: var(--size-14);
  88. }
  89. .customBox_img {
  90. width: var(--size-181);
  91. height: var(--size-276);
  92. right: 0;
  93. display: none;
  94. }
  95. }
  96. }
  97. </style>