PaintingStyleDesc.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <div class="painting-style-desc">
  3. <div class="bg-left" />
  4. <img
  5. class="title"
  6. src="@/assets/images/painting-style-title.png"
  7. alt=""
  8. draggable="false"
  9. >
  10. <div class="text">
  11. {{ specialDesc }}
  12. </div>
  13. <BtnBack
  14. class="button-back"
  15. @click="emit('close')"
  16. />
  17. </div>
  18. </template>
  19. <script setup>
  20. import { ref, computed, watch, onMounted, inject } from "vue"
  21. import { useRoute, useRouter } from "vue-router"
  22. import { useStore } from "vuex"
  23. import useSizeAdapt from "@/useFunctions/useSizeAdapt"
  24. const route = useRoute()
  25. const router = useRouter()
  26. const store = useStore()
  27. const $env = inject('$env')
  28. const emit = defineEmits('close')
  29. const {
  30. windowSizeInCssForRef,
  31. windowSizeWhenDesignForRef,
  32. } = useSizeAdapt()
  33. const specialDesc = configExcel['其他'][4]['修篁树石图'][1]['作品简介']
  34. </script>
  35. <style lang="less" scoped>
  36. .painting-style-desc{
  37. position: absolute;
  38. left: 0;
  39. top: 0;
  40. width: 100%;
  41. height: 100%;
  42. background-color: #fff;
  43. >.bg-left{
  44. background: linear-gradient(90deg, #7b916b 0%, #94a586 100%);
  45. position: absolute;
  46. left: 0;
  47. top: 0;
  48. height: 100%;
  49. width: calc(57 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  50. background: -1;
  51. }
  52. >img.title{
  53. position: absolute;
  54. top: calc(39 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  55. left: calc(1 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  56. width: calc(133 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  57. height: calc(133 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  58. }
  59. >.text{
  60. position: absolute;
  61. top: 24%;
  62. right: 9.5%;
  63. width: 67%;
  64. height: 66%;
  65. font-family: KaiTi, KaiTi;
  66. font-weight: 400;
  67. font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  68. color: #474747;
  69. line-height: calc(23 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  70. white-space: pre-line;
  71. overflow: auto;
  72. padding-right: 0.5em;
  73. }
  74. }
  75. </style>