소스 검색

[edit][优化]

zhangwei 2 년 전
부모
커밋
9a3ae43d7c
1개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. 7 4
      src/view/content/tool_box/index.vue

+ 7 - 4
src/view/content/tool_box/index.vue

@@ -2,7 +2,7 @@
     <div class="denet-toolbox" @click.stop="clickHead" ref="dom_toolbox" :class="{ 'pre-view': pre_view }">
         <div class="head" @click.stop="clickHead">
             <span></span>
-            <div v-show="state.show_btn">
+            <div v-show="state.show_btn && state.status == ''">
                 <img :src="require('@/assets/img/icon-fixed.png')" alt class="fixed" @click.stop="clickFixed" />
                 <img :src="require('@/assets/img/icon-full.png')" alt class="full" @click.stop="clickFull" />
                 <!-- <img :src="require('@/assets/img/icon-close.png')" alt class="full" @click="clickFull" /> -->
@@ -150,12 +150,14 @@ const getDetail = () => {
                 state.status = '网页错误'
             }
             iframe.onload = function () {
-                state.status = ''
+                if (state.status != '固定右上角') {
+                    state.status = ''
+                }
             }
             setTimeout(() => {
                 state.iframe_url = state.detail.originUrl
             }, 1000)
-        } else{
+        } else {
             state.status = ''
         }
     })
@@ -394,6 +396,7 @@ const clickFull = () => {
 
         .state {
             text-align: center;
+
             img {
                 margin-bottom: 14px;
             }
@@ -403,7 +406,7 @@ const clickFull = () => {
             }
 
             div {
-                    margin-bottom: 40px;
+                margin-bottom: 40px;
                 color: #8E8E8E;
                 text-align: center;
                 font-weight: 500;