nili 8 months ago
parent
commit
06979ee898
  1. 6
      build/asset-manifest.json
  2. 2
      build/index.html
  3. 6
      build/static/js/main.16bdccfd.js
  4. 0
      build/static/js/main.16bdccfd.js.LICENSE.txt
  5. 1
      build/static/js/main.16bdccfd.js.map
  6. 1
      build/static/js/main.f3d3e83a.js.map
  7. 5
      src/global.d.ts
  8. 4
      src/index.tsx
  9. 10
      src/page/UserPage.tsx

6
build/asset-manifest.json

@ -1,15 +1,15 @@
{
"files": {
"main.css": "/static/css/main.31676e70.css",
"main.js": "/static/js/main.f3d3e83a.js",
"main.js": "/static/js/main.16bdccfd.js",
"static/js/453.1d641cba.chunk.js": "/static/js/453.1d641cba.chunk.js",
"index.html": "/index.html",
"main.31676e70.css.map": "/static/css/main.31676e70.css.map",
"main.f3d3e83a.js.map": "/static/js/main.f3d3e83a.js.map",
"main.16bdccfd.js.map": "/static/js/main.16bdccfd.js.map",
"453.1d641cba.chunk.js.map": "/static/js/453.1d641cba.chunk.js.map"
},
"entrypoints": [
"static/css/main.31676e70.css",
"static/js/main.f3d3e83a.js"
"static/js/main.16bdccfd.js"
]
}

2
build/index.html

@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>奇迹畅玩</title><script defer="defer" src="/static/js/main.f3d3e83a.js"></script><link href="/static/css/main.31676e70.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>奇迹畅玩</title><script defer="defer" src="/static/js/main.16bdccfd.js"></script><link href="/static/css/main.31676e70.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

6
build/static/js/main.f3d3e83a.js → build/static/js/main.16bdccfd.js

File diff suppressed because one or more lines are too long

0
build/static/js/main.f3d3e83a.js.LICENSE.txt → build/static/js/main.16bdccfd.js.LICENSE.txt

1
build/static/js/main.16bdccfd.js.map

File diff suppressed because one or more lines are too long

1
build/static/js/main.f3d3e83a.js.map

File diff suppressed because one or more lines are too long

5
src/global.d.ts

@ -0,0 +1,5 @@
// global.d.ts
interface Window {
setAppCode: (arg: string) => void;
}

4
src/index.tsx

@ -17,3 +17,7 @@ root.render(
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
window.setAppCode = (arg: string): void => {
alert("setAppCode:" + arg);
};

10
src/page/UserPage.tsx

@ -71,15 +71,7 @@ const UserPage = () => {
<List.Item
prefix={<UnorderedListOutline />}
onClick={() => {
if (
(window as any).CocosBridge &&
typeof (window as any).CocosBridge.test === "function"
) {
const code = (window as any).CocosBridge.test();
alert("code:" + code);
} else {
alert("无法访问 CocosBridge.test() 方法");
}
document.location = "bzgame_scheme://token=123456";
}}
>

Loading…
Cancel
Save