|
...
|
...
|
@@ -8,17 +8,17 @@ Component({ |
|
|
|
}
|
|
|
|
},
|
|
|
|
data:{
|
|
|
|
|
|
|
|
current:0
|
|
|
|
},
|
|
|
|
attached(){
|
|
|
|
let peoplelist=[]
|
|
|
|
for(let i=0;i<Math.ceil((30-4)/5);i++){
|
|
|
|
for(let i=0;i<Math.ceil((30-4)/3);i++){
|
|
|
|
peoplelist.push({
|
|
|
|
list:[]
|
|
|
|
})
|
|
|
|
}
|
|
|
|
for(let i=4;i<=30;i++){
|
|
|
|
let thiscurrent=Math.floor((i-4)/5);
|
|
|
|
let thiscurrent=Math.floor((i-4)/3);
|
|
|
|
peoplelist[thiscurrent]['list'].push({
|
|
|
|
count:i,
|
|
|
|
isactive:false
|
|
...
|
...
|
@@ -28,7 +28,6 @@ Component({ |
|
|
|
this.setData({
|
|
|
|
peoplelist:peoplelist
|
|
|
|
})
|
|
|
|
console.log(peoplelist)
|
|
|
|
},
|
|
|
|
ready(){
|
|
|
|
this.editpeoplelist(this.data.count);
|
|
...
|
...
|
@@ -37,6 +36,9 @@ Component({ |
|
|
|
methods:{
|
|
|
|
selectpeople(e){
|
|
|
|
const target=e.currentTarget.dataset;
|
|
|
|
this.setData({
|
|
|
|
current:target.idx
|
|
|
|
})
|
|
|
|
this.editpeoplelist(target.count);
|
|
|
|
this.triggerEvent('selectpeople',{people:target.count,action:'click'});
|
|
|
|
},
|
...
|
...
|
|