Преглед изворни кода

Merge branch 'master' of http://face3d.4dage.com:7005/chenzimin2/ZGZQBWG

任一存 пре 2 година
родитељ
комит
cffb851a71

BIN
scene/public/static/images/icon-close.png


+ 6 - 6
scene/public/static/js/Hot.js

@@ -1269,9 +1269,9 @@ window.initHot = function(model){
             var popup = document.getElementById("popup");
             var popup = document.getElementById("popup");
             
             
             if (openHot) {
             if (openHot) {
-                if(window.parent.sceneBackIconStatus) {
-                    // 关闭返回按钮
-                    window.parent.sceneBackIconStatus(false)
+                // 热点打开关闭显示机器人
+                if(window.parent && window.parent.handleShowFigure) {
+                    window.parent.handleShowFigure(false)
                 }
                 }
                 g_currentHot = this,
                 g_currentHot = this,
                 popup.style.display = "block",
                 popup.style.display = "block",
@@ -1742,9 +1742,9 @@ window.initHot = function(model){
     
     
     Hot.closePopup = ()=>{// 关闭热点页面
     Hot.closePopup = ()=>{// 关闭热点页面
         if(!g_currentHot) return;
         if(!g_currentHot) return;
-        // 关闭热点,显示返回按钮
-        if(window.parent&&window.parent.sceneBackIconStatus){
-            window.parent.sceneBackIconStatus(true)
+        // 关闭热点,显示机器人
+        if(window.parent&&window.parent.handleShowFigure){
+            window.parent.handleShowFigure(true)
         }
         }
         g_currentHot = null;
         g_currentHot = null;
         var hotPop = document.getElementById('popup'); 
         var hotPop = document.getElementById('popup'); 

BIN
scene/src/assets/images/icon/auto.png


BIN
scene/src/assets/images/icon/auto_active.png


BIN
scene/src/assets/images/icon/dollhouse.png


BIN
scene/src/assets/images/icon/dollhouse_active.png


BIN
scene/src/assets/images/icon/floor.png


BIN
scene/src/assets/images/icon/floor_active.png


BIN
scene/src/assets/images/icon/pause.png


BIN
scene/src/assets/images/icon/play.png


BIN
scene/src/assets/img/hot.png


BIN
scene/src/assets/img/music.png


BIN
scene/src/assets/img/musicAc.png


+ 8 - 12
scene/src/views/gui/menu.vue

@@ -161,21 +161,17 @@
           <div class="btmText">点赞</div>
           <div class="btmText">点赞</div>
         </div> -->
         </div> -->
         <!-- 分享 -->
         <!-- 分享 -->
-        <div class="toHomeBox" @click="share">
+        <!-- <div class="toHomeBox" @click="share">
           <img src="../../assets/img/share.png" alt="" />
           <img src="../../assets/img/share.png" alt="" />
           <div class="btmText">分享</div>
           <div class="btmText">分享</div>
-        </div>
+        </div> -->
 
 
         <!-- 全屏 -->
         <!-- 全屏 -->
-        <div class="toHomeBox quanping">
-          <!-- 鼠标移入的显示 -->
-          <!-- <div class="hoverTit">全屏</div> -->
-          <!-- 打开全屏 -->
+        <!-- <div class="toHomeBox quanping">
           <img @click="fullClick" v-show="!isFull" src="../../assets/images/icon/fullscreen.png" alt="" />
           <img @click="fullClick" v-show="!isFull" src="../../assets/images/icon/fullscreen.png" alt="" />
-          <!-- 退出全屏 -->
           <img @click="exitfull" v-show="isFull" src="../../assets/images/icon/fullscree_active.png" alt="" />
           <img @click="exitfull" v-show="isFull" src="../../assets/images/icon/fullscree_active.png" alt="" />
           <div class="btmText">全屏</div>
           <div class="btmText">全屏</div>
-        </div>
+        </div> -->
       </div>
       </div>
     </div>
     </div>
 
 
@@ -423,13 +419,13 @@ export default {
 .btmText {
 .btmText {
   font-size: 14px;
   font-size: 14px;
   position: absolute;
   position: absolute;
-  bottom: -30%;
-  color: #e3d9bf;
+  bottom: -35%;
+  color: #ffffff;
   text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
   text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
 }
 }
 
 
 // 右侧菜单栏
 // 右侧菜单栏
-@wh: 44px;
+@wh: 32px;
 @margin: 15px;
 @margin: 15px;
 
 
 #play,
 #play,
@@ -515,7 +511,7 @@ export default {
   justify-content: center;
   justify-content: center;
 
 
   img {
   img {
-    width: 44px;
+    width: @wh;
     margin-bottom: 5px;
     margin-bottom: 5px;
   }
   }
 
 

+ 42 - 42
zhengquan/src/views/Home/components/unitList.vue

@@ -55,23 +55,25 @@ var timer = null as any
 watch(hoverIndex, (newVal: any) => {
 watch(hoverIndex, (newVal: any) => {
   const infoBoxPcDom = document.getElementById('infoBoxPc')
   const infoBoxPcDom = document.getElementById('infoBoxPc')
   console.log('余数', newVal % 7)
   console.log('余数', newVal % 7)
-  clearTimeout(timer)
-  timer = setTimeout(() => {
-    if (newVal % 7 <= 4 && newVal % 7 > 0) {
-      infoBoxPcDom!.style.right = 'auto'
-      infoBoxPcDom!.style.left = hoverDomRightX.value + 'px'
-    } else {
-      infoBoxPcDom!.style.left = 'auto'
-      infoBoxPcDom!.style.right = window.innerWidth - hoverDomLeftX.value + 'px'
-    }
-    if (newVal <= 7) {
-      infoBoxPcDom!.style.bottom = window.innerHeight - hoverDomBottomY.value - hoverDomBottomY.value / 4 + 'px'
+  if (infoBoxPcDom) {
+    clearTimeout(timer)
+    timer = setTimeout(() => {
+      if (newVal % 7 <= 4 && newVal % 7 > 0) {
+        infoBoxPcDom.style.right = 'auto'
+        infoBoxPcDom.style.left = hoverDomRightX.value + 'px'
+      } else {
+        infoBoxPcDom.style.left = 'auto'
+        infoBoxPcDom.style.right = window.innerWidth - hoverDomLeftX.value + 'px'
+      }
+      if (newVal <= 7) {
+        infoBoxPcDom!.style.bottom = window.innerHeight - hoverDomBottomY.value - hoverDomBottomY.value / 4 + 'px'
 
 
-    } else {
-      infoBoxPcDom!.style.bottom = window.innerHeight - hoverDomBottomY.value - 40 + 'px'
-    }
-    isShowInfoBox.value = true
-  }, 100)
+      } else {
+        infoBoxPcDom!.style.bottom = window.innerHeight - hoverDomBottomY.value - 40 + 'px'
+      }
+      isShowInfoBox.value = true
+    }, 100)
+  }
 
 
 }, { immediate: true })
 }, { immediate: true })
 
 
@@ -85,9 +87,10 @@ watch(hoverIndex, (newVal: any) => {
 //   immediate: true
 //   immediate: true
 // })
 // })
 
 
-
+// @ts-ignore
 let swiper2 = null as any
 let swiper2 = null as any
 const swiper2Index = ref(0)
 const swiper2Index = ref(0)
+// @ts-ignore
 let swiper = null as any
 let swiper = null as any
 onMounted(() => {
 onMounted(() => {
   swiper = new Swiper(".mySwiper", {
   swiper = new Swiper(".mySwiper", {
@@ -121,22 +124,21 @@ onMounted(() => {
   });
   });
 
 
   curUnit.value = store.dataAll.welfareList[0]
   curUnit.value = store.dataAll.welfareList[0]
-  console.log(curUnit.value)
 })
 })
 
 
-const swiper2Prev = () => {
-  swiper2.slidePrev()
-}
-const swiper2Next = () => {
-  swiper2.slideNext()
-}
+// const swiper2Prev = () => {
+//   swiper2.slidePrev()
+// }
+// const swiper2Next = () => {
+//   swiper2.slideNext()
+// }
 
 
-const swiperPrev = () => {
-  swiper.slidePrev()
-}
-const swiperNext = () => {
-  swiper.slideNext()
-}
+// const swiperPrev = () => {
+//   swiper.slidePrev()
+// }
+// const swiperNext = () => {
+//   swiper.slideNext()
+// }
 
 
 
 
 
 
@@ -148,18 +150,16 @@ const swiperNext = () => {
   <div class='scene-list-box'>
   <div class='scene-list-box'>
     <!-- 信息展示 -->
     <!-- 信息展示 -->
     <div id="infoBoxPc" class="info-box" v-show="isShowInfoBox && !browser.mobile" @mousemove="isShowInfoBox = true">
     <div id="infoBoxPc" class="info-box" v-show="isShowInfoBox && !browser.mobile" @mousemove="isShowInfoBox = true">
-      <!-- <div id="infoBoxPc" class="info-box" v-show="true"> -->
       <img class="close-icon" @click="isShowInfoBox = false" src="@/assets/images/close-icon.png" alt="">
       <img class="close-icon" @click="isShowInfoBox = false" src="@/assets/images/close-icon.png" alt="">
       <div class="info-box-top"></div>
       <div class="info-box-top"></div>
       <div class="info-box-bottom">
       <div class="info-box-bottom">
         <div class="bottom-left">
         <div class="bottom-left">
-          <h1>{{ hoverIndex }}</h1>
-          <h4>{{ curUnit.title ? curUnit.title : '' }}</h4>
-          <div class="left-disc">{{ curUnit.disc ? curUnit.disc : '' }}</div>
+          <h4>{{ curUnit ? curUnit.title : '' }}</h4>
+          <div class="left-disc">{{ curUnit ? curUnit.disc : '' }}</div>
           <!-- <h4>{{ store.dataAll.welfareList[0].title ? store.dataAll.welfareList[0].title : '' }}</h4>
           <!-- <h4>{{ store.dataAll.welfareList[0].title ? store.dataAll.welfareList[0].title : '' }}</h4>
           <p>{{ store.dataAll.welfareList[0].disc ? store.dataAll.welfareList[0].disc : '' }}</p> -->
           <p>{{ store.dataAll.welfareList[0].disc ? store.dataAll.welfareList[0].disc : '' }}</p> -->
         </div>
         </div>
-        <div class="bottom-right">
+        <!-- <div class="bottom-right">
           <div class="swiper mySwiper">
           <div class="swiper mySwiper">
             <div class="swiper-wrapper">
             <div class="swiper-wrapper">
               <div class="swiper-slide" v-for="(item, index) in curUnit.images" :key="index"><img
               <div class="swiper-slide" v-for="(item, index) in curUnit.images" :key="index"><img
@@ -169,13 +169,13 @@ const swiperNext = () => {
             <div class="swiper-button-next" @click="swiperNext"></div>
             <div class="swiper-button-next" @click="swiperNext"></div>
             <div class="swiper-pagination"></div>
             <div class="swiper-pagination"></div>
           </div>
           </div>
-        </div>
+        </div> -->
       </div>
       </div>
     </div>
     </div>
     <!-- 信息展示移动端 -->
     <!-- 信息展示移动端 -->
     <div class="info-box-mo" v-show="isShowInfoBox && browser.mobile">
     <div class="info-box-mo" v-show="isShowInfoBox && browser.mobile">
       <!-- Swiper -->
       <!-- Swiper -->
-      <div class="swiper mySwiper2">
+      <!-- <div class="swiper mySwiper2">
         <div class="swiper-wrapper">
         <div class="swiper-wrapper">
           <div class="swiper-slide" v-for="(item, index) in curUnit.images" :key="index"><img
           <div class="swiper-slide" v-for="(item, index) in curUnit.images" :key="index"><img
               :src="`${baseUrl}/welfareImage/${curUnit.id + 1}/${item}`" alt=""></div>
               :src="`${baseUrl}/welfareImage/${curUnit.id + 1}/${item}`" alt=""></div>
@@ -188,10 +188,10 @@ const swiperNext = () => {
             @click="swiper2.slideTo(index)" :class="{ 'active': swiper2Index == index }">
             @click="swiper2.slideTo(index)" :class="{ 'active': swiper2Index == index }">
           </div>
           </div>
         </div>
         </div>
-      </div>
+      </div> -->
       <div class="content-info">
       <div class="content-info">
-        <h4>{{ curUnit.title }}</h4>
-        <div>{{ curUnit.disc }}</div>
+        <h4>{{ curUnit ? curUnit.title : '' }}</h4>
+        <div>{{ curUnit ? curUnit.disc : '' }}</div>
       </div>
       </div>
     </div>
     </div>
     <div class="content" v-if="!browser.mobile">
     <div class="content" v-if="!browser.mobile">
@@ -284,7 +284,7 @@ const swiperNext = () => {
       justify-content: space-around;
       justify-content: space-around;
 
 
       .bottom-left {
       .bottom-left {
-        width: 35%;
+        width: 90%;
 
 
         .left-disc {
         .left-disc {
           font-size: 14px;
           font-size: 14px;
@@ -539,7 +539,7 @@ const swiperNext = () => {
       position: relative;
       position: relative;
       overflow: inherit;
       overflow: inherit;
 
 
-      .icon-down{
+      .icon-down {
         position: absolute;
         position: absolute;
         top: 0;
         top: 0;
         transform: translateY(-100%);
         transform: translateY(-100%);

+ 8 - 1
zhengquan/src/views/Scene/ScenePage.vue

@@ -11,6 +11,7 @@ declare global {
     hotListShowChangeFu: (v: boolean) => void,
     hotListShowChangeFu: (v: boolean) => void,
     handleRobot: (state: string) => void,
     handleRobot: (state: string) => void,
     handleTopRobot: (state: string) => void,
     handleTopRobot: (state: string) => void,
+    handleShowFigure: (v: boolean) => void,
   }
   }
 }
 }
 
 
@@ -62,6 +63,7 @@ const goHotCamarer = (hot: any) => {
 // 形象状态 greeting-招呼 idle-静默 talk-说话
 // 形象状态 greeting-招呼 idle-静默 talk-说话
 const animalStat = ref('greeting')
 const animalStat = ref('greeting')
 const xingxiangListShow = ref(false)
 const xingxiangListShow = ref(false)
+const isShowFigure = ref(true)
 
 
 onMounted(() => {
 onMounted(() => {
   getAllHotspot()
   getAllHotspot()
@@ -84,6 +86,11 @@ onMounted(() => {
     const xuliezhenDom = document.getElementById('xuliezhenid')
     const xuliezhenDom = document.getElementById('xuliezhenid')
     state == 'top' ? !browser.mobile ? xuliezhenDom!.style.bottom = '200px' : xuliezhenDom!.style.bottom = '120px' : !browser.mobile ? xuliezhenDom!.style.bottom = '100px' : xuliezhenDom!.style.bottom = '10px'
     state == 'top' ? !browser.mobile ? xuliezhenDom!.style.bottom = '200px' : xuliezhenDom!.style.bottom = '120px' : !browser.mobile ? xuliezhenDom!.style.bottom = '100px' : xuliezhenDom!.style.bottom = '10px'
   }
   }
+
+  // 机器人隐藏与显示(热点打开时隐藏)
+  window.handleShowFigure = (state: boolean) => {
+    isShowFigure.value = state
+  }
 })
 })
 </script>
 </script>
 
 
@@ -111,7 +118,7 @@ onMounted(() => {
         </div>
         </div>
       </div>
       </div>
     </div>
     </div>
-    <div class="xingxiangBox">
+    <div class="xingxiangBox" v-show="isShowFigure">
       <!-- 形象人 -->
       <!-- 形象人 -->
       <div id="xuliezhenid" class="xuliezhen" v-if="isReady" @click="xingxiangListShow = true"
       <div id="xuliezhenid" class="xuliezhen" v-if="isReady" @click="xingxiangListShow = true"
         :style="{ backgroundImage: `url(${baseUrl}/animation/${currentUnit.id + 1}/${animalStat}.png)`, backgroundSize: 'cover' }">
         :style="{ backgroundImage: `url(${baseUrl}/animation/${currentUnit.id + 1}/${animalStat}.png)`, backgroundSize: 'cover' }">