shaogen1995 11 달 전
부모
커밋
e7b5b1bd3f

+ 1 - 4
Code/src/pages/C1unity/index.module.scss

@@ -1,10 +1,7 @@
 .C1unity {
 .C1unity {
   position: relative;
   position: relative;
   :global {
   :global {
-    iframe {
-      position: absolute;
-      top: 0;
-      left: 0;
+    .C1unity {
       width: 100%;
       width: 100%;
       height: 100%;
       height: 100%;
     }
     }

+ 4 - 2
Code/src/pages/C1unity/index.tsx

@@ -54,10 +54,10 @@ function C1unity() {
 
 
   const data = useMemo(() => {
   const data = useMemo(() => {
     let arr: VisitHotDataType = []
     let arr: VisitHotDataType = []
-
     if (ind !== -1) {
     if (ind !== -1) {
       const data1 = myData.visit.hot[ind].data
       const data1 = myData.visit.hot[ind].data
       const data2 = myData.banquet.hot[ind].data
       const data2 = myData.banquet.hot[ind].data
+      console.log('-------', ind, data2)
 
 
       arr = urlId === '1' ? data1 : data2
       arr = urlId === '1' ? data1 : data2
     }
     }
@@ -85,7 +85,9 @@ function C1unity() {
 
 
   return (
   return (
     <div className={styles.C1unity}>
     <div className={styles.C1unity}>
-      {url && !isPc ? <iframe frameBorder='none' title='漫游' src={url}></iframe> : null}
+      {url && !isPc ? (
+        <iframe className='C1unity' frameBorder='none' title='漫游' src={url}></iframe>
+      ) : null}
 
 
       {ind === -1 ? null : ind === 0 && urlId === '1' ? (
       {ind === -1 ? null : ind === 0 && urlId === '1' ? (
         <Hot1
         <Hot1

+ 1 - 1
Code/src/pages/C2unityEnd/index.module.scss

@@ -1,6 +1,6 @@
 .C2unityEnd {
 .C2unityEnd {
   :global {
   :global {
-    iframe {
+    .C2unity {
       width: 100%;
       width: 100%;
       height: 100%;
       height: 100%;
     }
     }

+ 3 - 1
Code/src/pages/C2unityEnd/index.tsx

@@ -53,7 +53,9 @@ function C2unityEnd() {
 
 
   return (
   return (
     <div className={styles.C2unityEnd}>
     <div className={styles.C2unityEnd}>
-      {!isPc && url ? <iframe title='陶庄园' src={url} frameBorder='0'></iframe> : null}
+      {!isPc && url ? (
+        <iframe className='C2unity' title='陶庄园' src={url} frameBorder='0'></iframe>
+      ) : null}
     </div>
     </div>
   )
   )
 }
 }

BIN
资源/staticData/dance/bj.jpg