Просмотр исходного кода

#IQBX #comment [JS] 本地维护桌面打开入口区分

gifur 3 лет назад
Родитель
Сommit
7103cc0692

+ 1 - 1
addin/cfg/SpShell.ini

@@ -27,7 +27,7 @@ Count=15
 ;如果是启动特定实体,则填写实体名称,如果实体带参启动,实体名称后面加制表符('\t')后再填写参数
 
 [QuickShortcut]
-CmdLine=./res/RunScript/startSettings.sh
+CmdLine=./res/RunScript/startSettingsCustom.sh
 
 [startInit]
 TextName=重置密钥&&集中配置下载

BIN
addin/res/ManagerDesktop/images/lmte_tip.png


+ 2 - 2
addin/res/ManagerDesktop/js/menu.js

@@ -130,7 +130,7 @@ var CurrentMenu = {
 };
 var oldHref = '';
 var newHref = window.location.href;
-window.setInterval(listenHashChange, 200);
+var hrefHashChangeTimer = window.setInterval(listenHashChange, 200);
 function listenHashChange() {
     newHref = window.location.href;
     if (gMenu.length === 0) {
@@ -423,7 +423,7 @@ function showNewPage(type) {
             });
         }
     } else {
-        window.location.href = 'index.html';
+        window.location.href = 'page.html';
     }
     selectMenu(Firmenu);
     selectMenu(Senmenu);

+ 15 - 0
addin/res/ManagerDesktop/js/page.js

@@ -90,4 +90,19 @@ $(document).ready(function () {
     // $('#header_right #quitpage_btn').bind('click', function() {
     //     quitThisPage();
     // });
+
+    if (window.location.href.indexOf('page.html') !== -1) {
+
+        console.log("href:" + window.location.href);
+        console.log("search:" + window.location.search);
+        console.log("search:" + location.search);
+        const entry = getQueryStringByName('entry');
+        if(typeof entry !== 'undefined' && entry === 'expire') {
+            console.log('enter from expire entry');
+            clearTimeout(hrefHashChangeTimer);
+            utilStartAlertDialog("<div><span>此悬浮入口菜单即将下线,请转为通过用户维护桌面(系统功能->本地维护桌面)或后台管理页面(菜单栏->附加->本地维护桌面入口)进入</span></div>", function() {
+                hrefHashChangeTimer = window.setInterval(listenHashChange, 200);
+            });
+        }
+    }
 });

+ 3 - 2
addin/res/ManagerDesktop/js/page/basicinfo.js

@@ -2,8 +2,9 @@ function basicinfoGenPage() {
     var page = '<div id="basicinfo_page">\
     <div id="basicinfo_tip" align="center" style="display: block;">\
     <div class="color_descroption_gray"\
-    style="width:auto;margin-top:200px;font-size:18px;line-height:120%;">\
-    <span>相关功能正在开发中,敬请期待!</span>\
+    style="width:auto;margin-top:40px;font-size:18px;line-height:120%;color:#DC143C !important;font-weight: bold;">\
+    <span>悬浮菜单入口即将下线,请通过用户维护桌面或后台管理页面进入,如下图所示:</span>\
+    <img style="width:100%;padding-top:50px;" src="./images/lmte_tip.png">\
     </div>\
     </div>\
     </div>';

+ 12 - 0
addin/res/RunScript/startSettingsCustom.sh

@@ -0,0 +1,12 @@
+#!/bin/sh
+bindir="${PWD}/bin" 
+echo "1"$bindir
+versiondir=${PWD} 
+echo "2"$versiondir
+cefpath="${bindir}/Chromium/cefclient"
+echo "3"$cefpath
+urlpath="${versiondir}/res/ManagerDesktop/page.html?entry=expire#basicinfo"
+echo "4"$urlpath
+cmdpath="${cefpath} --url=file:///${urlpath}  --no-sandbox --hide-tabs --hide-controls --always-on-top --disable-web-security --logextend=errPage"
+echo "5"$cmdpath
+exec ${cmdpath}