初始化上传医疗项目到 medical-mall

This commit is contained in:
2026-04-10 09:03:21 +08:00
parent ca8794ea3a
commit ce124e7119
421 changed files with 15139 additions and 2363 deletions

View File

@@ -1,4 +1,4 @@
<!-- 商家端 - 数据统计页面 -->
<!-- 机构端 - 服务数据统计页面 -->
<template>
<view class="statistics-page">
<!-- #ifdef MP-WEIXIN -->
@@ -16,29 +16,29 @@
</view>
<view class="overview-section">
<view class="section-title">数据概览</view>
<view class="section-title">服务概览</view>
<view class="overview-grid">
<view class="overview-item">
<text class="overview-value">¥{{ stats.todaySales }}</text>
<text class="overview-label">销售额</text>
<text class="overview-label">服务收入</text>
</view>
<view class="overview-item">
<text class="overview-value">{{ stats.todayOrders }}</text>
<text class="overview-label">单数</text>
<text class="overview-label">服务单数</text>
</view>
<view class="overview-item">
<text class="overview-value">{{ stats.todayVisitors }}</text>
<text class="overview-label">访客数</text>
<text class="overview-label">咨询人数</text>
</view>
<view class="overview-item">
<text class="overview-value">{{ stats.conversionRate }}%</text>
<text class="overview-label">转化率</text>
<text class="overview-label">预约转化率</text>
</view>
</view>
</view>
<view class="trend-section">
<view class="section-title">销售趋势</view>
<view class="section-title">服务趋势</view>
<view class="trend-chart">
<view class="chart-bars">
<view v-for="(item, index) in trendData" :key="index" class="chart-bar-wrapper">
@@ -50,14 +50,14 @@
</view>
<view class="product-section">
<view class="section-title">热商品</view>
<view class="section-title">热门服务/商品</view>
<view class="product-list">
<view v-for="(product, index) in hotProducts" :key="product.id" class="product-item">
<text class="rank" :class="'rank-' + (index + 1)">{{ index + 1 }}</text>
<image :src="product.image" class="product-image" mode="aspectFill"/>
<view class="product-info">
<text class="product-name">{{ product.name }}</text>
<text class="product-sales">销量: {{ product.sales }}</text>
<text class="product-sales">服务次数: {{ product.sales }}</text>
</view>
<text class="product-revenue">¥{{ product.revenue }}</text>
</view>
@@ -204,24 +204,30 @@
</script>
<style>
.statistics-page { background-color: #f5f5f5; min-height: 100vh; }
.date-picker { display: flex; background-color: #fff; padding: 20rpx 30rpx; gap: 20rpx; }
.statistics-page { background-color: #f4f5f7; min-height: 100vh; }
.date-picker { display: flex;
flex-direction: row;
background-color: #fff; padding: 20rpx 30rpx; gap: 20rpx; margin-bottom: 2rpx; }
.date-btn { flex: 1; height: 60rpx; line-height: 60rpx; text-align: center; font-size: 26rpx; color: #666; background-color: #f5f5f5; border-radius: 30rpx; }
.date-btn.active { background-color: #007AFF; color: #fff; }
.overview-section, .trend-section, .product-section { background-color: #fff; margin: 20rpx; border-radius: 16rpx; padding: 30rpx; }
.section-title { font-size: 30rpx; font-weight: bold; color: #333; margin-bottom: 24rpx; }
.overview-grid { display: flex; flex-wrap: wrap; }
.date-btn.active { background-color: rgb(66, 121, 240); color: #fff; font-weight: bold; }
.overview-section, .trend-section, .product-section { background-color: #fff; margin: 20rpx 20rpx 0; border-radius: 16rpx; padding: 30rpx; box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04); }
.section-title { font-size: 30rpx; font-weight: bold; color: #333; margin-bottom: 24rpx; padding-left: 18rpx; border-left-width: 6rpx; border-left-style: solid; border-left-color: rgb(66, 121, 240); }
.overview-grid { display: flex;
flex-direction: row;
flex-wrap: wrap; }
.overview-item { width: 50%; padding: 20rpx 0; text-align: center; box-sizing: border-box; }
.overview-item:nth-child(odd) { border-right: 1rpx solid #f5f5f5; }
.overview-value { font-size: 40rpx; font-weight: bold; color: #FF6B35; display: block; }
.overview-item:nth-child(odd) { border-right-width: 1rpx; border-right-style: solid; border-right-color: #f5f5f5; }
.overview-value { font-size: 40rpx; font-weight: bold; color: rgb(66, 121, 240); display: block; }
.overview-label { font-size: 24rpx; color: #999; }
.trend-chart { padding: 20rpx 0; }
.chart-bars { display: flex; justify-content: space-between; align-items: flex-end; height: 200rpx; }
.chart-bars { display: flex;
flex-direction: row;
justify-content: space-between; align-items: flex-end; height: 200rpx; }
.chart-bar-wrapper { display: flex; flex-direction: column; align-items: center; flex: 1; }
.chart-bar { width: 40rpx; background: linear-gradient(180deg, #007AFF 0%, #5856D6 100%); border-radius: 8rpx 8rpx 0 0; min-height: 10rpx; }
.chart-bar { width: 40rpx; background: linear-gradient(180deg, rgb(66, 121, 240) 0%, #ece9fa 100%); border-radius: 8rpx 8rpx 0 0; min-height: 10rpx; }
.chart-label { font-size: 22rpx; color: #999; margin-top: 10rpx; }
.product-list { display: flex; flex-direction: column; }
.product-item { display: flex; align-items: center; padding: 20rpx 0; border-bottom: 1rpx solid #f5f5f5; }
.product-item { display: flex; align-items: center; padding: 20rpx 0; border-bottom-width: 1rpx; border-bottom-style: solid; border-bottom-color: #f5f5f5; }
.product-item:last-child { border-bottom: none; }
.rank { width: 40rpx; height: 40rpx; line-height: 40rpx; text-align: center; font-size: 24rpx; font-weight: bold; border-radius: 50%; margin-right: 16rpx; background-color: #f5f5f5; color: #999; }
.rank-1 { background-color: #FFD700; color: #fff; }
@@ -231,5 +237,5 @@
.product-info { flex: 1; }
.product-name { font-size: 26rpx; color: #333; display: block; }
.product-sales { font-size: 22rpx; color: #999; }
.product-revenue { font-size: 28rpx; font-weight: bold; color: #FF6B35; }
.product-revenue { font-size: 28rpx; font-weight: bold; color: rgb(66, 121, 240); }
</style>