|
@ -398,7 +398,7 @@ |
|
|
], |
|
|
], |
|
|
betting_amount: [], |
|
|
betting_amount: [], |
|
|
betting_rule: '', |
|
|
betting_rule: '', |
|
|
pageSize: 9, |
|
|
pageSize: 100, |
|
|
totalPage: 1, |
|
|
totalPage: 1, |
|
|
gameNav: [], |
|
|
gameNav: [], |
|
|
gNum: 'G2', |
|
|
gNum: 'G2', |
|
@ -479,12 +479,14 @@ |
|
|
totalPage2:'', |
|
|
totalPage2:'', |
|
|
lotteryNum:[], |
|
|
lotteryNum:[], |
|
|
lotteryNumResult:[0,0,0,0,0,0,0,0,0,0], |
|
|
lotteryNumResult:[0,0,0,0,0,0,0,0,0,0], |
|
|
|
|
|
missingFrequency:{} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onLoad() { |
|
|
onLoad() { |
|
|
|
|
|
|
|
|
|
|
|
this.initializationMissingFrequency(); |
|
|
// 客服 |
|
|
// 客服 |
|
|
this.serviceTime = uni.getStorageSync('siteInfo').serviceTime; |
|
|
this.serviceTime = uni.getStorageSync('siteInfo').serviceTime; |
|
|
const siteTelegram = uni.getStorageSync('siteInfo').siteTelegram; |
|
|
const siteTelegram = uni.getStorageSync('siteInfo').siteTelegram; |
|
@ -510,6 +512,7 @@ |
|
|
this.getLottertRecord(); |
|
|
this.getLottertRecord(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取整个往期记录 |
|
|
// 获取整个往期记录 |
|
|
const post = api.lotteryRecords({ |
|
|
const post = api.lotteryRecords({ |
|
|
"ticket": uni.getStorageSync('logInfo').data, |
|
|
"ticket": uni.getStorageSync('logInfo').data, |
|
@ -580,6 +583,19 @@ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
initializationMissingFrequency(){ |
|
|
|
|
|
for(var i=0; i<10;i++){ |
|
|
|
|
|
this.missingFrequency[i.toString()]={ |
|
|
|
|
|
"missing":0, |
|
|
|
|
|
"frequency":0 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log(this.missingFrequency) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 客服 |
|
|
// 客服 |
|
|
gotoWeb(gotoUrl) { |
|
|
gotoWeb(gotoUrl) { |
|
|
// #ifdef H5 |
|
|
// #ifdef H5 |
|
@ -837,7 +853,7 @@ |
|
|
"ticket": uni.getStorageSync('logInfo').data, |
|
|
"ticket": uni.getStorageSync('logInfo').data, |
|
|
"classId": this.gg, |
|
|
"classId": this.gg, |
|
|
"pageNumber": 1, |
|
|
"pageNumber": 1, |
|
|
"pageSize": this.pageSize, |
|
|
"pageSize": 10, |
|
|
}) |
|
|
}) |
|
|
post.then(res => { |
|
|
post.then(res => { |
|
|
if (res.data == '' || res.data.content == null) { |
|
|
if (res.data == '' || res.data.content == null) { |
|
@ -855,7 +871,20 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
this.initializationMissingFrequency() |
|
|
|
|
|
for(var i=0; i<this.gameRecordCont.length;i++){ |
|
|
|
|
|
if(i>100){ |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].frequency=this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].frequency+1; |
|
|
|
|
|
if(this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].missing<1){ |
|
|
|
|
|
this.missingFrequency[this.gameRecordCont[i].lotteryResult.toString()].missing=i |
|
|
|
|
|
} |
|
|
|
|
|
console.log("数据") |
|
|
|
|
|
console.log(JSON.stringify(this.gameRecordCont[i])) |
|
|
|
|
|
} |
|
|
|
|
|
console.log(JSON.stringify(this.missingFrequency)) |
|
|
}) |
|
|
}) |
|
|
.catch(e => { |
|
|
.catch(e => { |
|
|
console.log(e) |
|
|
console.log(e) |
|
|