|
|
|
@ -24,11 +24,14 @@ Component({ |
|
|
|
type:Number, |
|
|
|
value:1, |
|
|
|
observer(nv, ov, path) { |
|
|
|
if (nv) { |
|
|
|
if (nv) { |
|
|
|
let num = nv-this.data.selectLinkman.length |
|
|
|
this.setData({ |
|
|
|
showNum:num |
|
|
|
}) |
|
|
|
if (nv<ov) { |
|
|
|
this.delMan() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -52,6 +55,7 @@ Component({ |
|
|
|
editId:null, |
|
|
|
isGroup:null, |
|
|
|
showManList:[], |
|
|
|
stagingManList:[], // 暂存用户信息
|
|
|
|
showNum:0, |
|
|
|
showAdd:false, |
|
|
|
formData:{}, |
|
|
|
@ -61,9 +65,23 @@ Component({ |
|
|
|
personId:null, |
|
|
|
r:[], |
|
|
|
phone:null,//非实名时需要传的电话
|
|
|
|
manList:[], |
|
|
|
seldManList:[], |
|
|
|
keyboardHeight: 0 |
|
|
|
}, |
|
|
|
lifetimes: { |
|
|
|
attached: function() { |
|
|
|
wx.onKeyboardHeightChange(res => { |
|
|
|
if (res.height > 0) { |
|
|
|
this.setData({ |
|
|
|
keyboardHeight: res.height |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.setData({ |
|
|
|
keyboardHeight: 0 |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
// 在组件实例进入页面节点树时执行
|
|
|
|
console.log(this.properties.productNum); |
|
|
|
console.log(this.properties.is_real_name); |
|
|
|
@ -84,27 +102,28 @@ Component({ |
|
|
|
}) |
|
|
|
} |
|
|
|
// 获取默认联系人
|
|
|
|
commonApi.user_post("token/check").then(res=>{ |
|
|
|
this.setData({ |
|
|
|
isGroup:app.globalData.product.isGroup |
|
|
|
}) |
|
|
|
if(res.code==1){ |
|
|
|
userApi.user_post("user/getDefaultContact",{ |
|
|
|
contactType:"CONTACT" |
|
|
|
}).then(res=>{ |
|
|
|
if(res.data){ |
|
|
|
let length =[res.data].length |
|
|
|
this.setData({ |
|
|
|
selectLinkman:[res.data], |
|
|
|
showNum:this.data.showNum-length, |
|
|
|
showManList:[res.data] |
|
|
|
}) |
|
|
|
this.triggerEvent("setLinkman",[res.data]) |
|
|
|
} |
|
|
|
this.getLinkmanList() |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
// commonApi.user_post("token/check").then(res=>{
|
|
|
|
// this.setData({
|
|
|
|
// isGroup:app.globalData.product.isGroup
|
|
|
|
// })
|
|
|
|
// if(res.code==1){
|
|
|
|
// userApi.user_post("user/getDefaultContact",{
|
|
|
|
// contactType:"CONTACT"
|
|
|
|
// }).then(res=>{
|
|
|
|
// if(res.data){
|
|
|
|
// let length =[res.data].length
|
|
|
|
// this.setData({
|
|
|
|
// selectLinkman:[res.data],
|
|
|
|
// showNum:this.data.showNum-length,
|
|
|
|
// showManList:[res.data]
|
|
|
|
// })
|
|
|
|
// this.triggerEvent("setLinkman",[res.data])
|
|
|
|
// }
|
|
|
|
// this.getLinkmanList()
|
|
|
|
// })
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
this.getLinkmanList() |
|
|
|
// 获取证件列表
|
|
|
|
userApi.user_post("user/getCardTypeList", {}).then(r => { |
|
|
|
console.log(r) |
|
|
|
@ -205,8 +224,20 @@ Component({ |
|
|
|
this.showAddMask() |
|
|
|
}, |
|
|
|
showLinkman:function(){ |
|
|
|
// console.log(this.data.linkmanList);
|
|
|
|
let linkmanList = this.data.linkmanList,seldManList = this.data.seldManList |
|
|
|
linkmanList.map(linkman=>{ |
|
|
|
linkman.selected = 0; |
|
|
|
seldManList.map(item=>{ |
|
|
|
if(item.id==linkman.id){ |
|
|
|
linkman.selected = 1; |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.setData({ |
|
|
|
showMask:!this.data.showMask |
|
|
|
showMask:!this.data.showMask, |
|
|
|
linkmanList, |
|
|
|
seldManList |
|
|
|
}) |
|
|
|
}, |
|
|
|
showAddMask:function(){ |
|
|
|
@ -215,6 +246,11 @@ Component({ |
|
|
|
showMask:!this.data.showMask |
|
|
|
}) |
|
|
|
}, |
|
|
|
addMask:function(){ |
|
|
|
this.setData({ |
|
|
|
showAdd:!this.data.showAdd |
|
|
|
}) |
|
|
|
}, |
|
|
|
cancel:function(){ |
|
|
|
let selectLinkman = this.data.selectLinkman,linkmanList = this.data.linkmanList; |
|
|
|
linkmanList.map(linkman=>{ |
|
|
|
@ -292,7 +328,9 @@ Component({ |
|
|
|
} |
|
|
|
}) |
|
|
|
this.setData({ |
|
|
|
showAdd:!this.data.showAdd |
|
|
|
showAdd:!this.data.showAdd, |
|
|
|
formData:{}, |
|
|
|
editId:null |
|
|
|
}) |
|
|
|
this.getLinkmanList() |
|
|
|
} |
|
|
|
@ -301,6 +339,7 @@ Component({ |
|
|
|
//取消添加出行人
|
|
|
|
del:function(){ |
|
|
|
this.setData({ |
|
|
|
editId:null, |
|
|
|
formData:{}, |
|
|
|
showAdd:!this.data.showAdd |
|
|
|
}) |
|
|
|
@ -343,11 +382,28 @@ Component({ |
|
|
|
}, |
|
|
|
confirm:function(){ |
|
|
|
let linkmanList = this.data.linkmanList,selectLinkman = []; |
|
|
|
linkmanList.map(linkman=>{ |
|
|
|
if(linkman.selected==1){ |
|
|
|
selectLinkman.push(linkman); |
|
|
|
console.log(linkmanList); |
|
|
|
// 2. 将选中的出行人展示到页面中
|
|
|
|
let newManlist = [] |
|
|
|
let manList = this.data.manList |
|
|
|
let newSeldManList = [] |
|
|
|
linkmanList.map((item,index) => { |
|
|
|
if (item.selected === 1) { |
|
|
|
newManlist.push(item) |
|
|
|
newSeldManList.push(item) |
|
|
|
} |
|
|
|
}) |
|
|
|
manList.map(item => { |
|
|
|
if (!newManlist.some(s => s.id === item.id)) { |
|
|
|
if (newManlist.length < 3) { |
|
|
|
newManlist.push({...item, selected: 0}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
console.log('-----',newManlist); |
|
|
|
|
|
|
|
|
|
|
|
// 需要 改成 根据父组件的购买数量
|
|
|
|
let showNum = this.properties.productNum |
|
|
|
// let showNum = this.data.showNum
|
|
|
|
@ -361,12 +417,14 @@ Component({ |
|
|
|
// })
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
this.triggerEvent("setLinkman",newSeldManList) |
|
|
|
this.setData({ |
|
|
|
selectLinkman:selectLinkman, |
|
|
|
manList:newManlist, |
|
|
|
seldManList:newSeldManList, |
|
|
|
showManList:showManList, |
|
|
|
showNum:showNum |
|
|
|
}) |
|
|
|
this.triggerEvent("setLinkman",selectLinkman) |
|
|
|
this.showLinkman() |
|
|
|
}, |
|
|
|
getLinkmanList:function(){ |
|
|
|
@ -377,68 +435,225 @@ Component({ |
|
|
|
limit:1000 |
|
|
|
}).then(res=>{ |
|
|
|
let list = res.data; |
|
|
|
list.map(item=>{ |
|
|
|
this.data.selectLinkman.map(linkman=>{ |
|
|
|
if(linkman.id==item.id){ |
|
|
|
item.selected = 1; |
|
|
|
} |
|
|
|
}) |
|
|
|
// list.map(item=>{
|
|
|
|
// this.data.selectLinkman.map(linkman=>{
|
|
|
|
// if(linkman.id==item.id){
|
|
|
|
// item.selected = 1;
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// 这里不和默认出行人匹配,直接截取前三个
|
|
|
|
list.map((item,index)=> { |
|
|
|
if (index== 0) { |
|
|
|
item.selected = 1 |
|
|
|
}else { |
|
|
|
item.selected = 0 |
|
|
|
} |
|
|
|
}) |
|
|
|
let manList = list.slice(0,3) |
|
|
|
let seldManList = [] |
|
|
|
|
|
|
|
list.map((item,index)=> { |
|
|
|
if (item.selected == 1) { |
|
|
|
seldManList.push(item) |
|
|
|
} |
|
|
|
}) |
|
|
|
this.triggerEvent("setLinkman",seldManList) |
|
|
|
this.setData({ |
|
|
|
linkmanList:list |
|
|
|
linkmanList:list, |
|
|
|
manList, |
|
|
|
selectLinkman:list, |
|
|
|
seldManList:seldManList |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
setDefault:function(e){ |
|
|
|
let item = e.currentTarget.dataset.item,linkmanList = this.data.linkmanList; |
|
|
|
userApi.user_post("user/setDefaultContact",{ |
|
|
|
contactId:item.id |
|
|
|
}).then(res=>{ |
|
|
|
if(res.code==1){ |
|
|
|
wx.showToast({ |
|
|
|
title: '设置成功', |
|
|
|
icon: 'success' |
|
|
|
}) |
|
|
|
linkmanList.map(linkman=>{ |
|
|
|
if(linkman.id==item.id){ |
|
|
|
linkman.is_default=1; |
|
|
|
} |
|
|
|
else { |
|
|
|
linkman.is_default = 0; |
|
|
|
} |
|
|
|
}) |
|
|
|
this.setData({ |
|
|
|
linkmanList:linkmanList |
|
|
|
}) |
|
|
|
} |
|
|
|
delMan() { |
|
|
|
let seldManList = this.data.seldManList,selectLinkman = this.data.selectLinkman,manList=this.data.manList,linkmanList=this.data.linkmanList |
|
|
|
let newManlist = JSON.parse(JSON.stringify(manList)) |
|
|
|
let newSeldManList =JSON.parse(JSON.stringify(seldManList)) |
|
|
|
// 3.减少时 选择的用户信息跟着修改
|
|
|
|
if (seldManList.length === this.properties.productNum +1) { |
|
|
|
newSeldManList.pop() |
|
|
|
newManlist.forEach(f => { |
|
|
|
if(newSeldManList.some(s => s.id === f.id)) { |
|
|
|
f.selected = 1 |
|
|
|
} else { |
|
|
|
f.selected = 0 |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
this.triggerEvent("setLinkman",newSeldManList) |
|
|
|
this.setData({ |
|
|
|
// seldManList,
|
|
|
|
selectLinkman, |
|
|
|
manList: newManlist, |
|
|
|
seldManList: newSeldManList |
|
|
|
}) |
|
|
|
}, |
|
|
|
// setDefault:function(e){
|
|
|
|
// let item = e.currentTarget.dataset.item,linkmanList = this.data.linkmanList;
|
|
|
|
// userApi.user_post("user/setDefaultContact",{
|
|
|
|
// contactId:item.id
|
|
|
|
// }).then(res=>{
|
|
|
|
// if(res.code==1){
|
|
|
|
// wx.showToast({
|
|
|
|
// title: '设置成功',
|
|
|
|
// icon: 'success'
|
|
|
|
// })
|
|
|
|
// linkmanList.map(linkman=>{
|
|
|
|
// if(linkman.id==item.id){
|
|
|
|
// linkman.is_default=1;
|
|
|
|
// }
|
|
|
|
// else {
|
|
|
|
// linkman.is_default = 0;
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
// this.setData({
|
|
|
|
// linkmanList:linkmanList
|
|
|
|
// })
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
// },
|
|
|
|
delLinkman:function(e){ |
|
|
|
// if (seldManList.length === 1) return
|
|
|
|
wx.showLoading({ |
|
|
|
title: '加载中', |
|
|
|
}) |
|
|
|
let index = e.currentTarget.dataset.index,selectLinkman = this.data.selectLinkman,showManList = this.data.showManList; |
|
|
|
let index = e.currentTarget.dataset.index,selectLinkman = this.data.selectLinkman,showManList = this.data.showManList,linkmanList=JSON.parse(JSON.stringify(this.data.linkmanList)),manList = this.data.manList,seldManList= this.data.seldManList; |
|
|
|
selectLinkman.splice(index,1); |
|
|
|
let item = e.currentTarget.dataset.item |
|
|
|
seldManList = seldManList.filter(f => f.id !== item.id) |
|
|
|
manList.forEach(f => { |
|
|
|
if(f.id === item.id) { |
|
|
|
f.selected = 0 |
|
|
|
} |
|
|
|
}) |
|
|
|
// debugger
|
|
|
|
linkmanList.forEach(linkman=> { |
|
|
|
if (linkman.id === item.id) { |
|
|
|
linkman.selected =0 |
|
|
|
} |
|
|
|
}) |
|
|
|
showManList.splice(index,1); |
|
|
|
this.triggerEvent("setLinkman",selectLinkman) |
|
|
|
this.setData({ |
|
|
|
selectLinkman:selectLinkman, |
|
|
|
showManList:showManList, |
|
|
|
showNum:selectLinkman.length>0?this.data.showNum+1:1 |
|
|
|
showNum:selectLinkman.length>0?this.data.showNum+1:1, |
|
|
|
linkmanList, |
|
|
|
seldManList, |
|
|
|
manList |
|
|
|
}) |
|
|
|
wx.hideLoading() |
|
|
|
}, |
|
|
|
select:function(e) { |
|
|
|
console.log(e); |
|
|
|
let item = e.target.dataset.item |
|
|
|
if (this.properties.is_real_name == '1') { // 一证一票
|
|
|
|
this.selectIt(item) |
|
|
|
} else { |
|
|
|
this.selectOne(item) |
|
|
|
select:function(e) { |
|
|
|
// debugger
|
|
|
|
let item = e.target.dataset.item,seldManList = [],manList = this.data.manList,linkmanList = this.data.linkmanList,list = [] |
|
|
|
if (this.properties.productNum > linkmanList.filter(f=> f.selected === 1).length ) { |
|
|
|
// 票数大于信息数 继续勾选
|
|
|
|
if (this.properties.is_real_name == '1' && this.properties.productNum != 1) { // 一证一票
|
|
|
|
// this.selectIt(item)
|
|
|
|
// 一证一票 且 票数大于1
|
|
|
|
// 1. 当选择的出行人小于购票数量时,才能继续添加出行人
|
|
|
|
if (linkmanList.filter(f => f.selected === 1).length < this.properties.productNum || item.selected === 1) { |
|
|
|
linkmanList.forEach(linkman=> { |
|
|
|
if (linkman.id == item.id) { |
|
|
|
linkman.selected = linkman.selected === 1 ? 0 : 1 |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} else { |
|
|
|
// let flag = manList.some(obj => obj.id === item.id)
|
|
|
|
// if (flag) {
|
|
|
|
manList.map(man=> { |
|
|
|
if (man.id == item.id) { |
|
|
|
man.selected =1 |
|
|
|
}else { |
|
|
|
man.selected =0 |
|
|
|
} |
|
|
|
}) |
|
|
|
linkmanList.map(linkman=> { |
|
|
|
if (linkman.id == item.id) { |
|
|
|
linkman.selected =1 |
|
|
|
}else { |
|
|
|
linkman.selected =0 |
|
|
|
} |
|
|
|
}) |
|
|
|
// }
|
|
|
|
} |
|
|
|
}else if( (this.properties.productNum == 1 && this.properties.productNum == linkmanList.filter(f=> f.selected === 1).length)) { |
|
|
|
// debugger
|
|
|
|
// 票数为1,切换选择:如果在manList内,就直接切换,不在则将出行人放入manList内
|
|
|
|
let flag = manList.some(obj => obj.id === item.id) |
|
|
|
if (flag) { |
|
|
|
manList.map(man=> { |
|
|
|
if (man.id == item.id) { |
|
|
|
man.selected =1 |
|
|
|
}else { |
|
|
|
man.selected =0 |
|
|
|
} |
|
|
|
}) |
|
|
|
linkmanList.map(linkman=> { |
|
|
|
if (linkman.id == item.id) { |
|
|
|
linkman.selected =1 |
|
|
|
}else { |
|
|
|
linkman.selected =0 |
|
|
|
} |
|
|
|
}) |
|
|
|
console.log(manList,linkmanList); |
|
|
|
}else { |
|
|
|
item.selected = 1 |
|
|
|
manList.unshift(item) |
|
|
|
manList = manList.slice(0,3) |
|
|
|
manList.map(man=> { |
|
|
|
if (man.id == item.id) { |
|
|
|
man.selected =1 |
|
|
|
}else { |
|
|
|
man.selected =0 |
|
|
|
} |
|
|
|
}) |
|
|
|
linkmanList.map(linkman=> { |
|
|
|
if (linkman.id == item.id) { |
|
|
|
linkman.selected =1 |
|
|
|
}else { |
|
|
|
linkman.selected =0 |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}else { |
|
|
|
// debugger
|
|
|
|
if (item.selected === 1) { |
|
|
|
linkmanList.forEach(f => { |
|
|
|
if(f.id === item.id) { |
|
|
|
f.selected = 0 |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
wx.showToast({ |
|
|
|
title: '您只需选择'+this.properties.productNum+'位游客', |
|
|
|
icon: "none" |
|
|
|
}); |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
// this.triggerEvent("setLinkman",seldManList)
|
|
|
|
this.setData({ |
|
|
|
// manList,
|
|
|
|
linkmanList, |
|
|
|
// seldManList,
|
|
|
|
selectLinkman:manList |
|
|
|
}) |
|
|
|
// if (this.properties.is_real_name == '1') { // 一证一票
|
|
|
|
// this.selectIt(item)
|
|
|
|
// } else {
|
|
|
|
// this.selectOne(item)
|
|
|
|
// }
|
|
|
|
}, |
|
|
|
// 一证一票不让他多选
|
|
|
|
selectOne:function(e) { |
|
|
|
// debugger
|
|
|
|
console.log(e); |
|
|
|
let item = e,linkmanList = this.data.linkmanList,num = 0 |
|
|
|
linkmanList.map(linkman=>{ |
|
|
|
@ -462,12 +677,12 @@ Component({ |
|
|
|
}, |
|
|
|
// 可多选
|
|
|
|
selectIt:function(e){ |
|
|
|
|
|
|
|
console.log(e,app.globalData.product) |
|
|
|
console.log(e); |
|
|
|
// let item = e.currentTarget.dataset.item,linkmanList = this.data.linkmanList,num = 0,traveller_limit_num = this.properties.maxNum!=-1?this.properties.maxNum:(app.globalData.product.sku.sku_model && app.globalData.product.sku.sku_model.limit_type!=0?app.globalData.product.sku.sku_model.traveller_limit_num:-1);
|
|
|
|
let item = e,linkmanList = this.data.linkmanList,num = 0,traveller_limit_num = this.properties.maxNum!=-1?this.properties.maxNum:(app.globalData.product.sku.sku_model && app.globalData.product.sku.sku_model.limit_type!=0?app.globalData.product.sku.sku_model.traveller_limit_num:-1); |
|
|
|
// 先计算出全部选中的出行人
|
|
|
|
console.log(111) |
|
|
|
linkmanList.map(linkman=>{ |
|
|
|
if(linkman.selected==1){ |
|
|
|
num++; |
|
|
|
@ -508,8 +723,108 @@ Component({ |
|
|
|
linkman.selected = linkman.selected==1?0:1; |
|
|
|
} |
|
|
|
}) |
|
|
|
// let manList = linkmanList.slice(0,3)
|
|
|
|
this.setData({ |
|
|
|
linkmanList:linkmanList |
|
|
|
linkmanList:linkmanList, |
|
|
|
// manList,
|
|
|
|
}) |
|
|
|
}, |
|
|
|
// 勾选展示
|
|
|
|
selcetFrame(e) { |
|
|
|
let item = e.currentTarget.dataset.item |
|
|
|
let index = e.currentTarget.dataset.index |
|
|
|
let manList = this.data.manList,seldManList = this.data.seldManList,linkmanList = this.data.linkmanList |
|
|
|
if (this.properties.productNum !== 1 && this.properties.productNum === seldManList) { |
|
|
|
wx.showToast({ |
|
|
|
title: '您只需选择'+this.properties.productNum+'位游客', |
|
|
|
icon: "none" |
|
|
|
}); |
|
|
|
return // 出行人和购票数量相同的情况就return
|
|
|
|
} |
|
|
|
if (this.properties.is_real_name == '1') { // 一证一票
|
|
|
|
// this.selectIt(item)
|
|
|
|
let count = 0 |
|
|
|
manList.forEach(people=> { |
|
|
|
if (people.selected == 1) { |
|
|
|
count++ |
|
|
|
} |
|
|
|
}) |
|
|
|
if (count< this.properties.productNum) { // 选中的出行人数量小于票数
|
|
|
|
manList.map(man=>{ |
|
|
|
if(item.id==man.id){ |
|
|
|
man.selected = man.selected==1?0:1; |
|
|
|
} |
|
|
|
}) |
|
|
|
if(seldManList.length < this.properties.productNum && item.selected === 0) { |
|
|
|
seldManList.push(item) |
|
|
|
} else { |
|
|
|
seldManList = seldManList.filter(f => f.id !== item.id) |
|
|
|
} |
|
|
|
|
|
|
|
}else { // 否则换掉
|
|
|
|
if ( this.properties.productNum == 1) { |
|
|
|
if (item.selected == 1) { |
|
|
|
manList.forEach(man=>{ |
|
|
|
if (man.id === item.id) { |
|
|
|
man.selected = 0 |
|
|
|
} |
|
|
|
}) |
|
|
|
seldManList = [] |
|
|
|
} else { |
|
|
|
manList.forEach(man=>{ |
|
|
|
if (man.id === item.id) { |
|
|
|
man.selected = 1 |
|
|
|
}else { |
|
|
|
man.selected = 0 |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
seldManList = [item] |
|
|
|
|
|
|
|
} |
|
|
|
// manList.map((item)=> {
|
|
|
|
// if (item.selected == 1) {
|
|
|
|
// seldManList.push(item)
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
}else { |
|
|
|
// return
|
|
|
|
if(item.selected === 1) { |
|
|
|
manList.forEach(f => { |
|
|
|
if(f.id === item.id) { |
|
|
|
f.selected = 0 |
|
|
|
} |
|
|
|
}) |
|
|
|
seldManList = seldManList.filter(f => f.id !== item.id) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}else { |
|
|
|
if (item.selected == 1) { |
|
|
|
manList.forEach(man=>{ |
|
|
|
if (man.id === item.id) { |
|
|
|
man.selected = 0 |
|
|
|
} |
|
|
|
}) |
|
|
|
seldManList = [] |
|
|
|
} else { |
|
|
|
manList.forEach(man=>{ |
|
|
|
if (man.id === item.id) { |
|
|
|
man.selected = 1 |
|
|
|
}else { |
|
|
|
man.selected = 0 |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
seldManList = [item] |
|
|
|
} |
|
|
|
} |
|
|
|
this.triggerEvent("setLinkman",seldManList) |
|
|
|
this.setData({ |
|
|
|
manList, |
|
|
|
seldManList, |
|
|
|
linkmanList |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|