Commit 347053b7 by 陈玉桐

fix

parent 3631f6b6
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div id="posterBom"> <div id="posterBom">
<div id="posterTime"> <div id="posterTime">
<div :style="{background: backgroundColor}"> <div :style="{background: backgroundColor}">
<input type="tel" @blur="inputBlur" v-model="currentDay" placeholder="请输入" maxlength="2"> <input type="tel" id="currentDayInput" @blur="inputBlur" v-model="currentDay" placeholder="请输入" maxlength="2">
<span>/{{days}}</span> <span>/{{days}}</span>
</div> </div>
<p :style="{color: backgroundColor}">“让护眼,像刷牙一样成为习惯”</p> <p :style="{color: backgroundColor}">“让护眼,像刷牙一样成为习惯”</p>
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div id="posterBomWrap" :style="{background: backgroundColor}"> <div id="posterBomWrap" :style="{background: backgroundColor}">
<div id="posterTime"> <div id="posterTime">
<div> <div>
<input type="tel" @blur="inputBlur" v-model="currentDay" placeholder="请输入" maxlength="2"> <input type="tel" id="currentDayInput" @blur="inputBlur" v-model="currentDay" placeholder="请输入" maxlength="2">
<span>/{{days}}</span> <span>/{{days}}</span>
</div> </div>
<p>“让护眼,像刷牙一样成为习惯”</p> <p>“让护眼,像刷牙一样成为习惯”</p>
...@@ -229,6 +229,29 @@ export default { ...@@ -229,6 +229,29 @@ export default {
jsApiList: ['chooseImage','uploadImage'] // 必填,需要使用的JS接口列表 jsApiList: ['chooseImage','uploadImage'] // 必填,需要使用的JS接口列表
}) })
wx.ready(function(){ 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 = '266px'
pic.style.height = '266px'
}
}) })
wx.error(function(res){}) wx.error(function(res){})
}) })
...@@ -255,6 +278,8 @@ export default { ...@@ -255,6 +278,8 @@ export default {
}, },
methods: { methods: {
create() { create() {
// 使input失去焦点
document.getElementById("currentDayInput").blur()
if(this.enrollStatus==1){//已报名 if(this.enrollStatus==1){//已报名
if(this.status==2){ if(this.status==2){
this.tipDialogText = '活动已结束' this.tipDialogText = '活动已结束'
......
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