Prechádzať zdrojové kódy

Merge branch 'master' of http://face3d.4dage.com:7005/renyicun/NanjingMuseumWuJinZang

任一存 1 rok pred
rodič
commit
4595a1a735
1 zmenil súbory, kde vykonal 11 pridanie a 1 odobranie
  1. 11 1
      src/views/ShuangGouSheSeDetail.vue

+ 11 - 1
src/views/ShuangGouSheSeDetail.vue

@@ -1,4 +1,5 @@
 <script setup>
+import { onMounted } from 'vue'
 import { useRouter } from 'vue-router'
 import useSizeAdapt from "@/useFunctions/useSizeAdapt"
 
@@ -26,6 +27,12 @@ const goPaintingDetail = () =>{
   router.push('/shuanggou-painting-detail?idx=19')
 }
 
+const x = window.innerWidth / window.innerHeight
+
+onMounted(() => {
+  console.log('shuchubili', x)
+})
+
 const text = [
   '设色,国画中晕染彩色的意思,',
   '画面中只要出现彩色就可以说是设色作品。',
@@ -61,7 +68,10 @@ const text = [
       src="@/assets/images/shuanggou-text.png"
       alt=""
     > -->
-    <div class="text">
+    <div
+      class="text"
+      :style="{top: x> 0.5 ?'auto':'',bottom: x > 0.5 ? '7vh':''}"
+    >
       <div
         v-for="(item,index) in reverseArray(text)"
         :key="index"