|
|
// dist/pages/myassets/index.js
|
|
|
import MyAssetsService from './myassetsService.js'
|
|
|
import { formatTimeByDefined } from '../../utils/index.js'
|
|
|
Page({
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -101,7 +102,7 @@ Page({ |
|
|
注意此处 传参 step 取值范围是0到2,
|
|
|
所以 计数器 最大值 60 对应 2 做处理,计数器count=60的时候step=2
|
|
|
*/
|
|
|
this.drawCircle(this.data.summary.goodsIncome / (this.data.summary.totalIncome / 2))
|
|
|
this.drawCircle(summary.goodsIncome / (summary.totalIncome / 2))
|
|
|
// if()
|
|
|
// this.data.count++;
|
|
|
// }
|
...
|
...
|
@@ -136,7 +137,14 @@ Page({ |
|
|
} else {
|
|
|
detail = that.data.data
|
|
|
}
|
|
|
|
|
|
|
|
|
if (detail.length > 0) {
|
|
|
detail.filter((item) => {
|
|
|
item.createTime = formatTimeByDefined(item.createTime, 'Y-M-D h:m:s');
|
|
|
return item;
|
|
|
})
|
|
|
}
|
|
|
console.log(summary);
|
|
|
|
|
|
let cPage = data.page;
|
|
|
if (cPage == 1){
|
...
|
...
|
|