shaogen1995 5 mesi fa
parent
commit
c9525845f3

+ 39 - 5
packages/mobile/src/views/stair/index.vue

@@ -25,7 +25,7 @@
     <div class="botBtn">
       <div
         @click="cutPage(item.id)"
-        class="btnRow"
+        :class="`btnRow ${tubiaoShow ? '' : 'btnRowHide'}`"
         v-for="item in btnData"
         :key="item.id"
       >
@@ -51,6 +51,12 @@
           </div>
         </transition>
       </div>
+      <div class="btnRow btnRow2" @click="tubiaoShow = !tubiaoShow">
+        <div>
+          <i class="el-icon-d-arrow-right" v-show="tubiaoShow"></i>
+          <i class="el-icon-d-arrow-left" v-show="!tubiaoShow"></i>
+        </div>
+      </div>
     </div>
     <!-- 简介组件 -->
     <StairIntro v-if="btnDataAc === 1" @close="btnDataAc = null" />
@@ -72,8 +78,11 @@ export default {
   data() {
     //这里存放数据
     return {
+      // 图标的展开收起
+      tubiaoShow: true,
+
       // 测试url
-      // textUrl: "http://192.168.20.48:8081", //本地
+      // textUrl: "http://project.4dage.com:8016/SWKK", //本地
       textUrl: "/SWKK", //打包
 
       lookNum: 0,
@@ -181,7 +190,7 @@ export default {
   activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
 };
 </script>
-<style lang='less' scoped>
+<style lang="less" scoped>
 .stair {
   position: relative;
   max-width: 500px;
@@ -236,7 +245,7 @@ export default {
     left: 14px;
   }
   .botBtn {
-    padding: 0 10px;
+    padding: 0 40px 0 10px;
     display: flex;
     position: absolute;
     width: 100%;
@@ -248,6 +257,8 @@ export default {
       text-align: center;
       width: 52px;
       height: 51px;
+      opacity: 1;
+      transition: all 0.5s;
       & > img {
         width: 52px;
         height: 51px;
@@ -261,6 +272,29 @@ export default {
         font-size: 14px;
       }
     }
+
+    .btnRow2 {
+      position: absolute;
+      right: 0;
+      top: 0;
+      z-index: 9999;
+
+      & > div {
+        width: 100%;
+        height: 100%;
+        display: flex;
+        justify-content: center;
+        align-items: center;
+        color: #d6cece;
+        font-size: 30px;
+      }
+    }
+
+    .btnRowHide {
+      opacity: 0;
+      pointer-events: none;
+    }
+
     .likeAddAnimate-enter-active,
     .likeAddAnimate-leave-active {
       transition: all 2s ease;
@@ -296,4 +330,4 @@ export default {
     }
   }
 }
-</style>
+</style>

+ 5 - 2
packages/pc/public/index.html

@@ -27,8 +27,6 @@
     }
   </style>
 
-  <script
-    type="text/javascript">document.write(unescape("%3Cspan id='_ideConac' %3E%3C/span%3E%3Cscript  src='https://dcs.conac.cn/js/nis/44/07/00/05f3733d27894e46708e2378a98839f9/114407005536613194-20014838.js' type='text/javascript'%3E%3C/script%3E"));</script>
 
   <script type="text/javascript">
     window.CESIUM_BASE_URL = "<%= BASE_URL %>lib/Cesium/";
@@ -55,6 +53,11 @@
 </head>
 
 <body>
+  <span id="_ideConac"><a href="https://bszs.conac.cn/sitename?method=show&amp;id=3A90AA974EB3C48EE06310291AAC48FC"
+      target="_blank"><img id="imgConac" vspace="0" hspace="0" border="0" src="https://dcs.conac.cn/image/nis/red.png"
+        data-bd-imgshare-binded="1"></a></span>
+
+
   <noscript>
     <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
         properly without JavaScript enabled. Please enable it to

+ 35 - 3
packages/pc/src/views/stair/index.vue

@@ -28,7 +28,7 @@
     <div class="botBtn">
       <div
         @click="cutPage(item.id)"
-        class="btnRow"
+        :class="`btnRow ${tubiaoShow ? '' : 'btnRowHide'}`"
         v-for="item in btnData"
         :key="item.id"
         @mouseenter="btnDataInd = item.id"
@@ -64,7 +64,17 @@
           {{ item.name }}
         </div>
       </div>
+      <!-- 展开收起图标 -->
+      <div
+        class="botBtnTuBiao"
+        :title="tubiaoShow ? '隐藏图标' : '显示图标'"
+        @click="tubiaoShow = !tubiaoShow"
+      >
+        <i class="el-icon-d-arrow-right" v-show="tubiaoShow"></i>
+        <i class="el-icon-d-arrow-left" v-show="!tubiaoShow"></i>
+      </div>
     </div>
+
     <!-- 简介组件 -->
     <StairIntro v-if="btnDataAc === 1" @close="btnDataAc = null" />
     <!-- 打卡组件 -->
@@ -86,9 +96,12 @@ export default {
   data() {
     //这里存放数据
     return {
+      // 图标的展开收起
+      tubiaoShow: true,
+
       // 测试url
-      textUrl: "http://project.4dage.com:8016/SWKK", //本地
-      // textUrl: "/SWKK", //打包
+      // textUrl: "http://project.4dage.com:8016/SWKK", //本地
+      textUrl: "/SWKK", //打包
       lookNum: 0,
       btnData: [
         { id: 1, name: "简介", inco: "introduction" },
@@ -312,12 +325,15 @@ export default {
     position: absolute;
     bottom: 55px;
     left: 80px;
+
     .btnRow {
       position: relative;
       cursor: pointer;
       text-align: center;
       width: 87px;
       height: 51px;
+      opacity: 1;
+      transition: all 0.5s;
       & > img {
         width: 52px;
         height: 51px;
@@ -345,6 +361,22 @@ export default {
         text-align: center;
       }
     }
+    .btnRowHide {
+      opacity: 0;
+      pointer-events: none;
+    }
+
+    // 展开收起图标
+    .botBtnTuBiao {
+      position: absolute;
+      right: -30px;
+      top: 48%;
+      transform: translateY(-50%);
+      z-index: 99;
+      cursor: pointer;
+      color: #d6cece;
+      font-size: 30px;
+    }
   }
 }
 </style>