소스 검색

Merge branch 'report_v4' of http://git.ringzle.com:3000/yangen/ChuangHeng_new into report_v4

x 6 일 전
부모
커밋
ba7ee09024
2개의 변경된 파일12개의 추가작업 그리고 2개의 파일을 삭제
  1. BIN
      dist.zip
  2. 12 2
      public/assets/html/PERILL团队评估欢迎页.html

BIN
dist.zip


+ 12 - 2
public/assets/html/PERILL团队评估欢迎页.html

@@ -5,6 +5,16 @@
 <!-- 设计稿宽度 calc(var(--u) * 750),viewport 固定为 750,移动端自动等比缩放 -->
 <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
 <title>邀请您一起开启 探索团队成长的路径</title>
+<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
+<script>
+  function handleHome() {
+    if (window.wx && wx.miniProgram) {
+      wx.miniProgram.reLaunch({ url: '/pages/home' });
+      return;
+    }
+    window.history.back();
+  }
+</script>
 <style>
   :root { --u: calc(100vw / 750); }
   @media (min-width: 750px) { :root { --u: 1px; } }
@@ -146,8 +156,8 @@
   <!-- 底部说明(可编辑) -->
   <div class="txt footer-note">关于该评估系统介绍与进行评估前的说明</div>
 
-  <!-- 按钮:文字可编辑,href 配置跳转地址(如小程序跳转链接/页面路径) -->
-  <a class="btn-hit" href="javascript:void(0)" onclick="/* TODO: 在此配置进入小程序首页的跳转逻辑 */">
+  <!-- 按钮:点击后返回小程序首页;在普通浏览器中回退到上一页 -->
+  <a class="btn-hit" href="javascript:void(0)" onclick="handleHome()">
     <span class="btn-label">欢迎按此键进入小程序首页查阅</span>
   </a>