...
|
...
|
@@ -8,11 +8,7 @@ Page({ |
|
|
data: {
|
|
|
api: Object,
|
|
|
data: [],
|
|
|
summary: {
|
|
|
totalIncome: '0.00',
|
|
|
goodsIncome: '0.00',
|
|
|
compensateIncome: '0.00'
|
|
|
},
|
|
|
summary: {},
|
|
|
currentPage:1,
|
|
|
page:0,
|
|
|
pagetotal:0,
|
...
|
...
|
@@ -48,7 +44,7 @@ Page({ |
|
|
ctx.setLineWidth(10);
|
|
|
// 设置圆环的颜色
|
|
|
let strokeColor = '#E0E0E0'
|
|
|
if (summary && summary.totalIncome >= 0) {
|
|
|
if (summary && summary.totalIncome > 0) {
|
|
|
strokeColor = '#65AB85';
|
|
|
}
|
|
|
ctx.setStrokeStyle(strokeColor);
|
...
|
...
|
@@ -129,7 +125,12 @@ Page({ |
|
|
}).then(data => {
|
|
|
if(data){
|
|
|
let detail = data.data;
|
|
|
let summary = data.summary ? data.summary : {};
|
|
|
let constSummary = {
|
|
|
totalIncome: '0.00',
|
|
|
goodsIncome: '0.00',
|
|
|
compensateIncome: '0.00',
|
|
|
}
|
|
|
let summary = constSummary;//data.summary ? data.summary : constSummary;
|
|
|
if(detail){
|
|
|
detail = that.data.data.concat(detail);
|
|
|
} else {
|
...
|
...
|
|