Explorar el Código

更新U宝聊天h5页面

lxr hace 1 semana
padre
commit
7d2ce4ebb8
Se han modificado 1 ficheros con 0 adiciones y 77 borrados
  1. 0 77
      HBuilderProjects/shareAiConsult.html

+ 0 - 77
HBuilderProjects/shareAiConsult.html

@@ -32,54 +32,6 @@
       padding-bottom: calc(88px + var(--safe-bottom));
     }
 
-    .nav {
-      position: sticky;
-      top: 0;
-      z-index: 10;
-      display: flex;
-      align-items: center;
-      padding: 10px 12px;
-      background: #fff;
-    }
-
-    .nav__close {
-      width: 36px;
-      height: 36px;
-      border: none;
-      background: transparent;
-      font-size: 22px;
-      line-height: 36px;
-      color: #151515;
-      flex-shrink: 0;
-    }
-
-    .nav__center {
-      flex: 1;
-      min-width: 0;
-      text-align: center;
-      padding: 0 8px;
-    }
-
-    .nav__title {
-      font-size: 15px;
-      font-weight: 600;
-      color: #151515;
-      white-space: nowrap;
-      overflow: hidden;
-      text-overflow: ellipsis;
-    }
-
-    .nav__url {
-      margin-top: 2px;
-      font-size: 11px;
-      color: var(--muted);
-    }
-
-    .nav__side {
-      width: 36px;
-      flex-shrink: 0;
-    }
-
     .hero {
       padding: 16px 15px 0;
     }
@@ -188,15 +140,6 @@
   </style>
 </head>
 <body>
-  <header class="nav">
-    <!-- <button type="button" class="nav__close" id="btnClose" aria-label="关闭">×</button>
-    <div class="nav__center">
-      <div class="nav__title" id="navTitle">与AI助手-U宝</div>
-      <div class="nav__url">www.ailien.shop</div>
-    </div> -->
-    <div class="nav__side"></div>
-  </header>
-
   <main id="main">
     <div class="empty">对话内容加载中…</div>
   </main>
@@ -207,7 +150,6 @@
 
   <script>
     (function () {
-      var SHARE_URL = "www.ailien.shop";
       var APP_DEEPLINK = "shopro://pages/aiSearchResult/index?pageType=home";
 
       function escHtml(s) {
@@ -257,13 +199,6 @@
         return q + "的讨论";
       }
 
-      function formatNavTitle(question) {
-        var titled = formatDiscussionTitle(question);
-        var maxLen = 14;
-        var short = titled.length > maxLen ? titled.slice(0, maxLen) + "..." : titled;
-        return short + "-U宝";
-      }
-
       function formatDate(ts) {
         var d = ts ? new Date(Number(ts)) : new Date();
         if (isNaN(d.getTime())) d = new Date();
@@ -299,7 +234,6 @@
 
       function render(data) {
         var main = document.getElementById("main");
-        var navTitle = document.getElementById("navTitle");
         if (!data) {
           main.innerHTML = '<div class="empty">对话内容不存在或链接已失效</div>';
           return;
@@ -311,7 +245,6 @@
         var pageTitle = formatDiscussionTitle(firstQuestion);
         var dateText = formatDate(data.shareTime);
 
-        navTitle.textContent = formatNavTitle(firstQuestion);
         document.title = pageTitle;
 
         var bodyHtml =
@@ -350,16 +283,6 @@
         }, 2500);
       }
 
-      document.getElementById("btnClose").addEventListener("click", function () {
-        if (window.history.length > 1) {
-          window.history.back();
-        } else if (typeof WeixinJSBridge !== "undefined") {
-          WeixinJSBridge.call("closeWindow");
-        } else {
-          window.close();
-        }
-      });
-
       document.getElementById("btnContinue").addEventListener("click", openApp);
 
       render(parsePayload());