Commit b690f996a41c86e0423da72ec1332e8f7abef13e

Authored by liuxuqinfhp1220
1 parent fa510e23

no message

Showing 1 changed file with 10 additions and 6 deletions
... ... @@ -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)=>{
... ...