geer-builder 1.2.747 → 1.2.748
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GEarningBreakdownWidget.vue +29 -0
- package/package.json +1 -1
|
@@ -101,6 +101,35 @@ export default
|
|
|
101
101
|
}
|
|
102
102
|
return res;
|
|
103
103
|
});
|
|
104
|
+
|
|
105
|
+
if(complan_plan.hasOwnProperty("breakdown_complan"))
|
|
106
|
+
{
|
|
107
|
+
complan_plan.breakdown_complan.map((val) =>
|
|
108
|
+
{
|
|
109
|
+
let res = { icon: val.icon, active: val.active, label: val.label, complan: val.key, amount : 0, last_update: null, show:val.show };
|
|
110
|
+
this.earning_breakdown.forEach((breakdown) =>
|
|
111
|
+
{
|
|
112
|
+
let another_keyword = val.key+"_convert";
|
|
113
|
+
if(breakdown.id == val.key || breakdown.id == another_keyword)
|
|
114
|
+
{
|
|
115
|
+
res.amount = res.amount+breakdown.amount;
|
|
116
|
+
res.last_update = breakdown.last_update;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
for (var key in this.earning_breakdown_slot.temporary_wallet)
|
|
121
|
+
{
|
|
122
|
+
if(key == val.key)
|
|
123
|
+
{
|
|
124
|
+
res.amount = res.amount +this.earning_breakdown_slot.temporary_wallet[key];
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
this.earning_breakdown_processed.push(res);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// console.log(this.earning_breakdown_processed);
|
|
104
133
|
// console.log(this.earning_breakdown_processed);
|
|
105
134
|
// console.log(this.earning_breakdown_slot.temporary_wallet);
|
|
106
135
|
|