Showing
2 changed files
with
4 additions
and
7 deletions
| @@ -5,7 +5,6 @@ Page({ | @@ -5,7 +5,6 @@ Page({ | ||
| 5 | alllabel:[ | 5 | alllabel:[ |
| 6 | 6 | ||
| 7 | ], | 7 | ], |
| 8 | - focus:true | ||
| 9 | }, | 8 | }, |
| 10 | onLoad:function(){ | 9 | onLoad:function(){ |
| 11 | this.getlabellist(); | 10 | this.getlabellist(); |
| @@ -30,7 +29,8 @@ Page({ | @@ -30,7 +29,8 @@ Page({ | ||
| 30 | }).then(res=>{ | 29 | }).then(res=>{ |
| 31 | console.log(res) | 30 | console.log(res) |
| 32 | this.setData({ | 31 | this.setData({ |
| 33 | - alllabel:res.data | 32 | + alllabel:res.data, |
| 33 | + focus:true, | ||
| 34 | }) | 34 | }) |
| 35 | }) | 35 | }) |
| 36 | }, | 36 | }, |
| @@ -64,13 +64,10 @@ Page({ | @@ -64,13 +64,10 @@ Page({ | ||
| 64 | console.log(res) | 64 | console.log(res) |
| 65 | if(res.ret==200){ | 65 | if(res.ret==200){ |
| 66 | this.setData({ | 66 | this.setData({ |
| 67 | - defineremark:'', | 67 | + defineremark:null, |
| 68 | }) | 68 | }) |
| 69 | this.getlabellist(); | 69 | this.getlabellist(); |
| 70 | } | 70 | } |
| 71 | - this.setData({ | ||
| 72 | - focus:true | ||
| 73 | - }) | ||
| 74 | }) | 71 | }) |
| 75 | }, | 72 | }, |
| 76 | }) | 73 | }) |
| @@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
| 11 | </view> | 11 | </view> |
| 12 | </block> | 12 | </block> |
| 13 | </block> | 13 | </block> |
| 14 | - <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;"/> | 14 | + <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> |
| 15 | </view> | 15 | </view> |
| 16 | <view class="label-title black-font font30r smooth">所有备注</view> | 16 | <view class="label-title black-font font30r smooth">所有备注</view> |
| 17 | <view class="label-list flex-rs"> | 17 | <view class="label-list flex-rs"> |
-
Please register or login to post a comment