feat: ai店铺列表记录数据展示
This commit is contained in:
@@ -20,7 +20,9 @@
|
||||
></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="first-time">首次代理时间:{{ v.createTime }}</view>
|
||||
<view class="first-time"
|
||||
>首次代理时间:{{ sheep.$helper.timeFormat(v.createTime, 'yy-mm-dd hh:MM:ss') }}</view
|
||||
>
|
||||
</view>
|
||||
|
||||
<view class="stats flex-between">
|
||||
@@ -29,7 +31,7 @@
|
||||
<view class="stat-title">店铺总收益</view>
|
||||
<image class="stat-icon" src="/static/aiStore/earnings.png" mode="aspectFit" />
|
||||
</view>
|
||||
<view class="stat-value">¥{{ formatMoney(v.earnings) }}</view>
|
||||
<view class="stat-value">¥{{ $fen2yuan(v.earnings) }}</view>
|
||||
</view>
|
||||
<view class="stat">
|
||||
<view class="stat-head flex-between">
|
||||
@@ -46,6 +48,7 @@
|
||||
|
||||
<script setup>
|
||||
import { computed } from 'vue';
|
||||
import sheep from '@/sheep';
|
||||
|
||||
const props = defineProps({
|
||||
list: {
|
||||
@@ -62,12 +65,6 @@
|
||||
|
||||
const renderList = computed(() => (Array.isArray(props.list) ? props.list : []));
|
||||
|
||||
const formatMoney = (value) => {
|
||||
const num = Number(value);
|
||||
if (!Number.isFinite(num)) return '0.00';
|
||||
return num.toFixed(2);
|
||||
};
|
||||
|
||||
const toListRecord = (item) => {
|
||||
const shopId = item?.id ?? '';
|
||||
const name = item?.name ?? '';
|
||||
|
||||
Reference in New Issue
Block a user