提交 65f7ea05 authored 作者: matian's avatar matian

项目优化

上级 c687cb38
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
tempRoute: {}, tempRoute: {},
navList: [ navList: [
{ title: '首页', path: '/index' }, { title: '首页', path: '/index' },
{ title: '专业设置', path: '/profession' }, { title: '儿童教育硕士', path: '/profession' },
{ title: '报名申请', path: '/my' }, { title: '报名申请', path: '/my' },
{ title: '最新动态', path: '/news' }, { title: '最新动态', path: '/news' },
{ title: '联系我们', path: '/contact' } { title: '联系我们', path: '/contact' }
......
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.tab { .tab {
height: 40px; height: 40px;
background: #af1b40ff; background: #af1b40;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #fff; color: #fff;
......
<template> <template>
<div <div class="section-form">
class="homepage_message" <div class="section-form-inner">
:style="{'min-height': leavheight + 'px', backgroundImage:'url(' + imgUrlBg + ')' }" <div class="form-box">
> <h2>报名咨询CU教育学(儿童)硕士</h2>
<div class="homepage_message-main"> <p>填写姓名 + 手机, 点击报名咨询</p>
<h3> <el-form :model="ruleForm" :rules="rules" ref="ruleForm">
<span>留下您的信息</span> <el-form-item prop="name">
</h3> <el-input v-model="ruleForm.name" placeholder="姓名"></el-input>
<h5>紫荆教育学位顾问为您提供专业的服务</h5> </el-form-item>
<div class="homepage_message_body"> <el-form-item prop="phone">
<div class="body_img"> <el-input v-model="ruleForm.phone" placeholder="手机"></el-input>
<img :src="imgUrl" alt /> </el-form-item>
</div> <el-form-item>
<div class="body_input"> <el-button type="primary" :loading="isLoading" @click="submit">报名咨询</el-button>
<el-form </el-form-item>
:model="ruleForm" </el-form>
:rules="rules"
ref="ruleForm"
label-width="0px"
class="demo-ruleForm"
>
<el-form-item prop="name">
<el-input v-model="ruleForm.name" placeholder="姓名"></el-input>
</el-form-item>
<el-form-item prop="phone">
<el-input v-model="ruleForm.phone" placeholder="手机"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" :loading="isLoading" @click="submit">提交</el-button>
</el-form-item>
</el-form>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -100,81 +84,63 @@ export default { ...@@ -100,81 +84,63 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.homepage_message { .section-form {
width: 100%;
position: relative; position: relative;
background-repeat: no-repeat;
background-size: cover;
display: flex; display: flex;
justify-content: center; justify-content: center;
.homepage_message-main { height: 554px;
width: 80%; background: url(@/assets/images/major-set/mz.png) no-repeat center;
margin: 0 auto; background-repeat: no-repeat;
h3 { background-size: 100%;
margin-top: 80px; }
text-align: center; .section-form-inner {
color: rgba(255, 255, 255, 1); width: 70%;
font-size: 40px; margin: 0 auto;
font-family: PingFangSC-Medium, PingFang SC; h2 {
span { font-size: 26px;
display: inline-block; font-family: SourceHanSansCN-Medium, SourceHanSansCN;
position: relative; font-weight: 500;
&::before { color: #af1b40;
content: ''; line-height: 40px;
position: absolute; letter-spacing: 5px;
bottom: -4px; text-align: center;
height: 3px; }
background: #ffffff; p {
width: 100%; margin-bottom: 30px;
} font-size: 20px;
} font-family: SourceHanSansCN-Regular, SourceHanSansCN;
font-weight: 400;
color: #777777;
line-height: 30px;
letter-spacing: 2px;
text-align: center;
}
.form-box {
width: 450px;
padding: 40px;
background-color: #fff;
margin-top: 100px;
white-space: nowrap;
.el-input {
width: 100%;
} }
h5 { ::v-deep .el-input__inner {
padding-top: 24px; background: transparent;
font-size: 18px; border: 0px;
font-family: PingFangSC-Semibold, PingFang SC; border-bottom: 1px solid #000;
font-weight: 600; border-radius: 0px;
opacity: 0.6; padding: 0px;
color: rgba(255, 255, 255, 1); color: #333;
text-align: center;
} }
.homepage_message_body { ::v-deep .el-button {
padding: 63px 0px 0px 0px; margin-top: 20px;
display: flex; color: #fff;
background-color: #af1b40;
border: 1px solid #af1b40;
width: 100%; width: 100%;
.body_img { height: 40px;
flex: 1; border-radius: 0;
padding: 0px 30px;
}
.body_input {
flex: 1;
padding: 0px 30px;
.demo-ruleForm {
display: flex;
justify-content: space-between;
flex-direction: column;
height: 100%;
}
.el-input {
max-width: 324px;
}
::v-deep .el-input__inner {
border: 0px;
background: transparent;
border-bottom: 2px solid #fff;
border-radius: 0px;
padding: 0px;
color: #fff;
}
::v-deep .el-button {
width: 132px;
height: 54px;
border-radius: 4px;
.el-icon-loading {
color: #fff !important;
}
}
}
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论