Commit 20f3c71a24e24a0002b4d0ecef9ec13107a2d0bf

Authored by zhangyan
1 parent 7cee7d1b

input在ios端bug

... ... @@ -5,7 +5,6 @@ Page({
alllabel:[
],
focus:true
},
onLoad:function(){
this.getlabellist();
... ... @@ -30,7 +29,8 @@ Page({
}).then(res=>{
console.log(res)
this.setData({
alllabel:res.data
alllabel:res.data,
focus:true,
})
})
},
... ... @@ -64,13 +64,10 @@ Page({
console.log(res)
if(res.ret==200){
this.setData({
defineremark:'',
defineremark:null,
})
this.getlabellist();
}
this.setData({
focus:true
})
})
},
})
\ No newline at end of file
... ...
... ... @@ -11,7 +11,7 @@
</view>
</block>
</block>
<input class="black-font flex-cc font28r smooth label-input flex-cc" placeholder="添加备注" placeholder-class="smooth flex-cc" maxlength="10" style="width:{{defineremark.length>4 ? (defineremark.length-4)*28+160 : 160}}rpx;" value="{{defineremark}}" bindinput="inputremark" focus="{{focus}}" cursor-spacing="160" bindblur="addinputlabel" placeholder-style="color:#999;font-size:28rpx;"/>
<view style="min-width:176rpx;"><input class="black-font flex-cc font28r smooth label-input flex-cc" placeholder="添加备注" maxlength="10" style="width:{{defineremark && defineremark.length>4 ? (defineremark.length-4)*28+160 : 160}}rpx;" value="{{defineremark}}" bindinput="inputremark" focus="{{focus}}" cursor-spacing="160" bindblur="addinputlabel" placeholder-style="color:#999;font-size:28rpx;text-align:center;"/></view>
</view>
<view class="label-title black-font font30r smooth">所有备注</view>
<view class="label-list flex-rs">
... ...