Commit 2a9d7b5d authored by 杨梦雪's avatar 杨梦雪

修改

parent 0d845aa4
<template>
<!--底部-->
<div class="confirm">
<div class="title">2021年南开大学历史学科暑假营报名须知</div>
<p>
南开大学是教育部直属重点综合性大学,是敬爱的周恩来总理的母校。新中国成立以来,学校发展始终得到党和国家的亲切关怀。毛泽东主席题写校名、亲临视察;周恩来总理三回母校指导;邓小平同志会见数学大师陈省身,批示成立南开数学研究所;江泽民同志、胡锦涛同志先后视察南开。特别是党的十八大以来,习近平总书记多次对南开的发展给予肯定,并对相关工作回信和勉励,更在百年校庆之际亲临南开视察。
</p>
<p>
南开大学是教育部直属重点综合性大学,是敬爱的周恩来总理的母校。新中国成立以来,学校发展始终得到党和国家的亲切关怀。毛泽东主席题写校名、亲临视察;周恩来总理三回母校指导;邓小平同志会见数学大师陈省身,批示成立南开数学研究所;江泽民同志、胡锦涛同志先后视察南开。特别是党的十八大以来,习近平总书记多次对南开的发展给予肯定,并对相关工作回信和勉励,更在百年校庆之际亲临南开视察。
</p>
<div class="line"></div>
<p>
南开大学是教育部直属重点综合性大学,是敬爱的周恩来总理的母校。新中国成立以来,学校发展始终得到党和国家的亲切关怀。毛泽东主席题写校名、亲临视察;
</p>
<div>
<img src="../../../assets/img/signUp/computer.png" alt="" />
</div>
<div class="check">
<el-checkbox v-model="checked"
>我已阅读并了解《2021年南开大学历史学科暑假营报名须知》</el-checkbox
>
</div>
<div class="btn">
<el-button @click="next()">下一步</el-button>
</div>
<div class="title">2021年南开大学历史学科暑假营报名须知</div>
<p>
南开大学是教育部直属重点综合性大学,是敬爱的周恩来总理的母校。新中国成立以来,学校发展始终得到党和国家的亲切关怀。毛泽东主席题写校名、亲临视察;周恩来总理三回母校指导;邓小平同志会见数学大师陈省身,批示成立南开数学研究所;江泽民同志、胡锦涛同志先后视察南开。特别是党的十八大以来,习近平总书记多次对南开的发展给予肯定,并对相关工作回信和勉励,更在百年校庆之际亲临南开视察。
</p>
<p>
南开大学是教育部直属重点综合性大学,是敬爱的周恩来总理的母校。新中国成立以来,学校发展始终得到党和国家的亲切关怀。毛泽东主席题写校名、亲临视察;周恩来总理三回母校指导;邓小平同志会见数学大师陈省身,批示成立南开数学研究所;江泽民同志、胡锦涛同志先后视察南开。特别是党的十八大以来,习近平总书记多次对南开的发展给予肯定,并对相关工作回信和勉励,更在百年校庆之际亲临南开视察。
</p>
<div class="line"></div>
<p>
南开大学是教育部直属重点综合性大学,是敬爱的周恩来总理的母校。新中国成立以来,学校发展始终得到党和国家的亲切关怀。毛泽东主席题写校名、亲临视察;
</p>
<div>
<img src="../../../assets/img/signUp/computer.png" alt="" />
</div>
<div class="check">
<el-checkbox v-model="checked"
>我已阅读并了解《2021年南开大学历史学科暑假营报名须知》</el-checkbox
>
</div>
<div class="btn">
<el-button :disabled='!checked' @click="next()">下一步</el-button>
</div>
</div>
</template>
<script>
/* eslint-disable */
export default {
name: "Confirm",
data() {
return {
checked:false
};
},
methods:{
next(){
// if(!this.checked){
// return this.$message.console.error('请');
// }
console.log(this.checked)
this.$router.push( "/signUp/invitation");
}
}
};
</script>
......
......@@ -3,8 +3,10 @@ import {
request
} from './network'
const identity = localStorage.getItem('index-identity')
// 登录
export function login(data) {
data['identity'] = identity;
return request({
method: 'post',
url: '/web/auth/login',
......@@ -15,6 +17,7 @@ export function login(data) {
// 退出
export function logout(data) {
data['identity'] = identity;
return request({
method: 'post',
url: '/web/auth/loginOut',
......@@ -24,6 +27,7 @@ export function logout(data) {
// 通过旧密码找回密码
export function changePassOld(data) {
data['identity'] = identity;
return request({
method: 'post',
url: '/web/auth/changePassOld',
......@@ -33,6 +37,7 @@ export function changePassOld(data) {
// 通过验证码找回密码
export function changePassCode(data) {
data['identity'] = identity;
return request({
method: 'post',
url: '/web/auth/changePassCode',
......
......@@ -11,10 +11,17 @@ export function registerCode(data) {
return request({
method: 'post',
url: '/web/code/registerCode',
data
params:data
})
}
export function passwordCode(data) {
data['identity'] = identity;
return request({
method: 'post',
url: '/web/code/passwordCode',
params:data
})
}
// 填写注册信息
export function setAccountInfo(data) {
......
......@@ -3,8 +3,10 @@ import {
request
} from './network'
const identity = localStorage.getItem('index-identity')
// 报名初始化
export function signUpInit(data) {
data['identity'] = identity;
return request({
method: 'post',
url: '/web/signUp/signUpInit',
......@@ -14,6 +16,7 @@ export function signUpInit(data) {
// 确认报名须知
export function setSignShould(data) {
data['identity'] = identity;
return request({
method: 'post',
url: '/web/signUp/setSignShould',
......@@ -23,6 +26,7 @@ export function setSignShould(data) {
// 页面个人获取
export function getAccount(data) {
data['identity'] = identity;
return request({
method: 'post',
url: '/web/signUp/getAccount',
......@@ -32,6 +36,7 @@ export function getAccount(data) {
// 获取学习成绩证明材料上传图片
export function getAchievementOss(data) {
data['identity'] = identity;
return request({
method: 'post',
url: '/web/signUp/getAchievementOss',
......@@ -41,6 +46,7 @@ export function getAchievementOss(data) {
// 页面个人信息保存
export function setAccount(data) {
data['identity'] = identity;
return request({
method: 'post',
url: '/web/signUp/setAccount',
......@@ -50,6 +56,7 @@ export function setAccount(data) {
// 获取报名省份城市
export function getProAndCity(data) {
data['identity'] = identity;
return request({
method: 'post',
url: '/web/signUp/getProAndCity',
......@@ -59,6 +66,7 @@ export function getProAndCity(data) {
// 获取报名学校
export function getSchool(data) {
data['identity'] = identity;
return request({
method: 'post',
url: '/web/signUp/getSchool',
......
......@@ -38,10 +38,10 @@ const routes = [{
}
]
// const originalPush = VueRouter.prototype.push
// VueRouter.prototype.push = function push (location) {
// return originalPush.call(this, location).catch(err => err)
// }
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
return originalPush.call(this, location).catch(err => err)
}
const router = new VueRouter({
mode: 'history',
......
export default [{
path: '/signUp',
path: '/signUp/:type',
name: 'index-signUp',
component: () => import(/* webpackChunkName: "login" */ 'v/index/camp/SignUp.vue'),
meta: {
......
......@@ -5,7 +5,7 @@
<div class="cc flex">
<div class="camp_left">
<ul class="camp_left_box">
<li @click="ToSignUp" :class="activeMenu == 0 ? 'active' : ''">
<li @click="ToSignUp" >
<img src="@/assets/img/signUp/icon-bm.png" />营地报名
</li>
<li @click="ToHomework">
......
......@@ -6,11 +6,11 @@
<Breadcrumb> </Breadcrumb>
</div>
</div>
<Confirm> </Confirm>
<!-- <Invitation> </Invitation> -->
<!-- <ReferInfo> </ReferInfo> -->
<!-- <Pass> </Pass> -->
<!-- <Paying> </Paying> -->
<Confirm v-if="type == 'examInfo'"> </Confirm>
<Invitation v-else-if="type == 'invitation'"> </Invitation>
<ReferInfo v-else-if="type == 'referInfo'"> </ReferInfo>
<Pass v-else-if="type == 'check'"> </Pass>
<Paying v-else-if="type == 'pay'"> </Paying>
</div>
</template>
......@@ -33,7 +33,13 @@ export default {
Paying,
},
data() {
return {};
return {
type: "examInfo",
};
},
created() {
this.type = this.$route.params.type;
console.log(this.$route);
},
};
</script>
......@@ -45,7 +51,7 @@ export default {
.signUp {
background: #ffffff;
width: 856px;
width: 856px;
.signUp_titile {
font-size: 24px;
font-weight: 500;
......
......@@ -108,17 +108,11 @@ export default {
methods: {
// 忘记账号/密码
forgetPwd() {
// window.localStorage.setItem("f_forgetpwd", 0);
this.$router.replace({ name: "index-reset" });
},
// 去注册
register() {
// this.dialogFormFu = {
// title: "提示",
// message: 1,
// };
// this.dialogVisibleFu = true;
this.$router.replace({ name: "index-register" });
},
// 改变密码显示状态
......@@ -127,16 +121,21 @@ export default {
},
// 登录
submitForm() {
login({
phone: this.loginForm.phone,
password: this.loginForm.password,
}).then((res) => {
console.log(res);
if (res.code != 200) {
return this.$message.error(res.message);
}
this.$router.replace({ name: "cerificateIndex" });
this.$refs["loginFormRef"].validate((valid) => {
if (!valid) return;
login({
phone: this.loginForm.phone,
password: this.loginForm.password,
}).then((res) => {
console.log(res);
if (res.status != 200) {
return this.$message.error(res.message);
}
this.$message.success("登录成功");
// token存储
window.localStorage.setItem("index-token", res.token);
this.$router.replace({ path: "/signUp/examInfo" });
});
});
},
},
......
This diff is collapsed.
This diff is collapsed.
......@@ -23,8 +23,8 @@ module.exports = {
// host: 'localhost',
// port: 8080, // 端口号
// https: true, // https:{type:Boolean}
open: true, // 配置自动启动浏览器
hotOnly: true, // 热更新
// open: true, // 配置自动启动浏览器
// hotOnly: true, // 热更新
// // proxy: {
// // "/api": {
// // target: "http://127.0.0.1:8080/",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment