middleBox.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <script setup>
  2. import { onMounted } from "vue";
  3. // import motor3d from '../3d/renderModel.js';
  4. defineProps({
  5. dataTime: ''
  6. })
  7. onMounted(() => {
  8. // new motor3d('#scene')
  9. })
  10. </script>
  11. <template>
  12. <div class="send-ask">
  13. <!-- <div id="scene" class="3d-scene"></div> -->
  14. <RouterLink class="send-ask-button" to="/answer" :data-time="dataTime">输入您的问题或需求</RouterLink>
  15. </div>
  16. </template>
  17. <style scoped lang="scss">
  18. .send-ask {
  19. margin: 0 2rem;
  20. position: relative;
  21. height: 100%;
  22. #scene {
  23. position: absolute;
  24. top: 50%;
  25. left: 50%;
  26. transform: translate(-50%, -50%);
  27. width: 116rem;
  28. height: calc(100% - 6rem);
  29. z-index: 1;
  30. }
  31. &-button {
  32. position: absolute;
  33. width: 100%;
  34. height: 6rem;
  35. border-radius: 0.8rem;
  36. box-shadow: 0 0.3rem 1.2rem 0 #97D3FF40;
  37. background: #FFFFFF;
  38. font-size: 1.5rem;
  39. color: #9E9E9E99;
  40. display: flex;
  41. align-items: center;
  42. justify-content: space-between;
  43. padding: 0 1.7rem 0 3.4rem;
  44. bottom: 2rem;
  45. z-index: 2;
  46. &::before {
  47. content: attr(data-time);
  48. display: block;
  49. position: absolute;
  50. right: 0;
  51. bottom: 6.8rem;
  52. color: #9E9E9E;
  53. font-size: 1.2rem;
  54. }
  55. &::after {
  56. content: '';
  57. background: url(@/assets/images/home/send.png) no-repeat;
  58. background-size: contain;
  59. width: 5.6rem;
  60. height: 3.6rem;
  61. }
  62. }
  63. }
  64. </style>