提交 d2f1d68e authored 作者: matian's avatar matian

代码提交

上级 63fa4b73
......@@ -28,11 +28,15 @@ export default {
methods: {
open() {
this.isShow = true
document.getElementsByClassName('video')[0].src =
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/marywood/marywood.mp4'
document.getElementsByTagName('body')[0].style.height = '100%'
document.getElementsByTagName('body')[0].style.overflow = 'hidden'
},
close() {
this.isShow = false
document.getElementsByClassName('video')[0].src = ''
document.getElementsByTagName('body')[0].style.height = ''
document.getElementsByTagName('body')[0].style.overflow = ''
}
......
......@@ -185,7 +185,9 @@ export default {
code: this.sendCode
}
return new Promise((resolve, reject) => {
checkCode(checkCodeParam).then(res => {
checkCode(checkCodeParam)
.then(res => {
console.log(res, 'code')
if (res && res.code === 0) {
res.type = 'checkcode'
resolve({
......@@ -200,6 +202,13 @@ export default {
})
}
})
.catch(err => {
reject({
type: 'checked',
state: 'fail',
msg: err.msg || '验证码检测失败'
})
})
})
},
btnDisabledTimer() {
......
......@@ -33,7 +33,9 @@
<div class="content">
<img src="https://webapp-pub.ezijing.com/project/marywood/school17.png" />
</div>
<div style="width:1200px;margin:auto;text-align:center;display:flex;justify-content:flex-start;margin-top:64px;">
<div
style="margin:auto;text-align:center;width:1200px;display:flex;justify-content:flex-start;margin-top:64px;margin-left:30px"
>
<div style="width: 6px;height: 34px;background: #AA1941;margin-right:9px;margin-top:6px"></div>
<h1 style="color: #333333; font-size: 34px;font-weight: bold;">校园风光</h1>
</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论