wylyl22 3 years ago
parent 9f4a6b2a1d
commit 1e3994271e

@ -43,6 +43,7 @@ Component({
const arr = [] const arr = []
res.forEach(ele => { res.forEach(ele => {
let obj = { let obj = {
title: ele.events_title, title: ele.events_title,
influence: ele.events_influence, influence: ele.events_influence,
brand:ele.events_brand, brand:ele.events_brand,

@ -76,7 +76,7 @@ Component({
for(let i=0;i<3;i++){ for(let i=0;i<3;i++){
if(!pd){ if(!pd){
sexAccounted.push(((sex[i].value/sexSum)*100).toFixed(2)) sexAccounted.push(((sex[i].value/sexSum)*100).toFixed(2))
attestationAccounted.push(((sex[i].value/attestationSum)*100).toFixed(2)) attestationAccounted.push(((attestation[i].value/attestationSum)*100).toFixed(2))
sexList.push({name:sex[i].key,value:sex[i].value,color:color[i],accounted:sexAccounted[i]}) sexList.push({name:sex[i].key,value:sex[i].value,color:color[i],accounted:sexAccounted[i]})
attestationList.push({name:attestation[i].key,value:attestation[i].value,color:color[i],accounted:attestationAccounted[i]}) attestationList.push({name:attestation[i].key,value:attestation[i].value,color:color[i],accounted:attestationAccounted[i]})
} }

@ -6,6 +6,12 @@ Page({
onShow() { onShow() {
this.getData(); this.getData();
}, },
onLoad(e){
this.setData({
time:e.time
})
console.log(this.data.time)
},
getData() { getData() {
app.globalData.request({ app.globalData.request({
action: 'getEventData', action: 'getEventData',

Loading…
Cancel
Save