|
...
|
...
|
@@ -10,6 +10,7 @@ Page({ |
|
|
|
})
|
|
|
|
this.remark=opt.remark;
|
|
|
|
this.getlabellist();
|
|
|
|
this.blurcount=0;
|
|
|
|
},
|
|
|
|
inputremark(e){
|
|
|
|
this.remark=util.trim(e.detail.value)
|
|
...
|
...
|
@@ -18,6 +19,7 @@ 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')
|
|
...
|
...
|
@@ -28,18 +30,20 @@ Page({ |
|
|
|
duration:1500
|
|
|
|
})
|
|
|
|
}
|
|
|
|
this.setData({
|
|
|
|
remark:this.remark=='' ? name : this.remark+','+name
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// this.setData({
|
|
|
|
// remark:this.data.remark=='' ? name : this.data.remark+','+name
|
|
|
|
// })
|
|
|
|
this.remark=this.remark=='' ? name : this.remark+','+name
|
|
|
|
console.log(this.remark,this.remark.length)
|
|
|
|
},
|
|
|
|
inputblur(e){
|
|
|
|
console.log(e)
|
|
|
|
this.setData({
|
|
|
|
remark:this.remark
|
|
|
|
})
|
|
|
|
if(this.blurcount==0){
|
|
|
|
this.setData({
|
|
|
|
remark:this.remark
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
getlabellist(){
|
|
|
|
App.Customer.GetUserRemarkes().then((json)=>{
|
...
|
...
|
|