Commit 0651c760 by 陈玉桐

fix

parent 7fadae01
......@@ -229,28 +229,6 @@ export default {
jsApiList: ['chooseImage','uploadImage','hideMenuItems'] // 必填,需要使用的JS接口列表
})
wx.ready(function(){
var deviceW = document.documentElement.clientWidth;
var deviceH = document.documentElement.clientHeight;
// alert(deviceW+','+deviceH)
let pic = document.getElementById("posterOutAddpicBox")
if(deviceW == 375 && deviceH == 603){//iPhone 678
// pic.style.top = '80px'
pic.style.width = '200px'
pic.style.height = '200px'
}else if(deviceW == 375 && deviceH == 724){//iPhoneX
// pic.style.top = '80px'
pic.style.width = '225px'
pic.style.height = '225px'
}
// else if(deviceW == 414 && deviceH == 808){//iPhoneXR iPhoneXS Max
// pic.style.width = '266px'
// pic.style.height = '266px'
// }
else if(deviceW >= 393 && deviceH >= 667){
pic.style.width = '230px'
pic.style.height = '230px'
}
wx.hideMenuItems({
......@@ -279,6 +257,31 @@ export default {
this.days = response.data.days
this.enrollStatus = response.data.enrollStatus
this.status = response.data.status
if(this.days!=60){
var deviceW = document.documentElement.clientWidth;
var deviceH = document.documentElement.clientHeight;
// alert(deviceW+','+deviceH)
let pic = document.getElementById("posterOutAddpicBox")
if(deviceW == 375 && deviceH == 603){//iPhone 678
// pic.style.top = '80px'
pic.style.width = '200px'
pic.style.height = '200px'
}else if(deviceW == 375 && deviceH == 724){//iPhoneX
// pic.style.top = '80px'
pic.style.width = '225px'
pic.style.height = '225px'
}
// else if(deviceW == 414 && deviceH == 808){//iPhoneXR iPhoneXS Max
// pic.style.width = '266px'
// pic.style.height = '266px'
// }
else if(deviceW >= 393 && deviceH >= 667){
pic.style.width = '230px'
pic.style.height = '230px'
}
}
})
},
methods: {
......@@ -829,7 +832,7 @@ export default {
position: absolute;
top: 0;
left: 0;
z-index: 1;
z-index: 2;
img{
width: 100%;
height: 100%;
......
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