纳新群号加上
continuous-integration/drone/push Build is passing Details

master
cxz66666 2020-09-10 00:14:20 +08:00
parent fcff8aff77
commit be66c988b2
5 changed files with 60 additions and 28 deletions

View File

@ -3,7 +3,7 @@ import Sheet from "./components/Sheet";
import { BackTop, Layout } from "antd"; import { BackTop, Layout } from "antd";
import Background from "./background2.jpg"; import Background from "./background2.jpg";
import UploadToOSS from "./components/UploadToOSS"; import UploadToOSS from "./components/UploadToOSS";
import qrqq from "./picture/qr-qq.jpg";
class Entry extends React.Component { class Entry extends React.Component {
state = { state = {
stuid: null, stuid: null,
@ -36,11 +36,10 @@ class Entry extends React.Component {
<Sheet setID={this.setID} /> <Sheet setID={this.setID} />
<BackTop visibilityHeight={200} /> <BackTop visibilityHeight={200} />
<h2 style={{ margin: "20px 0 20px 0", textAlign: "center" }}> <h2 style={{ margin: "20px 0 20px 0", textAlign: "center" }}>
提交报名表后我们强烈建议您加入QQ纳新咨询群群号:1234567890 提交报名表后建议您加入QQ纳新咨询群群号:1126888868
</h2> </h2>
<p style={{ textAlign: "center" }}> <p style={{ textAlign: "center" }}>浙江大学学生E志者协会©2020</p>
浙江大学学生E志者协会©2020 Created by EVATech <p style={{ textAlign: "center" }}>Created by EVATech</p>
</p>
</div> </div>
</Layout> </Layout>
); );

View File

@ -31,7 +31,7 @@ import zhiban from "../picture/zhiban.png";
import zhiyuanzhe from "../picture/zhiyuanzhe.png"; import zhiyuanzhe from "../picture/zhiyuanzhe.png";
import qrwexin from "../picture/qr-wexin.jpg"; import qrwexin from "../picture/qr-wexin.jpg";
import qrbilibili from "../picture/qr-bilibili.jpg"; import qrbilibili from "../picture/qr-bilibili.jpg";
import qrqq from "../picture/qr-qq.jpg"; import qrqq from "../picture/qr-qq.png";
import beian from "../picture/beian.png"; import beian from "../picture/beian.png";
import fivestars from "../picture/fivestars.png"; import fivestars from "../picture/fivestars.png";
@ -1830,7 +1830,7 @@ export const Footer10DataSource = {
children: ( children: (
<span> <span>
<br /> <br />
<b>纳新咨询群797980851</b> <b>纳新咨询群1126888868</b>
</span> </span>
), ),
className: "kd2mqk40hca-editor_css", className: "kd2mqk40hca-editor_css",

View File

@ -1,12 +1,21 @@
import React from "react"; import React from "react";
import axios from "axios"; import axios from "axios";
import { Button, Form, Input, Icon, Radio, message, Divider } from "antd"; import {
Button,
Form,
Input,
Icon,
Radio,
message,
Divider,
Modal,
} from "antd";
import "antd/dist/antd.css"; import "antd/dist/antd.css";
import { confirmAlert } from "react-confirm-alert"; import { confirmAlert } from "react-confirm-alert";
import "react-confirm-alert/src/react-confirm-alert.css"; import "react-confirm-alert/src/react-confirm-alert.css";
import qs from "qs"; import qs from "qs";
import successInform from "./Message"; import successInform from "./Message";
import qrqq from "../picture/qr-qq.png";
class NewForm extends React.Component { class NewForm extends React.Component {
constructor() { constructor() {
super(); super();
@ -14,6 +23,7 @@ class NewForm extends React.Component {
WishValid: false, WishValid: false,
firstWish: undefined, firstWish: undefined,
secondWish: undefined, secondWish: undefined,
visible: false,
}; };
} }
componentDidMount() { componentDidMount() {
@ -62,6 +72,7 @@ class NewForm extends React.Component {
message.success( message.success(
"提交成功!后续的面试时间会以短信形式通知,期待你的加入!" "提交成功!后续的面试时间会以短信形式通知,期待你的加入!"
); );
//maybe this is useless but I really don't want to delete it
successInform( successInform(
values.phone, values.phone,
values.name, values.name,
@ -69,6 +80,7 @@ class NewForm extends React.Component {
values.firstWish, values.firstWish,
values.secondWish values.secondWish
); );
this.setState({ visible: true });
} else { } else {
if (result.data.errorMsg === "TICKET_NOT_LEGEAL") { if (result.data.errorMsg === "TICKET_NOT_LEGEAL") {
message.error("提交失败!请检查报名表填写是否正确。"); message.error("提交失败!请检查报名表填写是否正确。");
@ -97,7 +109,16 @@ class NewForm extends React.Component {
], ],
}); });
}; };
handleCancel = (e) => {
this.setState({
visible: false,
});
};
handleOk = (e) => {
this.setState({
visible: false,
});
};
validator = (rule, value, callback) => { validator = (rule, value, callback) => {
this.setState({ WishValid: true }); this.setState({ WishValid: true });
const form = this.props.form; const form = this.props.form;
@ -130,24 +151,24 @@ class NewForm extends React.Component {
const questions = [ const questions = [
[], [],
[ [
"电脑部:说说你跟电脑有关的印象深刻的事情(或者你对电脑最感兴趣的地方,可以是某个组成部分)", "【电脑部】说说你跟电脑有关的印象深刻的事情(或者你对电脑最感兴趣的地方,可以是某个组成部分)",
"电脑部:来电脑部之后想学些什么?有什么想学的也可以说呀", "【电脑部】来电脑部之后想学些什么?有什么想学的也可以说呀",
], ],
[ [
"电器部:你有没有自己拆装简单电器的经历,有的话请简述", "【电器部】你现在有哪些电子或技术方面的知识或经历吗?若有,请简述;若无,请讲讲你当下最想学会的一项技能,并打算如何运用它",
"电器部:你希望自己在电器部成为一个怎样的人?定位在劳动者,领导者还是创新者?请简述", "【电器部】你认为动手能力和理论知识对于电器维修来说哪个更重要?为什么?",
], ],
[ [
"文宣部:在文宣方面,你有什么优势或者打算如何提高自己?", "【文宣部】在文宣方面,你有什么优势或者打算如何提高自己?",
"文宣部:描述一下你构想的以xx为主题的海报or摄影作品xx可以是你想到的任何事物", "【文宣部】描述一下你构想的以xx为主题的海报or摄影作品xx可以是你想到的任何事物",
], ],
[ [
"人资部:请举一个你想出的创新点子(实现过或现实中有一定的可操作性),最好是关于组织某次活动(活动包括但不限于宣传活动,内建活动,特殊的生日祝福等等)", "【人资部】请举一个你想出的创新点子(实现过或现实中有一定的可操作性),最好是关于组织某次活动(宣传活动,内建活动,特殊的生日祝福等等)",
"人资部:你觉得你身上最符合人资部的特点是什么?", "【人资部】你觉得你身上最符合人资部的特点是什么?",
], ],
[ [
"财外部:在社团全员大会/部门内建/部门事务这三种情况打破了你原来的学习安排的情况下,你如何去平衡社团与学习生活?", "【财外部】在社团全员大会/部门内建/部门事务这三种情况打破了你原来的学习安排的情况下,你如何去平衡社团与学习生活?",
"财外部:说说令你印象最深刻的理财经历,可以是任何和理财有关的哦", "【财外部】说说令你印象最深刻的理财经历,可以是任何和理财有关的哦",
], ],
]; ];
@ -177,7 +198,7 @@ class NewForm extends React.Component {
labelAlign: "left", labelAlign: "left",
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
sm: { span: 18, offset: 4 }, sm: { span: 20, offset: 4 },
}, },
wrapperCol: { wrapperCol: {
xs: { span: 24 }, xs: { span: 24 },
@ -189,11 +210,11 @@ class NewForm extends React.Component {
return ( return (
<Form {...formItemLayout} onSubmit={this.handleSubmit}> <Form {...formItemLayout} onSubmit={this.handleSubmit}>
<Divider <Divider
orientation="left" dashed={true}
orientatio="center"
style={{ style={{
fontSize: 19, fontSize: 19,
fontWeight: "bold", fontWeight: "bold",
margin: "20px 0px 25px 10%",
}} }}
> >
基本信息 基本信息
@ -312,11 +333,10 @@ class NewForm extends React.Component {
})(<Input.TextArea autosize={{ minRows: 2, maxRows: 8 }} />)} })(<Input.TextArea autosize={{ minRows: 2, maxRows: 8 }} />)}
</Form.Item> </Form.Item>
<Divider <Divider
orientation="left" orientation="center"
style={{ style={{
fontSize: 19, fontSize: 19,
fontWeight: "bold", fontWeight: "bold",
margin: "20px 0px 25px 10%",
}} }}
> >
Pick你的最爱 Pick你的最爱
@ -469,16 +489,18 @@ class NewForm extends React.Component {
})(<Input.TextArea autosize={{ minRows: 2, maxRows: 8 }} />)} })(<Input.TextArea autosize={{ minRows: 2, maxRows: 8 }} />)}
</Form.Item> </Form.Item>
<Divider <Divider
orientation="left" orientation="center"
style={{ style={{
fontSize: 19, fontSize: 19,
fontWeight: "bold", fontWeight: "bold",
margin: "20px 0px 25px 10%",
}} }}
> >
小E想听你说 小E想听你说
</Divider> </Divider>
<Form.Item label="你希望未来能在E志者协会得到什么又能为E志付出什么"> <Form.Item
label="你希望未来能在E志者协会得到什么又能为E志付出什么"
{...questionItemLayout}
>
{getFieldDecorator("question2", { {getFieldDecorator("question2", {
rules: [ rules: [
{ {
@ -508,6 +530,17 @@ class NewForm extends React.Component {
保存草稿 保存草稿
</Button> </Button>
</Form.Item> </Form.Item>
<Modal
title="提交成功!"
visible={this.state.visible}
onOk={this.handleOk}
onCancel={this.handleCancel}
okText="这就加群"
cancelText="我再想想"
>
<p>提交报名表后我们强烈建议您加入QQ纳新咨询群群号:1126888868</p>
<img src={qrqq} alt="二维码" width={250} />
</Modal>
</Form> </Form>
); );
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB