Commit 165e4a8526db9c444e6a2ca5f0f33a439f2c489d

Authored by 周铨
1 parent d558d765

优化滚轮列表无数据时的样式

... ... @@ -18,6 +18,7 @@ function initChart(canvas: any, width: any, height: any, data: any, dpr: any) {
18 18 series: [{
19 19 type: 'pie',
20 20 avoidLabelOverlap: false,
  21 + minAngle: 5, // 1、最小角度- 防止数据量太小
21 22 center: ['50%', '50%'],
22 23 radius: ['40%', '60%'],
23 24 labelLine: {
... ...
... ... @@ -28,7 +28,7 @@
28 28
29 29
30 30 </swiper>
31   - <view class="table_empty_data" wx:if="tableList.length === 0">
  31 + <view class="table_empty_data" wx:if="{{tableList.length === 0}}">
32 32 暂无数据
33 33
34 34 </view>
... ...
... ... @@ -3,7 +3,7 @@ import Toast from '@vant/weapp/toast/toast';
3 3 import { API_CONST } from "./../../api/smartElectric";
4 4 import { getUnitEvent, getCardEvent } from './../../utils/util'
5 5 import { HTTPService as HTTP } from "./../../services/HTTPService";
6   -import { messageFileProps } from 'miniprogram/miniprogram_npm/@vant/weapp/uploader/shared';
  6 +
7 7 Page({
8 8
9 9 /**
... ... @@ -673,12 +673,6 @@ Page({
673 673 });
674 674 }
675 675
676   - }).catch(() => {
677   -
678   - }).finally(() => {
679   - this.setData({
680   - tableList: []
681   - })
682 676 })
683 677 }
684 678 })
\ No newline at end of file
... ...