Commit 769a42a02a42d59fc8570a432ca0b6ed469b9dcd

Authored by 周铨
1 parent dd5e9297

优化页面,调试数据

1 -{  
2 - "component": true,  
3 - "usingComponents": {  
4 - "van-button": "@vant/weapp/button/index"  
5 - }  
6 -}  
1 -// components/mutiSlots/mutiSlots.ts  
2 -Component({  
3 - /**  
4 - * 组件的属性列表  
5 - */  
6 - properties: {  
7 -  
8 - },  
9 - options: {  
10 - multipleSlots: true  
11 - },  
12 - /**  
13 - * 组件的初始数据  
14 - */  
15 - data: {  
16 -  
17 - },  
18 -  
19 - /**  
20 - * 组件的方法列表  
21 - */  
22 - methods: {  
23 -  
24 - }  
25 -})  
1 -<view>  
2 - 多个插槽-----------  
3 -  
4 - <view>  
5 - <van-button type="primary">点击获取插槽</van-button>  
6 - </view>  
7 -  
8 - <slot name="footer"></slot>  
9 -  
10 - <view>  
11 - <slot name="header"></slot>  
12 - </view>  
13 -</view>  
1 -/* components/mutiSlots/mutiSlots.wxss */  
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 <van-circle value="{{ 30 }}" clockwise="{{ false }}" stroke-width="17" size="120" layer-color="#F3F3F3" color="#14C9C9"> 3 <van-circle value="{{ 30 }}" clockwise="{{ false }}" stroke-width="17" size="120" layer-color="#F3F3F3" color="#14C9C9">
4 <view class="deviceText"> 4 <view class="deviceText">
5 <view class="deviceNum"> 5 <view class="deviceNum">
6 - 98% 6 + 30%
7 </view> 7 </view>
8 <view class="deviceCont"> 8 <view class="deviceCont">
9 新能源占比 9 新能源占比
1 { 1 {
2 "usingComponents": { 2 "usingComponents": {
3 - "mutiSlots":"./../../components/mutiSlots/mutiSlots"  
4 } 3 }
5 } 4 }
@@ -348,6 +348,7 @@ Page({ @@ -348,6 +348,7 @@ Page({
348 Toast.loading({ 348 Toast.loading({
349 message: '加载中...', 349 message: '加载中...',
350 forbidClick: true, 350 forbidClick: true,
  351 + mask:true,
351 duration: 0, // 持续展示 toast 352 duration: 0, // 持续展示 toast
352 }); 353 });
353 HTTP.POST({ 354 HTTP.POST({
@@ -419,7 +420,7 @@ Page({ @@ -419,7 +420,7 @@ Page({
419 totalNumName: "故障状态" 420 totalNumName: "故障状态"
420 }, 421 },
421 ] 422 ]
422 - const overallDataListNew = [ 423 + const overallDataListNew: any = [
423 { 424 {
424 type: '光伏', 425 type: '光伏',
425 oneLabelName: "母线电压", 426 oneLabelName: "母线电压",