feat: 更改时间来源、格式

This commit is contained in:
2026-06-15 15:15:49 +08:00
parent 577c022ac0
commit 980c5be89e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
</view> </view>
</view> </view>
<view class="first-time" <view class="first-time"
>首次代理时间:{{ sheep.$helper.timeFormat(v.createTime, 'yy-mm-dd hh:MM:ss') }}</view >首次代理时间:{{ sheep.$helper.timeFormat(v.createTime, 'yyyy-mm-dd hh:MM:ss') }}</view
> >
</view> </view>
+2 -2
View File
@@ -102,8 +102,8 @@
? Math.max(0, Math.min(100, (totalRevenue / totalPrice) * 100)) ? Math.max(0, Math.min(100, (totalRevenue / totalPrice) * 100))
: 0; : 0;
const timeText = sheep.$helper?.timeFormat const timeText = sheep.$helper?.timeFormat
? sheep.$helper.timeFormat(order?.createTime, 'yy-mm-dd hh:MM:ss') ? sheep.$helper.timeFormat(firstItem?.saleTime, 'yyyy-mm-dd hh:MM:ss')
: String(order?.createTime || ''); : String(firstItem?.saleTime || '');
const payPriceFen = Number(order?.payPrice ?? 0) || 0; const payPriceFen = Number(order?.payPrice ?? 0) || 0;
const totalYuan = payPriceFen / 100; const totalYuan = payPriceFen / 100;
return { return {