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

代码提交

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