Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-old
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-old
Commits
67ed9c33
提交
67ed9c33
authored
8月 10, 2022
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update
上级
f04ed8aa
全部展开
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
0 行增加
和
180 行删除
+0
-180
index.vue
src/components/leavex/index.vue
+0
-180
index.vue
src/pages/major-set/index.vue
+0
-0
没有找到文件。
src/components/leavex/index.vue
deleted
100644 → 0
浏览文件 @
f04ed8aa
<
template
>
<div
class=
"homepage_message"
:style=
"
{'min-height': leavheight + 'px', backgroundImage:'url(' + imgUrlBg + ')' }"
>
<div
class=
"homepage_message-main"
>
<h3>
<span>
留下您的信息
</span>
</h3>
<h5>
紫荆教育学位顾问为您提供专业的服务
</h5>
<div
class=
"homepage_message_body"
>
<div
class=
"body_img"
>
<img
:src=
"imgUrl"
alt
:style=
"imgUrl.indexOf('mes1') != -1 ? 'width:472px' : ''"
/>
</div>
<div
class=
"body_input"
>
<el-form
:model=
"ruleForm"
: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>
</
template
>
<
script
>
import
cAction
from
'@action'
export
default
{
name
:
'leavex'
,
props
:
{
imgUrl
:
{},
leavheight
:
{
type
:
Number
},
imgUrlBg
:
{}
},
data
()
{
var
checkPhone
=
(
rule
,
value
,
callback
)
=>
{
var
reg
=
/^1
[
345789
]\d{9}
$/
if
(
!
reg
.
test
(
value
))
{
callback
(
new
Error
(
'请输入11位手机号!'
))
}
else
{
callback
()
}
}
return
{
ruleForm
:
{
name
:
''
,
phone
:
''
,
channel
:
19960
,
project_id
:
1021
},
isLoading
:
false
,
rules
:
{
name
:
[{
required
:
true
,
message
:
'请输入姓名'
,
trigger
:
'blur'
}],
phone
:
[{
required
:
true
,
validator
:
checkPhone
,
trigger
:
'blur'
}]
}
}
},
methods
:
{
submit
()
{
this
.
$refs
.
ruleForm
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
isLoading
=
true
cAction
.
Infos
.
postInfo
(
this
.
ruleForm
)
.
then
(()
=>
{
this
.
$alert
(
'提交成功'
,
'信息'
,
{
confirmButtonText
:
'确定'
,
type
:
'success'
})
this
.
isLoading
=
false
})
.
catch
(
e
=>
{
this
.
isLoading
=
false
console
.
log
(
e
)
})
}
else
{
this
.
isLoading
=
false
return
false
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.homepage_message
{
width
:
100%
;
position
:
relative
;
background-repeat
:
no-repeat
;
background-size
:
cover
;
display
:
flex
;
justify-content
:
center
;
.homepage_message-main
{
width
:
80%
;
margin
:
0
auto
;
h3
{
margin-top
:
80px
;
text-align
:
center
;
color
:
rgba
(
255
,
255
,
255
,
1
);
font-size
:
40px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
span
{
display
:
inline-block
;
position
:
relative
;
&
:
:
before
{
content
:
''
;
position
:
absolute
;
bottom
:
-4px
;
height
:
3px
;
background
:
#ffffff
;
width
:
100%
;
}
}
}
h5
{
padding-top
:
24px
;
font-size
:
18px
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-weight
:
600
;
opacity
:
0
.6
;
color
:
rgba
(
255
,
255
,
255
,
1
);
text-align
:
center
;
}
.homepage_message_body
{
padding
:
63px
0px
0px
0px
;
display
:
flex
;
width
:
100%
;
.body_img
{
flex
:
1
;
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
;
}
}
}
}
}
}
</
style
>
src/pages/major-set/index.vue
浏览文件 @
67ed9c33
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论