+
2020年【各省公务员】笔试全程班合集
-
-
+
+
@@ -32,32 +45,32 @@ export default class MyCourse extends Component {
- 苏晴雨
-
+

- 陆泽飞
-
+

- 刘俊堂
-
+
-
-
-
-
+
+
+
+
2021年【河北省公务员】笔试全程班合集
-
-
+
+
@@ -65,14 +78,14 @@ export default class MyCourse extends Component {
- 苏晴雨
-
+

- 陆泽飞
-
+

@@ -82,15 +95,15 @@ export default class MyCourse extends Component {
-
-
-
-
+
+
+
+
2022年【山东省公务员】笔试全程班合集
-
-
+
+
@@ -98,14 +111,14 @@ export default class MyCourse extends Component {
- 苏晴雨
-
+

- 陆泽飞
-
+

@@ -115,15 +128,15 @@ export default class MyCourse extends Component {
-
-
-
-
+
+
+
+
2023年【河南省公务员】笔试全程班合集
-
-
+
+
@@ -131,14 +144,14 @@ export default class MyCourse extends Component {
- 苏晴雨
-
+

- 陆泽飞
-
+

@@ -148,11 +161,11 @@ export default class MyCourse extends Component {
-
-
-
-
- )
+
+
+
+
+
+ );
}
}
-
diff --git a/demo_module/src/view/Mine/MyVideo.jsx b/demo_module/src/view/Mine/MyVideo.jsx
new file mode 100644
index 0000000000000000000000000000000000000000..0e503328a4f046300612f8dd4409143fd4cfbe2d
--- /dev/null
+++ b/demo_module/src/view/Mine/MyVideo.jsx
@@ -0,0 +1,86 @@
+import React, { Component } from 'react';
+import { Link } from 'react-router-dom';
+import { LeftOutline } from 'antd-mobile-icons';
+import './List.css';
+
+export default class MyVideo extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ currentVideo: '/images/v1.mp4', // 当前播放的视频
+ comments: [ // 初始评论列表
+ '这节课真好,收益良多!',
+ '老师讲解得非常清晰!',
+ '期待下一节课!',
+ '视频内容很丰富,感谢分享!',
+ ],
+ newComment: '', // 输入的新评论
+ };
+ }
+
+ handlePlayVideo(video) {
+ this.setState({ currentVideo: video });
+ }
+
+ handleCommentChange = (event) => {
+ this.setState({ newComment: event.target.value });
+ }
+
+ handleAddComment = () => {
+ const { newComment, comments } = this.state;
+ if (newComment.trim()) {
+ this.setState({
+ comments: [...comments, newComment],
+ newComment: '', // 清空输入框
+ });
+ }
+ }
+
+ render() {
+ const { currentVideo, comments, newComment } = this.state;
+
+ return (
+
+
+
+ 2020年【各省公务员】笔试全程班合集
+
+
+
+
+ {/* 播放视频的部分 */}
+ {currentVideo && (
+
+
+
+ )}
+
+ {/* 评论部分 */}
+
+
观众评论
+
+
+
+
+
+ {comments.map((comment, index) => (
+
+ - {comment}
+
+
+ ))}
+
+
+
+ )
+ }
+}
diff --git a/demo_module/src/view/Mine/Settings.jsx b/demo_module/src/view/Mine/Settings.jsx
index df89fc5940a785ead814fb19143dc959072d00b5..6240b4202f825ea06e1c79d8d91055f4306a7b7c 100644
--- a/demo_module/src/view/Mine/Settings.jsx
+++ b/demo_module/src/view/Mine/Settings.jsx
@@ -1,58 +1,65 @@
import React from 'react'
-import { Link } from'react-router-dom'
-import { LeftOutline,RightOutline } from 'antd-mobile-icons'
+import { Link } from 'react-router-dom'
+import { LeftOutline, RightOutline } from 'antd-mobile-icons'
import "./List.css"
import { Modal, Input, Form, Button } from 'antd';
-
+import { useNavigate } from 'react-router-dom'
export default function Settings() {
+ const navigate = useNavigate()
+
return (
-
-
-
-
设置
-
-
-
- 登录密码
- 已设置
-
-
-
-
- 设置声音
-
-
-
-
-
- 版本信息
- V2.21
-
-
-
-
- 用户协议
-
-
-
-
-
- 隐私协议
-
-
-
-
-
- 彻底注销账号
-
-
-
+
+
+
+
设置
+
+
+
{
+ navigate('/wang')
+ }} >
+ 登录密码
+ 已设置
+
+
+
+
+ 设置声音
+
+
+
+
+
+ 版本信息
+ V2.21
+
+
+
+
+ 用户协议
+
+
+
+
+
+ 隐私协议
+
+
+
+
+
{
+ navigate('/mm')
+ }}>
+ 彻底注销账号
+
+
+
-
-
+
+
)
}
diff --git a/demo_server/db/index.js b/demo_server/db/index.js
index 621a9bdb068b591e00eecb9ee2aa0f963ce84785..7125de119696b69d74bcfca786de6a4ac5d8176b 100644
--- a/demo_server/db/index.js
+++ b/demo_server/db/index.js
@@ -3,7 +3,7 @@ const mongoose = require('mongoose');
mongoose.connect('mongodb+srv://3079975645:YANG123123@zhangfu-database.5i5er.mongodb.net/XIANGMU-BASE').then(res => {
console.log('OK');
}).catch(err => {
- console.log('NO');
+ console.log('NO! 网络未连接');
})
module.exports = mongoose;
\ No newline at end of file