diff --git a/app/(tabs)/User.tsx b/app/(tabs)/User.tsx index 3701fae69974a96a4c7ccdf313012cd211e1fb12..1dc70aac5c6eaacf2b390a084dd9a2b4ea51770e 100644 --- a/app/(tabs)/User.tsx +++ b/app/(tabs)/User.tsx @@ -13,6 +13,12 @@ export default function User() { const handlePress = () => { router.push('/MyViews/SetUp'); } + const handlePress1 = () => { + router.push('/MyViews/Systemnotification'); + } + const handlePress2 = () => { + router.push('/MyViews/download'); + } const GoOut = () => { // 弹窗确认退出 Alert.alert("确定要退出登录吗?", @@ -71,7 +77,10 @@ export default function User() { style={{ width: "20", height: "20", marginLeft: "10" }} > - 我的下载 > + + 我的下载 > + + @@ -128,7 +137,10 @@ export default function User() { style={{ width: "20", height: "20", marginLeft: "10" }} > - 系统通知 > + + 系统通知 > + + @@ -158,7 +170,7 @@ export default function User() { const styles = StyleSheet.create({ body56: { - height: "128", + height: 150, backgroundColor: '#ffffff', marginTop: "1.5", flexDirection: "row", @@ -196,8 +208,8 @@ const styles = StyleSheet.create({ }, Zhong1: { - height: "40", - marginTop: "1", + height: 45, + marginTop: 1, backgroundColor: "#ffffff", justifyContent: "center", diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index d0129262a9f6c526022e84c4ca1221ac4f8b9f3f..c082c83d6d63cf1578f353514841109cb111a533 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -35,6 +35,10 @@ export default function Index() { router.push("/YgFile/Academic"); } else if (value === "学术中心") { router.push("/YgFile/Oncologist"); + } else if (value === "精品课程") { + router.push("/YgFile/Excellentclass"); + } else if (value === "肿瘤会议") { + router.push("/YgFile/TumorHospital"); } }; useEffect(() => { @@ -93,6 +97,7 @@ export default function Index() { ); }; + return ( diff --git a/app/AndroidManifest.xml b/app/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..a562c1580f445e09e0a23015285345d598cc655e --- /dev/null +++ b/app/AndroidManifest.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/MyViews/GaiZhang.tsx b/app/MyViews/GaiZhang.tsx index 6f69bf566f6dcf8b3a37069248584c6588afc0ca..c78a45ed8ff9d702282f21d3dbc2b7e7daf029bf 100644 --- a/app/MyViews/GaiZhang.tsx +++ b/app/MyViews/GaiZhang.tsx @@ -5,28 +5,48 @@ import { TextInput, Button, ScrollView, + Modal, + TouchableOpacity, + Alert, + ActivityIndicator } from 'react-native' import React, { useState, useEffect } from 'react' import { Switch } from '@rneui/themed'; // 弹出层 第三方库 import { Picker } from '@react-native-picker/picker'; +import ProvinceCityArea from './province_city_area'; export default function GaiZhang() { const [name, setName] = useState(''); const [phone, setPhone] = useState(''); const [email, setEmail] = useState(''); const [address, setAddress] = useState(''); + const [address0, setAddress0] = useState(''); const [workunit, setWorkunit] = useState(''); const [department, setDepartment] = useState(''); const [selectedValue, setSelectedValue] = useState('其他'); const [selectedValue1, setSelectedValue1] = useState('其他'); const [selectedValue2, setSelectedValue2] = useState('其他'); const [checked, setChecked] = useState(false); + const [modalVisible, setModalVisible] = useState(false); + const [loading, setLoading] = useState(false); // 控制加载状态 + const handleSave = () => { + // 设置加载状态为 true + setLoading(true); + // 模拟延迟操作(比如调用API或其他操作) + setTimeout(() => { + // 完成后关闭加载状态 + setLoading(false); + + // 弹出加载成功的提示框 + Alert.alert('加载成功', '数据已成功保存!'); + }, 3000); // 模拟3秒的加载时间 + }; return ( - + 基本资料 @@ -86,8 +106,18 @@ export default function GaiZhang() { - 所在区域 - + setModalVisible(true)} + > + 所在区域 + + setModalVisible(true)} + /> 详细地址 @@ -138,16 +168,50 @@ export default function GaiZhang() { onValueChange={(value) => setChecked(value)} /> - + + + + + + + + {loading ? '正在保存...' : '保存'} + + {loading && } + + {/* 弹窗 */} + setModalVisible(false)} + > + + + + + +