nili 8 months ago
parent
commit
271a2c4398
  1. 6
      build/asset-manifest.json
  2. 2
      build/index.html
  3. 6
      build/static/js/main.6bc579cf.js
  4. 0
      build/static/js/main.6bc579cf.js.LICENSE.txt
  5. 1
      build/static/js/main.6bc579cf.js.map
  6. 1
      build/static/js/main.f7930c69.js.map
  7. 20
      src/page/UserPage.tsx
  8. 1
      src/page/login/LoginByPwd.tsx
  9. 9
      src/page/login/LoginPage.tsx

6
build/asset-manifest.json

@ -1,15 +1,15 @@
{
"files": {
"main.css": "/static/css/main.31676e70.css",
"main.js": "/static/js/main.f7930c69.js",
"main.js": "/static/js/main.6bc579cf.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.f7930c69.js.map": "/static/js/main.f7930c69.js.map",
"main.6bc579cf.js.map": "/static/js/main.6bc579cf.js.map",
"453.1d641cba.chunk.js.map": "/static/js/453.1d641cba.chunk.js.map"
},
"entrypoints": [
"static/css/main.31676e70.css",
"static/js/main.f7930c69.js"
"static/js/main.6bc579cf.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.f7930c69.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.6bc579cf.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.f7930c69.js → build/static/js/main.6bc579cf.js

File diff suppressed because one or more lines are too long

0
build/static/js/main.f7930c69.js.LICENSE.txt → build/static/js/main.6bc579cf.js.LICENSE.txt

1
build/static/js/main.6bc579cf.js.map

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

20
src/page/UserPage.tsx

@ -2,7 +2,7 @@ import React, { useEffect } from "react";
import { UserBo } from "../api/generated/model/user-bo";
import { userApi } from "../api";
import { useNavigate } from "react-router-dom";
import { Avatar, List } from "antd-mobile";
import { Avatar, List, Toast } from "antd-mobile";
import {
PayCircleOutline,
SetOutline,
@ -16,6 +16,10 @@ import {
TeamOutlined,
} from "@ant-design/icons";
interface ParentWindow extends Window {
test: (...args: any[]) => void;
}
const UserPage = () => {
const [user, setUser] = React.useState<UserBo>();
const navigate = useNavigate();
@ -64,7 +68,19 @@ const UserPage = () => {
>
</List.Item>
<List.Item prefix={<UnorderedListOutline />} onClick={() => {}}>
<List.Item
prefix={<UnorderedListOutline />}
onClick={() => {
if (
window.parent &&
typeof (window.parent as ParentWindow).test === "function"
) {
(window.parent as ParentWindow).test();
} else {
Toast.show({ content: "无法访问 parent.test() 方法" });
}
}}
>
</List.Item>
<List.Item prefix={<AlipayOutlined />} extra="修改" onClick={() => {}}>

1
src/page/login/LoginByPwd.tsx

@ -26,7 +26,6 @@ const LoginByPwd: FC<LoginByPwdProps> = (params: LoginByPwdProps) => {
<Form
onFinish={onFinish}
layout="horizontal"
mode="card"
form={form}
initialValues={{ appCode: appCode }}
>

9
src/page/login/LoginPage.tsx

@ -51,15 +51,6 @@ const LoginPage = () => {
<>
{app && appCode && (
<div style={{ maxWidth: 500, margin: "auto" }}>
<Image
style={{ margin: "auto", paddingTop: 20 }}
src={app?.img}
width={100}
height={100}
/>
<p style={{ textAlign: "center", fontSize: 20, fontWeight: "bold" }}>
{app?.name}
</p>
<Tabs
activeKey={tabItems[activeIndex].key}
onChange={(key) => {

Loading…
Cancel
Save