PaintingDetail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831
  1. <template>
  2. <div
  3. :id="`${direction ? 'myRowBox' : ''}`"
  4. class="hotspot-detail-2"
  5. >
  6. <div
  7. id="painting-wrap-id"
  8. :class="`painting-wrap ${direction ? 'swiper-no-swiping' : ''} ${
  9. isUping ? 'paintion-wrap-top' : ''
  10. }`"
  11. :style="{
  12. top: `${direction && isUping ? '0%' : ''}`,
  13. transform: `${direction ? 'translate(-50%) rotate(-90deg)' : ''}`,
  14. left: `${direction && isUping ? '50%' : direction ? '26%' : ''}`,
  15. }"
  16. >
  17. <!-- 横向才有的-->
  18. <div
  19. v-if="direction"
  20. class="myRowBoxImg"
  21. :style="`height:${
  22. isOpenNow ? (isAnimating ? AnimationProgress - 4 : 100) : 100
  23. }%`"
  24. @click="showBigPainting"
  25. >
  26. <div>
  27. <img
  28. :src="props.thumb"
  29. alt=""
  30. >
  31. <img
  32. class="shuZhou"
  33. src="@/assets/images/painting-border-bottom.png"
  34. alt=""
  35. >
  36. </div>
  37. </div>
  38. <!-- 竖向才有的 -->
  39. <div
  40. v-if="!direction"
  41. class="shuBox"
  42. :style="`height:${isOpenNow ? AnimationProgress : 100}%`"
  43. >
  44. <img
  45. class="painting-border"
  46. src="@/assets/images/painting-border-new.png"
  47. alt=""
  48. draggable="false"
  49. >
  50. <div
  51. ref="paintingWrap2El"
  52. class="painting-wrap-2"
  53. >
  54. <img
  55. ref="paintingEl"
  56. class="painting"
  57. :class="{
  58. oversize: isOversize,
  59. }"
  60. :src="props.thumb"
  61. alt=""
  62. draggable="false"
  63. @click="showBigPainting"
  64. >
  65. </div>
  66. </div>
  67. <Transition
  68. v-if="isOpenNow"
  69. name="fade-out"
  70. >
  71. <img
  72. v-show="isAnimating"
  73. class="bottom-border-for-animation"
  74. :style="{
  75. bottom: `${100 - AnimationProgress}%`,
  76. }"
  77. src="@/assets/images/painting-border-bottom.png"
  78. alt=""
  79. draggable="false"
  80. >
  81. </Transition>
  82. </div>
  83. <!-- 底部阴影 -->
  84. <div
  85. :class="`desc-text-upShowd ${isUping ? 'desc-text-upShowdShow' : ''}`"
  86. />
  87. <div
  88. ref="descTextEl"
  89. class="desc-text"
  90. :class="{ 'desc-text-up': isUping }"
  91. :style="{
  92. opacity: isAnimating ? AnimationProgress / 100 : 1,
  93. }"
  94. @touchstart="handletouchstartUp"
  95. @touchend="touchEndUp"
  96. >
  97. <div
  98. class="info-title-content"
  99. :class="{ 'info-title-content-up': isUping }"
  100. >
  101. <h1>{{ props.title }}</h1>
  102. <p
  103. class="subtitle"
  104. style="margin-bottom: 19px"
  105. >
  106. {{ `${props.author} (${props.age})` }}
  107. </p>
  108. <p class="subtitle">
  109. {{ props.size.width }} x {{ props.size.height }} 厘米
  110. </p>
  111. <p class="subtitle">
  112. {{ props.subtitle }}
  113. </p>
  114. <p class="subtitle">
  115. {{ props.location }}
  116. </p>
  117. </div>
  118. <div
  119. v-show="isUping"
  120. v-touch:swipe.bottom="
  121. () => {
  122. isUping = true;
  123. }
  124. "
  125. class="info-content"
  126. :class="{ 'info-content-up': isUping }"
  127. >
  128. <h2 v-if="paintingDesc">
  129. 作品简介:
  130. </h2>
  131. <div class="normal-text">
  132. {{ paintingDesc }}
  133. </div>
  134. <h2 v-if="authorDesc">
  135. 作者简介:
  136. </h2>
  137. <div class="normal-text">
  138. {{ authorDesc }}
  139. </div>
  140. </div>
  141. </div>
  142. <OperationTip
  143. v-if="needOperationTip"
  144. class="operation-tip"
  145. text=""
  146. :is-show="isShowOperationTip"
  147. />
  148. <BtnBack
  149. v-if="canClose"
  150. @click="emit('close')"
  151. />
  152. </div>
  153. </template>
  154. <script setup>
  155. import {
  156. ref,
  157. computed,
  158. watch,
  159. onMounted,
  160. onBeforeUnmount,
  161. onBeforeMount,
  162. } from "vue"
  163. import useSizeAdapt from "@/useFunctions/useSizeAdapt"
  164. import { api as viewerApi } from "v-viewer"
  165. const emit = defineEmits(["close", "touch-up"])
  166. const { windowSizeInCssForRef, windowSizeWhenDesignForRef } = useSizeAdapt()
  167. const props = defineProps({
  168. // 是否是当前需要展开画轴的
  169. isOpenNow: {
  170. type: Boolean,
  171. required: true,
  172. },
  173. thumb: {
  174. type: String,
  175. required: true,
  176. },
  177. bigPainting: {
  178. type: String,
  179. required: true,
  180. },
  181. title: {
  182. type: String,
  183. required: true,
  184. },
  185. author: {
  186. type: String,
  187. required: true,
  188. },
  189. subtitle: {
  190. type: String,
  191. required: true,
  192. },
  193. age: {
  194. type: String,
  195. required: true,
  196. },
  197. location: {
  198. type: String,
  199. required: true,
  200. },
  201. paintingDesc: {
  202. type: String,
  203. default: "",
  204. },
  205. authorDesc: {
  206. type: String,
  207. default: "",
  208. },
  209. canClose: {
  210. type: Boolean,
  211. default: true,
  212. },
  213. size: {
  214. type: Object,
  215. default: () => {
  216. return {
  217. width: 1,
  218. height: 1,
  219. }
  220. },
  221. },
  222. direction: {
  223. type: String,
  224. default: () => {
  225. return
  226. },
  227. },
  228. needOperationTip: {
  229. type: Boolean,
  230. default: false,
  231. },
  232. })
  233. const lastY = ref(0)
  234. // 开始滑动
  235. const handletouchstartUp = (event) => {
  236. emit("touch-up")
  237. lastY.value = event.changedTouches[0].pageY
  238. }
  239. onMounted(() => {
  240. // console.log('pppppppp', props.direction, props.title)
  241. })
  242. const touchEndUp = (event) => {
  243. let currentY = event.changedTouches[0].pageY
  244. let ty = currentY - lastY.value
  245. if (ty > 0) {
  246. console.log("向下")
  247. onSwipeDown()
  248. } else if (ty < 0) {
  249. console.log("向上")
  250. onSwipeTop()
  251. }
  252. }
  253. /**
  254. * 操作提示
  255. */
  256. const needOperationTip = computed(() => {
  257. return props.needOperationTip
  258. })
  259. const isShowOperationTip = ref(true)
  260. const descTextEl = ref(null)
  261. const descTextElScrollTop = ref(0)
  262. onMounted(() => {
  263. descTextEl.value.addEventListener("scroll", () => {
  264. descTextElScrollTop.value = descTextEl.value.scrollTop
  265. })
  266. // 判断图片是否是横向
  267. })
  268. const unwatch = watch(descTextElScrollTop, () => {
  269. isShowOperationTip.value = false
  270. unwatch()
  271. })
  272. const isUping = ref(false)
  273. // 上滑
  274. const onSwipeTop = () => {
  275. // console.log('上滑')
  276. // 画作缩小
  277. isUping.value = props.paintingDesc ? true : false
  278. }
  279. // 下滑
  280. const onSwipeDown = () => {
  281. // 看看文字滚动是否到顶部了
  282. const topNum = descTextEl.value.scrollTop
  283. if (topNum <= 0) isUping.value = false
  284. }
  285. onBeforeUnmount(() => {
  286. isUping.value = false
  287. })
  288. const isAnimating = ref(true)
  289. /** 卷轴展开动画的tweening */
  290. const AnimationProgress = ref(7)
  291. let timeAA = -1
  292. onMounted(() => {
  293. if (props.isOpenNow) {
  294. timeAA = setInterval(() => {
  295. if (AnimationProgress.value >= 99) {
  296. clearInterval(timeAA)
  297. isAnimating.value = false
  298. }
  299. AnimationProgress.value = AnimationProgress.value + 2
  300. }, 30)
  301. } else {
  302. AnimationProgress.value = 100
  303. isAnimating.value = false
  304. }
  305. })
  306. onBeforeMount(() => {
  307. clearInterval(timeAA)
  308. })
  309. /**
  310. * 尺寸相关
  311. */
  312. const paintingWrapWidth = ref(268)
  313. const paintingWrapHeight = ref(426)
  314. let wrapSizeRatio = paintingWrapWidth.value / paintingWrapHeight.value
  315. if (wrapSizeRatio < 1) {
  316. wrapSizeRatio = 1 / wrapSizeRatio
  317. }
  318. let sizeRatio = props.size.width / props.size.height
  319. if (sizeRatio < 1) {
  320. sizeRatio = 1 / sizeRatio
  321. }
  322. const isOversize = ref(sizeRatio > wrapSizeRatio)
  323. const paintingWrap2El = ref(null)
  324. const paintingEl = ref(null)
  325. function showBigPainting() {
  326. viewerApi({
  327. images: [props.bigPainting],
  328. })
  329. }
  330. </script>
  331. <style lang="less" scoped>
  332. ::-webkit-scrollbar {
  333. display: none;
  334. }
  335. .hotspot-detail-2 {
  336. position: absolute;
  337. left: 0;
  338. top: 0;
  339. width: 100%;
  340. height: 100%;
  341. > .painting-wrap {
  342. position: absolute;
  343. left: 50%;
  344. top: calc(
  345. 30 / v-bind("windowSizeWhenDesignForRef") *
  346. v-bind("windowSizeInCssForRef")
  347. );
  348. transform: translate(-50%, 0);
  349. width: calc(
  350. 356 / v-bind("windowSizeWhenDesignForRef") *
  351. v-bind("windowSizeInCssForRef")
  352. );
  353. height: calc(
  354. 602 / v-bind("windowSizeWhenDesignForRef") *
  355. v-bind("windowSizeInCssForRef")
  356. );
  357. overflow: hidden;
  358. transition: top 2s ease, transform 2s ease, left 2s ease;
  359. .shuBox {
  360. display: inline-block;
  361. overflow: hidden;
  362. position: relative;
  363. .painting-border {
  364. width: 100%;
  365. }
  366. .painting-wrap-2 {
  367. position: absolute;
  368. left: 50%;
  369. top: calc(
  370. 110 / v-bind("windowSizeWhenDesignForRef") *
  371. v-bind("windowSizeInCssForRef")
  372. );
  373. transform: translate(-50%, 0);
  374. width: calc(
  375. v-bind("paintingWrapWidth") / v-bind("windowSizeWhenDesignForRef") *
  376. v-bind("windowSizeInCssForRef")
  377. );
  378. height: calc(
  379. v-bind("paintingWrapHeight") / v-bind("windowSizeWhenDesignForRef") *
  380. v-bind("windowSizeInCssForRef")
  381. );
  382. overflow: auto;
  383. &::-webkit-scrollbar {
  384. display: none;
  385. }
  386. > img.painting {
  387. position: absolute;
  388. left: 50%;
  389. top: 50%;
  390. transform: translate(-50%, -50%);
  391. width: 100%;
  392. }
  393. > img.painting.oversize {
  394. position: static;
  395. left: initial;
  396. top: initial;
  397. transform: initial;
  398. }
  399. }
  400. }
  401. > img.bottom-border-for-animation {
  402. position: absolute;
  403. z-index: 100;
  404. left: 0;
  405. width: 100%;
  406. -webkit-backface-visibility: hidden;
  407. -moz-backface-visibility: hidden;
  408. -ms-backface-visibility: hidden;
  409. backface-visibility: hidden;
  410. -webkit-perspective: 1000;
  411. -moz-perspective: 1000;
  412. -ms-perspective: 1000;
  413. perspective: 1000;
  414. /* Other transform properties here */
  415. }
  416. }
  417. // 上滑动画和状态
  418. > .paintion-wrap-top {
  419. animation: paintion-up 2s forwards;
  420. transform: translate(-50%, 0) scale(0.6);
  421. top: calc(
  422. -60 / var(--39efea6f-windowSizeWhenDesignForRef) * var(--39efea6f-windowSizeInCssForRef)
  423. );
  424. // @keyframes paintion-up {
  425. // 0% {
  426. // transform: translate(-50%, 0);
  427. // top: calc(70 / var(--39efea6f-windowSizeWhenDesignForRef) * var(--39efea6f-windowSizeInCssForRef));
  428. // }
  429. // 100% {
  430. // transform: translate(-50%, 0) scale(0.6);
  431. // top: calc(-60 / var(--39efea6f-windowSizeWhenDesignForRef) * var(--39efea6f-windowSizeInCssForRef));
  432. // }
  433. // }
  434. }
  435. > .desc-text {
  436. position: absolute;
  437. left: 50%;
  438. bottom: 2%;
  439. transform: translateX(-50%);
  440. width: calc(
  441. 306 / v-bind("windowSizeWhenDesignForRef") *
  442. v-bind("windowSizeInCssForRef")
  443. );
  444. height: calc(
  445. 150 / v-bind("windowSizeWhenDesignForRef") *
  446. v-bind("windowSizeInCssForRef")
  447. );
  448. // overflow: auto;
  449. transition: height 2s ease;
  450. .info-title-content {
  451. transition: all 2s ease;
  452. > h1 {
  453. text-align: center;
  454. font-family: KaiTi;
  455. font-weight: 400;
  456. font-size: calc(
  457. 20 / v-bind("windowSizeWhenDesignForRef") *
  458. v-bind("windowSizeInCssForRef")
  459. );
  460. color: #ffffff;
  461. // margin-bottom: calc(
  462. // 19 / v-bind("windowSizeWhenDesignForRef") *
  463. // v-bind("windowSizeInCssForRef")
  464. // );
  465. white-space: pre;
  466. }
  467. > p.subtitle {
  468. text-align: center;
  469. font-family: KaiTi;
  470. font-weight: 400;
  471. font-size: calc(
  472. 16 / v-bind("windowSizeWhenDesignForRef") *
  473. v-bind("windowSizeInCssForRef")
  474. );
  475. color: rgba(255, 255, 255, 0.8);
  476. line-height: calc(
  477. 19 / v-bind("windowSizeWhenDesignForRef") *
  478. v-bind("windowSizeInCssForRef")
  479. );
  480. margin-bottom: calc(
  481. 6 / v-bind("windowSizeWhenDesignForRef") *
  482. v-bind("windowSizeInCssForRef")
  483. );
  484. }
  485. > h2 {
  486. display: inline-block;
  487. margin-top: calc(
  488. 30 / v-bind("windowSizeWhenDesignForRef") *
  489. v-bind("windowSizeInCssForRef")
  490. );
  491. font-family: KaiTi;
  492. color: #ffffff;
  493. margin-top: 2em;
  494. margin-bottom: 0.5em;
  495. font-weight: 400;
  496. font-size: calc(
  497. 20 / v-bind("windowSizeWhenDesignForRef") *
  498. v-bind("windowSizeInCssForRef")
  499. );
  500. }
  501. > .normal-text {
  502. font-family: KaiTi;
  503. color: #ffffff;
  504. font-weight: 400;
  505. font-size: calc(
  506. 20 / v-bind("windowSizeWhenDesignForRef") *
  507. v-bind("windowSizeInCssForRef")
  508. );
  509. line-height: calc(
  510. 25 / v-bind("windowSizeWhenDesignForRef") *
  511. v-bind("windowSizeInCssForRef")
  512. );
  513. text-align: justify;
  514. white-space: pre-line;
  515. }
  516. }
  517. // 向上滑动
  518. .info-title-content-up {
  519. // animation: title-up 2s forwards;
  520. opacity: 0;
  521. height: 0;
  522. overflow: hidden;
  523. // @keyframes title-up {
  524. // 0% {
  525. // opacity: 1;
  526. // }
  527. // 100% {
  528. // opacity: 0;
  529. // display: none;
  530. // }
  531. // }
  532. }
  533. > .info-content {
  534. > h1 {
  535. text-align: center;
  536. font-family: KaiTi;
  537. font-weight: 400;
  538. font-size: calc(
  539. 20 / v-bind("windowSizeWhenDesignForRef") *
  540. v-bind("windowSizeInCssForRef")
  541. );
  542. color: #ffffff;
  543. margin-bottom: calc(
  544. 19 / v-bind("windowSizeWhenDesignForRef") *
  545. v-bind("windowSizeInCssForRef")
  546. );
  547. }
  548. > p.subtitle {
  549. text-align: center;
  550. font-family: KaiTi;
  551. font-weight: 400;
  552. font-size: calc(
  553. 16 / v-bind("windowSizeWhenDesignForRef") *
  554. v-bind("windowSizeInCssForRef")
  555. );
  556. color: rgba(255, 255, 255, 0.8);
  557. line-height: calc(
  558. 19 / v-bind("windowSizeWhenDesignForRef") *
  559. v-bind("windowSizeInCssForRef")
  560. );
  561. margin-bottom: calc(
  562. 6 / v-bind("windowSizeWhenDesignForRef") *
  563. v-bind("windowSizeInCssForRef")
  564. );
  565. }
  566. > h2 {
  567. display: inline-block;
  568. margin-top: calc(
  569. 30 / v-bind("windowSizeWhenDesignForRef") *
  570. v-bind("windowSizeInCssForRef")
  571. );
  572. font-family: KaiTi;
  573. color: #ffffff;
  574. margin-top: 2em;
  575. margin-bottom: 0.5em;
  576. font-weight: 400;
  577. font-size: calc(
  578. 20 / v-bind("windowSizeWhenDesignForRef") *
  579. v-bind("windowSizeInCssForRef")
  580. );
  581. }
  582. > .normal-text {
  583. font-family: KaiTi;
  584. color: #ffffff;
  585. font-weight: 400;
  586. font-size: calc(
  587. 20 / v-bind("windowSizeWhenDesignForRef") *
  588. v-bind("windowSizeInCssForRef")
  589. );
  590. line-height: calc(
  591. 25 / v-bind("windowSizeWhenDesignForRef") *
  592. v-bind("windowSizeInCssForRef")
  593. );
  594. text-align: justify;
  595. white-space: pre-line;
  596. }
  597. }
  598. > .info-content-up {
  599. animation: info-up 2s forwards;
  600. @keyframes info-up {
  601. 0% {
  602. opacity: 0;
  603. }
  604. 100% {
  605. opacity: 1;
  606. // transform: translateY(-50%);
  607. }
  608. }
  609. }
  610. // >h1 {
  611. // text-align: center;
  612. // font-family: KaiTi;
  613. // font-weight: 400;
  614. // font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  615. // color: #FFFFFF;
  616. // margin-bottom: calc(19 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  617. // }
  618. // >p.subtitle {
  619. // text-align: center;
  620. // font-family: KaiTi;
  621. // font-weight: 400;
  622. // font-size: calc(16 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  623. // color: rgba(255, 255, 255, 0.8);
  624. // line-height: calc(19 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  625. // margin-bottom: calc(6 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  626. // }
  627. // >h2 {
  628. // display: inline-block;
  629. // margin-top: calc(30 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  630. // font-family: KaiTi;
  631. // color: #FFFFFF;
  632. // margin-top: 2em;
  633. // margin-bottom: 0.5em;
  634. // font-weight: 400;
  635. // font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  636. // }
  637. // >.normal-text {
  638. // font-family: KaiTi;
  639. // color: #FFFFFF;
  640. // font-weight: 400;
  641. // font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  642. // line-height: calc(25 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  643. // text-align: justify;
  644. // white-space: pre-line;
  645. // }
  646. }
  647. > .desc-text-up {
  648. overflow: auto;
  649. &::-webkit-scrollbar {
  650. display: none;
  651. }
  652. height: calc(
  653. 360 / v-bind("windowSizeWhenDesignForRef") *
  654. v-bind("windowSizeInCssForRef")
  655. );
  656. bottom: 0;
  657. padding-bottom: 15px;
  658. // animation: text-up 2s forwards;
  659. // @keyframes text-up {
  660. // 100%{
  661. // height: calc(400 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  662. // }
  663. // }
  664. }
  665. .desc-text-upShowd {
  666. width: 100%;
  667. height: calc(
  668. 140 / v-bind("windowSizeWhenDesignForRef") *
  669. v-bind("windowSizeInCssForRef")
  670. );
  671. position: fixed;
  672. bottom: 0px;
  673. left: 50%;
  674. transform: translateX(-50%);
  675. z-index: 10;
  676. pointer-events: none;
  677. opacity: 0;
  678. transition: opacity 2s;
  679. background: linear-gradient(
  680. rgba(0, 0, 0, 0),
  681. rgba(0, 0, 0, 0.1),
  682. rgba(0, 0, 0, 0.4)
  683. );
  684. }
  685. .desc-text-upShowdShow {
  686. opacity: 1;
  687. }
  688. > .operation-tip {
  689. position: absolute;
  690. right: calc(
  691. 39 / v-bind("windowSizeWhenDesignForRef") *
  692. v-bind("windowSizeInCssForRef")
  693. );
  694. bottom: calc(
  695. 49 / v-bind("windowSizeWhenDesignForRef") *
  696. v-bind("windowSizeInCssForRef")
  697. );
  698. }
  699. > .operation-tip {
  700. position: absolute;
  701. right: calc(
  702. 49 / v-bind("windowSizeWhenDesignForRef") *
  703. v-bind("windowSizeInCssForRef")
  704. );
  705. bottom: calc(
  706. 39 / v-bind("windowSizeWhenDesignForRef") *
  707. v-bind("windowSizeInCssForRef")
  708. );
  709. }
  710. }
  711. #myRowBox {
  712. #painting-wrap-id {
  713. height: 100vw !important;
  714. left: 50% !important;
  715. top: 12%;
  716. // transform: translate(-50%, 0) rotate(-90deg) scale(0.6) !important;
  717. .myRowBoxImg {
  718. height: 100%;
  719. width: 100%;
  720. max-height: 100vh;
  721. overflow-x: auto;
  722. white-space: nowrap;
  723. display: inline-block;
  724. position: relative;
  725. &::-webkit-scrollbar {
  726. display: none;
  727. }
  728. & > div {
  729. padding: 28% 10% 28% 10%;
  730. width: 100%;
  731. background-image: url("../assets/images/img_painting_heng.png");
  732. background-size: 100% 100%;
  733. display: inline-block;
  734. & > img {
  735. display: inline-block;
  736. width: 100%;
  737. }
  738. position: relative;
  739. .shuZhou {
  740. position: absolute;
  741. bottom: 0;
  742. left: 0;
  743. width: 100%;
  744. }
  745. }
  746. }
  747. .painting-wrap-2 {
  748. overflow: visible;
  749. }
  750. }
  751. .desc-text {
  752. height: calc(
  753. 230 / v-bind("windowSizeWhenDesignForRef") *
  754. v-bind("windowSizeInCssForRef")
  755. );
  756. }
  757. .desc-text-up {
  758. height: calc(
  759. 360 / v-bind("windowSizeWhenDesignForRef") *
  760. v-bind("windowSizeInCssForRef")
  761. );
  762. }
  763. }
  764. </style>