update pay ui
This commit is contained in:
@@ -189,17 +189,6 @@
|
|||||||
|
|
||||||
<!-- 微信 JS-SDK (用于 H5 跳转小程序的开放标签) -->
|
<!-- 微信 JS-SDK (用于 H5 跳转小程序的开放标签) -->
|
||||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||||
|
|
||||||
<!-- 根路径立即跳转到 landing.html(在 React 加载之前执行) -->
|
|
||||||
<script>
|
|
||||||
(function() {
|
|
||||||
// 只在根路径 "/" 或 "/index.html" 时跳转
|
|
||||||
var path = window.location.pathname;
|
|
||||||
if (path === '/' || path === '/index.html') {
|
|
||||||
window.location.replace('/landing.html');
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>
|
<noscript>
|
||||||
|
|||||||
@@ -1,22 +1,29 @@
|
|||||||
// src/views/Landing/index.js
|
// src/views/Landing/index.js
|
||||||
// Landing 页面 - 重定向到静态 landing.html
|
// Landing 页面 - 使用 iframe 嵌入静态 landing.html
|
||||||
import { useEffect } from 'react';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Landing 组件
|
* Landing 组件
|
||||||
*
|
*
|
||||||
* 作用:将用户从 React SPA 重定向到静态 landing.html 页面
|
* 使用 iframe 全屏嵌入 landing.html,保持静态页面的完整功能
|
||||||
*
|
* 同时可以通过 React 路由访问
|
||||||
* 为什么使用 window.location.replace:
|
|
||||||
* - 不会在浏览历史中留下记录(用户点后退不会回到空白页)
|
|
||||||
* - 直接跳转到静态 HTML,不需要 React 渲染
|
|
||||||
*/
|
*/
|
||||||
export default function Landing() {
|
export default function Landing() {
|
||||||
useEffect(() => {
|
return (
|
||||||
// 直接跳转到 landing.html(不留浏览历史)
|
<iframe
|
||||||
window.location.replace('/landing.html');
|
src="/landing.html"
|
||||||
}, []);
|
title="价值前沿 - 金融AI舆情分析系统"
|
||||||
|
style={{
|
||||||
// 返回 null,因为会立即跳转
|
position: 'fixed',
|
||||||
return null;
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
|
border: 'none',
|
||||||
|
margin: 0,
|
||||||
|
padding: 0,
|
||||||
|
overflow: 'hidden',
|
||||||
|
zIndex: 9999,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user