3
This commit is contained in:
@@ -12,28 +12,28 @@
|
||||
<view class="kpi-item kpi-card">
|
||||
<image :src="KPI_ICONS.todaySales" class="kpi-icon" mode="aspectFit"></image>
|
||||
<view class="kpi-content">
|
||||
<text class="kpi-label">今日销售额</text>
|
||||
<text class="kpi-label">{{ KPI_LABELS.todaySales }}</text>
|
||||
<text class="kpi-value">{{ kpi.todaySales }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="kpi-item kpi-card">
|
||||
<image :src="KPI_ICONS.monthSales" class="kpi-icon" mode="aspectFit"></image>
|
||||
<view class="kpi-content">
|
||||
<text class="kpi-label">本月销售额</text>
|
||||
<text class="kpi-label">{{ KPI_LABELS.monthSales }}</text>
|
||||
<text class="kpi-value">{{ kpi.monthSales }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="kpi-item kpi-card">
|
||||
<image :src="KPI_ICONS.monthProfit" class="kpi-icon" mode="aspectFit"></image>
|
||||
<view class="kpi-content">
|
||||
<text class="kpi-label">本月利润</text>
|
||||
<text class="kpi-label">{{ KPI_LABELS.monthProfit }}</text>
|
||||
<text class="kpi-value">{{ kpi.monthProfit }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="kpi-item kpi-card">
|
||||
<image :src="KPI_ICONS.stockCount" class="kpi-icon" mode="aspectFit"></image>
|
||||
<view class="kpi-content">
|
||||
<text class="kpi-label">库存商品数量</text>
|
||||
<text class="kpi-label">{{ KPI_LABELS.stockCount }}</text>
|
||||
<text class="kpi-value">{{ kpi.stockCount }}</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -93,12 +93,13 @@
|
||||
|
||||
<script>
|
||||
import { get, post, put } from '../../common/http.js'
|
||||
import { ROUTES } from '../../common/constants.js'
|
||||
import { ROUTES, KPI_LABELS } from '../../common/constants.js'
|
||||
import { KPI_ICONS as KPI_ICON_MAP } from '../../common/config.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
KPI_ICONS: KPI_ICON_MAP,
|
||||
KPI_LABELS,
|
||||
kpi: { todaySales: '0.00', monthSales: '0.00', monthProfit: '0.00', stockCount: '0' },
|
||||
activeTab: 'home',
|
||||
notices: [],
|
||||
@@ -238,6 +239,11 @@
|
||||
// 报表非 tab 页,使用 navigateTo 进入
|
||||
uni.navigateTo({ url: ROUTES.report })
|
||||
return
|
||||
}
|
||||
if (item.key === 'vip') {
|
||||
// 跳转“我的 - VIP会员”页面
|
||||
uni.navigateTo({ url: '/pages/my/vip' })
|
||||
return
|
||||
}
|
||||
if (item.key === 'otherPay') {
|
||||
// 进入开单页并预选“其他支出”
|
||||
|
||||
Reference in New Issue
Block a user