zhangwei 2 лет назад
Родитель
Сommit
9f92522a76
1 измененных файлов с 6 добавлено и 15 удалено
  1. 6 15
      src/view/content/tool_box/index.vue

+ 6 - 15
src/view/content/tool_box/index.vue

@@ -30,7 +30,7 @@
             </div>
             <!-- 固定右上角 -->
             <div class="state" v-show="state.status == '固定右上角'">
-                <img :src="require('@/assets/img/icon-page-fail.png')" alt />
+                <img :src="require('@/assets/img/icon-fixed-gray.png')" alt />
                 <div>Pinned to the top right</div>
             </div>
         </div>
@@ -155,19 +155,8 @@ const getDetail = () => {
             setTimeout(() => {
                 state.iframe_url = state.detail.originUrl
             }, 1000)
-        } else {
-            let iframe = dom_iframe.value
-            state.detail.originUrl = 'https://www.bilibili.com'
-            iframe.onerror = () => {
-                state.status = '网页错误'
-            }
-            iframe.onload = function () {
-                state.status = ''
-            }
-            setTimeout(() => {
-                state.iframe_url = state.detail.originUrl
-            }, 1000)
-
+        } else{
+            state.status = ''
         }
     })
 }
@@ -219,6 +208,7 @@ const handleFull = () => {
 // 全屏
 const handleFixed = () => {
     // 切换状态
+    state.show_btn = false
     state.status = '固定右上角'
     // 操作全屏dom
     let dom = document.querySelector('#denet-tool-box-fixed')
@@ -229,7 +219,6 @@ const handleFixed = () => {
         position: fixed;
         right: 10px;
         top: 10px;`
-    state.show_btn = false
     sendEventInfo({
         event_type: 'ToolBox_To_Fixed',
         data: {
@@ -404,6 +393,7 @@ const clickFull = () => {
         }
 
         .state {
+            text-align: center;
             img {
                 margin-bottom: 14px;
             }
@@ -413,6 +403,7 @@ const clickFull = () => {
             }
 
             div {
+                    margin-bottom: 40px;
                 color: #8E8E8E;
                 text-align: center;
                 font-weight: 500;