middleBox.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <script setup>
  2. defineProps({
  3. dataTime: ''
  4. })
  5. </script>
  6. <template>
  7. <div class="send-ask">
  8. <RouterLink class="send-ask-button" to="/answer" :data-time="dataTime">输入您的问题或需求</RouterLink>
  9. </div>
  10. </template>
  11. <style scoped lang="scss">
  12. .send-ask {
  13. margin: 0 2rem;
  14. position: relative;
  15. height: 100%;
  16. &-button {
  17. position: absolute;
  18. width: 100%;
  19. height: 6rem;
  20. border-radius: 0.8rem;
  21. box-shadow: 0 0.3rem 1.2rem 0 #97D3FF40;
  22. background: #FFFFFF;
  23. font-size: 1.5rem;
  24. color: #9E9E9E99;
  25. display: flex;
  26. align-items: center;
  27. justify-content: space-between;
  28. padding: 0 1.7rem 0 3.4rem;
  29. bottom: 4.7rem;
  30. &::before {
  31. content: attr(data-time);
  32. display: block;
  33. position: absolute;
  34. right: 0;
  35. bottom: 6.8rem;
  36. color: #9E9E9E;
  37. font-size: 1.2rem;
  38. }
  39. &::after {
  40. content: '';
  41. background: url(@/assets/images/home/send.png) no-repeat;
  42. background-size: contain;
  43. width: 5.6rem;
  44. height: 3.6rem;
  45. }
  46. }
  47. }
  48. </style>