wylyl22 3 years ago
parent 9f4a6b2a1d
commit 1e3994271e

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

@ -76,7 +76,7 @@ Component({
for(let i=0;i<3;i++){
if(!pd){
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]})
attestationList.push({name:attestation[i].key,value:attestation[i].value,color:color[i],accounted:attestationAccounted[i]})
}

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

Loading…
Cancel
Save