Quellcode durchsuchen

[门户] 新增: 登记线上系统入口与测试账号(_meta.js live.url/account/password;门户线上按钮悬停显示凭据,点击打开登录页并复制账号密码)

lio vor 2 Monaten
Ursprung
Commit
12c275df4d
2 geänderte Dateien mit 10 neuen und 2 gelöschten Zeilen
  1. 1 1
      _meta.js
  2. 9 1
      index.html

+ 1 - 1
_meta.js

@@ -6,7 +6,7 @@
 window.PROTO_META = {
   system: "恒隆公寓AMS(租赁管理平台)",
   repo: { url: "https://gitlab.wxapp.info/lio/hanglung", desc: "基于恒隆现有原型设计进行补充的二开,仅供开发测试人员业务逻辑补充使用" },
-  live: { name: "恒隆府RT租赁管理平台", url: "", note: "线上/测试环境入口,待登记" },
+  live: { name: "恒隆府RT租赁管理平台", url: "http://local.hltech.com:21080/hlrtdev/page-pc/login.html", account: "admin", password: "qwer1234@HLRT", note: "测试环境入口;凭据来源:工作区根/恒隆ams项目在线测试环境.txt" },
   /* 协同提醒:门户轮询 wedo-hub,检测到他人更新时弹横幅提示同步(token为团队内部口令) */
   hub: { url: "https://gogs.wxapp.info/wedo-hub", token: "d2fcf3469a29f2fcfca96d1e75b5585b", repo: "hanglung" },
   domains: ["资源规划","招商管理","租控管理","预定管理","合同管理","入住管理","财务管理","能源管理","清洁维修管理","财务中心","系统工作台"],

+ 9 - 1
index.html

@@ -121,7 +121,15 @@ var M = window.PROTO_META, curDomain = "全部", curPage = null;
 document.getElementById("subTitle").textContent = M.system + " · " + M.repo.desc;
 document.getElementById("repoBtn").href = M.repo.url;
 var liveBtn = document.getElementById("liveBtn");
-if (M.live.url) { liveBtn.href = M.live.url; } else { liveBtn.title = M.live.note; liveBtn.style.color = "#c0c4cc"; liveBtn.onclick = function () { alert("线上系统地址待登记:编辑 _meta.js 的 live.url"); return false; }; }
+if (M.live.url) {
+  liveBtn.href = M.live.url;
+  if (M.live.account) {
+    liveBtn.title = "账号:" + M.live.account + "  密码:" + (M.live.password || "-") + "\n(点击打开登录页,同时复制账号密码到剪贴板)";
+    liveBtn.onclick = function () {
+      try { navigator.clipboard.writeText("账号:" + M.live.account + "\n密码:" + (M.live.password || "-")); } catch (e) {}
+    };
+  }
+} else { liveBtn.title = M.live.note; liveBtn.style.color = "#c0c4cc"; liveBtn.onclick = function () { alert("线上系统地址待登记:编辑 _meta.js 的 live.url"); return false; }; }
 /* 域导航 */
 var dbox = document.getElementById("domains");
 M.domains.forEach(function (d) {