lxr 1 tydzień temu
rodzic
commit
3b57675c12
1 zmienionych plików z 29 dodań i 131 usunięć
  1. 29 131
      HBuilderProjects/shareAiConsult.html

+ 29 - 131
HBuilderProjects/shareAiConsult.html

@@ -7,8 +7,8 @@
   <title>与U宝对话</title>
   <meta property="og:title" content="和U宝的对话">
   <meta property="og:description" content="点击查看对话内容">
-  <meta property="og:site_name" content="U宝AI智能助手">
-  <meta name="application-name" content="U宝AI智能助手">
+  <meta property="og:site_name" content="U店在哪">
+  <meta name="application-name" content="U店在哪">
   <link rel="icon" type="image/png" href="https://alien-volume.oss-cn-beijing.aliyuncs.com/icon/ubao.png">
   <link rel="apple-touch-icon" href="https://alien-volume.oss-cn-beijing.aliyuncs.com/icon/ubao.png">
   <style>
@@ -17,7 +17,6 @@
       --text: #151515;
       --muted: #aaaaaa;
       --orange: #f47d1f;
-      --safe-top: env(safe-area-inset-top, 0px);
       --safe-bottom: env(safe-area-inset-bottom, 0px);
     }
 
@@ -36,58 +35,7 @@
       background: var(--bg);
       color: var(--text);
       min-height: 100vh;
-      padding-bottom: calc(92px + var(--safe-bottom));
-    }
-
-    .nav {
-      position: sticky;
-      top: 0;
-      z-index: 10;
-      display: flex;
-      align-items: center;
-      padding: 10px 12px;
-      padding-top: calc(10px + var(--safe-top));
-      background: #fff;
-    }
-
-    .nav__close {
-      width: 36px;
-      height: 36px;
-      border: none;
-      background: transparent;
-      font-size: 22px;
-      line-height: 36px;
-      color: #151515;
-      flex-shrink: 0;
-      cursor: pointer;
-      -webkit-tap-highlight-color: transparent;
-    }
-
-    .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;
+      padding-bottom: calc(88px + var(--safe-bottom));
     }
 
     .hero {
@@ -135,11 +83,11 @@
       max-width: 78%;
       padding: 10px 12px;
       background: var(--orange);
-      border-radius: 11px;
+      border-radius: 6px;
       color: #fff;
       font-size: 15px;
       font-weight: 500;
-      line-height: 1.47;
+      line-height: 1.5;
       white-space: pre-wrap;
       word-break: break-word;
     }
@@ -187,46 +135,32 @@
 
     .footer__dock {
       position: relative;
-      display: flex;
-      justify-content: center;
       width: 100%;
       pointer-events: auto;
     }
 
     .continue-btn {
-      display: flex;
-      align-items: center;
-      justify-content: center;
-      width: 50%;
-      height: 48px;
-      margin: 0 auto;
-      padding: 0;
+      width: 100%;
+      height: 44px;
       border: none;
       border-radius: 999px;
-      background: linear-gradient(90deg, #ffb84c 0%, #ff6b3e 100%);
-      box-shadow: 0 4px 16px rgba(255, 107, 62, 0.32);
+      background: linear-gradient(90deg, #ffb347 0%, #f47d1f 55%, #ff7849 100%);
+      box-shadow: 0 4px 12px rgba(244, 125, 31, 0.28);
+      color: #fff;
+      font-size: 16px;
+      font-weight: 600;
       touch-action: manipulation;
-      -webkit-tap-highlight-color: transparent;
-    }
-
-    .continue-btn__label {
-      display: block;
-      height: 20px;
-      width: auto;
-      max-width: 90%;
-      pointer-events: none;
-      -webkit-user-drag: none;
     }
 
     #launch-btn {
       display: none;
       position: absolute;
-      left: 50%;
+      left: 0;
+      right: 0;
       top: 0;
-      width: 50%;
-      height: 48px;
-      min-height: 48px;
-      transform: translateX(-50%);
+      width: 100%;
+      height: 44px;
+      min-height: 44px;
       border-radius: 999px;
       overflow: hidden;
     }
@@ -260,15 +194,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>
@@ -277,38 +202,30 @@
 
   <footer class="footer">
     <div class="footer__dock">
-      <button type="button" class="continue-btn" id="btnContinue" aria-label="和U宝继续聊">
-        <img class="continue-btn__label" src="images/uCharts.png" alt="和U宝继续聊" decoding="async">
-      </button>
+      <button type="button" class="continue-btn" id="btnContinue">和U宝继续聊 →</button>
       <wx-open-launch-app id="launch-btn" appid="wxf5f1efe3a9f5012e" extinfo="">
         <script type="text/wxtag-template">
           <style>
             .wx-open-app-btn {
-              display: flex;
-              align-items: center;
-              justify-content: center;
+              display: block;
               width: 100%;
-              height: 48px;
+              height: 44px;
               margin: 0;
               padding: 0;
               border: none;
               border-radius: 999px;
-              background: linear-gradient(90deg, #ffb84c 0%, #ff6b3e 100%);
-              box-shadow: 0 4px 16px rgba(255, 107, 62, 0.32);
+              background: linear-gradient(90deg, #ffb347 0%, #f47d1f 55%, #ff7849 100%);
+              box-shadow: 0 4px 12px rgba(244, 125, 31, 0.28);
+              color: #fff;
+              font-size: 16px;
+              font-weight: 600;
+              line-height: 44px;
+              text-align: center;
               cursor: pointer;
               -webkit-tap-highlight-color: transparent;
             }
-            .continue-btn__label {
-              display: block;
-              height: 20px;
-              width: auto;
-              max-width: 90%;
-              pointer-events: none;
-            }
           </style>
-          <button class="wx-open-app-btn" aria-label="和U宝继续聊">
-            <img class="continue-btn__label" src="https://test.ailien.shop/h5/HBuilderProjects/images/uCharts.png" alt="和U宝继续聊" decoding="async">
-          </button>
+          <button class="wx-open-app-btn">和U宝继续聊 →</button>
         </script>
       </wx-open-launch-app>
     </div>
@@ -392,13 +309,6 @@
         return qText + "的讨论";
       }
 
-      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();
@@ -433,7 +343,7 @@
       }
 
       function applyWeixinShareMeta() {
-        var siteName = "U宝AI智能助手";
+        var siteName = "U店在哪";
         var iconUrl =
           "https://alien-volume.oss-cn-beijing.aliyuncs.com/icon/ubao.png";
         var setMeta = function (key, content) {
@@ -465,9 +375,7 @@
         applyWeixinShareMeta();
         sharePayloadCache = data || null;
         var main = document.getElementById("main");
-        var navTitle = document.getElementById("navTitle");
         if (!data) {
-          if (navTitle) navTitle.textContent = "与AI助手-U宝";
           main.innerHTML = '<div class="empty">对话内容不存在或链接已失效</div>';
           refreshWxLaunchTagAttrs();
           return;
@@ -479,7 +387,6 @@
         var pageTitle = formatDiscussionTitle(firstQuestion);
         var dateText = formatDate(data.shareTime);
 
-        if (navTitle) navTitle.textContent = formatNavTitle(firstQuestion);
         document.title = pageTitle;
 
         var bodyHtml =
@@ -1005,15 +912,6 @@
       bindWeChatLaunchTagEvents();
       scheduleWeChatJssdkBootstrap();
       document.getElementById("btnContinue").addEventListener("click", tryOpenApp);
-      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();
-        }
-      });
       render(parsePayload());
     })();
   </script>