|
...
|
...
|
@@ -10,7 +10,6 @@ Page({ |
|
|
|
})
|
|
|
|
this.remark=opt.remark;
|
|
|
|
this.getlabellist();
|
|
|
|
this.blurcount=0;
|
|
|
|
},
|
|
|
|
inputremark(e){
|
|
|
|
this.remark=util.trim(e.detail.value)
|
|
...
|
...
|
@@ -19,7 +18,6 @@ Page({ |
|
|
|
selectlabel(e){
|
|
|
|
let name=e.currentTarget.dataset.name;
|
|
|
|
if(this.remark!=''){
|
|
|
|
this.blurcount++;
|
|
|
|
let str=this.remark+','+name
|
|
|
|
if(str.length>25){
|
|
|
|
console.log('rrrrrr')
|
|
...
|
...
|
@@ -30,20 +28,19 @@ Page({ |
|
|
|
duration:1500
|
|
|
|
})
|
|
|
|
}
|
|
|
|
this.setData({
|
|
|
|
remark:this.remark=='' ? name : this.remark+','+name
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
this.setData({
|
|
|
|
remark:this.remark=='' ? name : this.remark+','+name
|
|
|
|
})
|
|
|
|
this.remark=this.remark=='' ? name : this.remark+','+name
|
|
|
|
console.log(this.remark,this.remark.length)
|
|
|
|
},
|
|
|
|
inputblur(e){
|
|
|
|
console.log(e)
|
|
|
|
if(this.blurcount==0){
|
|
|
|
this.setData({
|
|
|
|
remark:this.remark
|
|
|
|
})
|
|
|
|
}
|
|
|
|
this.setData({
|
|
|
|
remark:this.remark
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getlabellist(){
|
|
|
|
App.Customer.GetUserRemarkes().then((json)=>{
|
...
|
...
|
|