partnerForList(list){
if(vm.level< 9){
vm.level++
console.log(JSON.stringify(list))
for(i=0;i<list.length;i++){
vm.partnerFor(list[i].id)
}
}
else {
return
}
},
partnerFor(id){
let appid = api.appId
let t = timestamp()
let sign = encode(`${id}&${appid}&${t}`)
let data = {
id:id,
appid:appid,
t:t,
sign:sign
}
ajaxPostPar(ApiUrl.partner + id,data,function(ret){
if(ret.code == 400){
vm.level = 1
}
else{
vm.userNum += parseInt(ret.data.userNum)
vm.sum += parseInt(ret.data.sum)
vm.partnerForList(ret.data.userList)
}
})
},
网友评论