diff --git a/pages/everdayRenven/AnhuiIndex.vue b/pages/everdayRenven/AnhuiIndex.vue
index 707b3e5..d851659 100644
--- a/pages/everdayRenven/AnhuiIndex.vue
+++ b/pages/everdayRenven/AnhuiIndex.vue
@@ -319,7 +319,8 @@
商品销售排行
-
+
+
@@ -709,25 +710,35 @@ export default {
const ctx = uni.createCanvasContext(obj.id, this);
data.series = data.series.concat(obj.data)
+ // 针对不同图表使用不同配置
+ const isAreaChart = obj.id === 'areaCont'; // nowTab为3的图表
+ const legendConfig = isAreaChart ? {
+ show: true, // areaCont显示图例
+ padding: 5,
+ lineHeight: 11,
+ margin: 10,
+ position: 'right' // 图例显示在右侧
+ } : {
+ show: false, // 其他图表不显示图例
+ padding: 5,
+ lineHeight: 11,
+ margin: 0,
+ };
+
// 微信小程序专用优化配置 - 完全去除动画和过渡效果
rincanvas[obj.id] = new uCharts({
context: ctx,
color: obj.colors,
type: 'ring',
fontSize: 12,
- padding: [15, 15, 25, 15],
- legend: {
- show: false,
- padding: 5,
- lineHeight: 11,
- margin: 0,
- },
+ padding: [15, 25, 25, 15],
+ legend: legendConfig,
background: '#FFFFFF',
pixelRatio: 1, // 使用较低的像素比率减少渲染负担
series: data.series,
width: uni.upx2px(686),
height: uni.upx2px(510),
- dataLabel: true,
+ dataLabel: !isAreaChart,
// 核心性能优化 - 完全禁用所有动画和交互
animation: false, // 禁用所有动画
@@ -997,6 +1008,7 @@ export default {
_data1.push({
...n,
+ name: n.name.split('管理单元')[0],
textColor: '#999',
formatter: function (arg) {
@@ -2505,7 +2517,7 @@ canvas.operation-content {
}
.category-name {
- font-size: 26rpx;
+ font-size: 24rpx;
font-weight: 600;
color: #2c3e50;
}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 7eb03ce..ef92489 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -19,7 +19,7 @@
:key="item.id"
:item ="item"
:doCout="toDoMsg[item.id]"
- :active="menus[item.id]==1"
+ :active="menus[item.id]==1"
@tap="toPage(item)"
>