Commit a55bb750 by 陈玉桐

fix

parent 3cfec564
......@@ -248,8 +248,8 @@ export default {
// pic.style.height = '266px'
// }
else if(deviceW >= 393 && deviceH >= 667){
pic.style.width = '266px'
pic.style.height = '266px'
pic.style.width = '230px'
pic.style.height = '230px'
}
})
......@@ -279,6 +279,7 @@ export default {
methods: {
create() {
// 使input失去焦点
this.loadingShow = true
document.getElementById("currentDayInput").blur()
if(this.enrollStatus==1){//已报名
if(this.status==2){
......@@ -301,16 +302,19 @@ export default {
this.tipDialogShow = true
return
}
// document.documentElement.scrollTop = document.body.scrollTop = 0
// html2canvas(document.getElementById('posterOut'), {
// useCORS: true,
// backgroundColor:null,
// allowTaint: false
// }).then(canvas => {
// this.posterUrl = canvas.toDataURL('image/png')
// this.showPoster = true
// this.createDialogShow = true
// })
document.documentElement.scrollTop = document.body.scrollTop = 0
html2canvas(document.getElementById('posterOut'), {
useCORS: true,
backgroundColor:null,
allowTaint: false
}).then(canvas => {
this.posterUrl = canvas.toDataURL('image/png')
setTimeout(function(){
this.loadingShow = false
this.showPoster = true
this.createDialogShow = true
},300)
})
}else{
this.applyDialogShow = true
}
......
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