Showing
1 changed file
with
7 additions
and
10 deletions
| @@ -10,7 +10,6 @@ Page({ | @@ -10,7 +10,6 @@ Page({ | ||
| 10 | }) | 10 | }) |
| 11 | this.remark=opt.remark; | 11 | this.remark=opt.remark; |
| 12 | this.getlabellist(); | 12 | this.getlabellist(); |
| 13 | - this.blurcount=0; | ||
| 14 | }, | 13 | }, |
| 15 | inputremark(e){ | 14 | inputremark(e){ |
| 16 | this.remark=util.trim(e.detail.value) | 15 | this.remark=util.trim(e.detail.value) |
| @@ -19,7 +18,6 @@ Page({ | @@ -19,7 +18,6 @@ Page({ | ||
| 19 | selectlabel(e){ | 18 | selectlabel(e){ |
| 20 | let name=e.currentTarget.dataset.name; | 19 | let name=e.currentTarget.dataset.name; |
| 21 | if(this.remark!=''){ | 20 | if(this.remark!=''){ |
| 22 | - this.blurcount++; | ||
| 23 | let str=this.remark+','+name | 21 | let str=this.remark+','+name |
| 24 | if(str.length>25){ | 22 | if(str.length>25){ |
| 25 | console.log('rrrrrr') | 23 | console.log('rrrrrr') |
| @@ -30,20 +28,19 @@ Page({ | @@ -30,20 +28,19 @@ Page({ | ||
| 30 | duration:1500 | 28 | duration:1500 |
| 31 | }) | 29 | }) |
| 32 | } | 30 | } |
| 33 | - this.setData({ | ||
| 34 | - remark:this.remark=='' ? name : this.remark+','+name | ||
| 35 | - }) | 31 | + |
| 36 | } | 32 | } |
| 33 | + this.setData({ | ||
| 34 | + remark:this.remark=='' ? name : this.remark+','+name | ||
| 35 | + }) | ||
| 37 | this.remark=this.remark=='' ? name : this.remark+','+name | 36 | this.remark=this.remark=='' ? name : this.remark+','+name |
| 38 | console.log(this.remark,this.remark.length) | 37 | console.log(this.remark,this.remark.length) |
| 39 | }, | 38 | }, |
| 40 | inputblur(e){ | 39 | inputblur(e){ |
| 41 | console.log(e) | 40 | console.log(e) |
| 42 | - if(this.blurcount==0){ | ||
| 43 | - this.setData({ | ||
| 44 | - remark:this.remark | ||
| 45 | - }) | ||
| 46 | - } | 41 | + this.setData({ |
| 42 | + remark:this.remark | ||
| 43 | + }) | ||
| 47 | }, | 44 | }, |
| 48 | getlabellist(){ | 45 | getlabellist(){ |
| 49 | App.Customer.GetUserRemarkes().then((json)=>{ | 46 | App.Customer.GetUserRemarkes().then((json)=>{ |
-
Please register or login to post a comment