fan 4 years ago
parent
commit
b7b54b9c32
  1. 35
      pages/menu/color/index.vue
  2. 2972
      unpackage/dist/dev/app-plus/app-service.js
  3. 2308
      unpackage/dist/dev/app-plus/app-view.js

35
pages/menu/color/index.vue

@ -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
@ -834,7 +850,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) {
@ -852,7 +868,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)

2972
unpackage/dist/dev/app-plus/app-service.js

File diff suppressed because one or more lines are too long

2308
unpackage/dist/dev/app-plus/app-view.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save