Authored by QC-L

修复我的资产页面的问题 review by 黄敬囿

// 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){
... ...
{
"navigationBarTitleText": "我的收入",
"usingComponents": {
"myassetscell": "./myassetscell"
}
... ...
... ... @@ -33,7 +33,7 @@
</view>
<view class= 'tips-root-view'>
<image class='tips-icon' src='../../assets/images/tip_3x.png'></image>
<view class='income-title-txt'>无法收到补偿款请进入<text class='tips-txt'>Yoho!Buy有货APP</text>进行设置</view>
<view class='income-title-txt'>无法收到补偿款请下载<text class='tips-txt'>Yoho!Buy有货APP</text>进行设置</view>
</view>
<text class='income-record-txt'>收入明细</text>
<view class='split-line'></view>
... ...
... ... @@ -21,6 +21,7 @@
display: flex;
justify-content: space-between;
margin-top: 52rpx;
align-items: center;
/* position: absolute; */
}
.income-detail1 {
... ... @@ -40,26 +41,25 @@
}
.progress-box {
/* position: absolute; */
width: 240rpx;
height: 240rpx;
width: 220rpx;
height: 220rpx;
display: flex;
margin-right: 50rpx;
/* align-items: center; */
/* justify-content: center; */
/* background-color: transparent; */
/* background-color: #eeddff; */
margin-right: 60rpx;
}
.progress-bg {
position: absolute;
width: 240rpx;
height: 240rpx;
width: 220rpx;
height: 220rpx;
}
.progress-canvas {
margin-right: 90rpx;
width: 240rpx;
height: 240rpx;
width: 220rpx;
height: 220rpx;
}
.progress-text {
... ... @@ -114,7 +114,7 @@
}
.income-all-count-txt {
/* display: flex; */
font-family: PingFang-SC-Medium;
font-family: DINAlternate-Bold;
font-weight: bold;
font-size: 40rpx;
color: #000000;
... ... @@ -130,7 +130,6 @@
font-family: SFProText-Regular;
font-size: 24rpx;
color: #000000;
text-decoration-line: underline;
}
.income-record-txt {
/* display: flex; */
... ...