guhongwei 2 年之前
父节点
当前提交
1340aae22c
共有 3 个文件被更改,包括 18 次插入22 次删除
  1. 11 4
      pages/schAdmin/stustat/list.less
  2. 2 4
      pages/schAdmin/stustat/list.wxml
  3. 5 14
      pages/schAdmin/stustat/list.wxss

+ 11 - 4
pages/schAdmin/stustat/list.less

@@ -1,4 +1,11 @@
-ec-canvas {
-  width: 100%;
-  height: 100%;
-}
+.main {
+    background-color: var(--mainColor);
+    height: var(--twoHeight);
+
+
+
+    ec-canvas {
+        width: 100%;
+        height: 100%;
+    }
+}

+ 2 - 4
pages/schAdmin/stustat/list.wxml

@@ -1,7 +1,5 @@
 <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
 <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-  <view slot="info" class="container main">
-    <view class="container">
-      <ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec }}"></ec-canvas>
+    <view slot="info" class="container main">
+        <ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec }}"></ec-canvas>
     </view>
     </view>
-  </view>
 </mobile-main>
 </mobile-main>

+ 5 - 14
pages/schAdmin/stustat/list.wxss

@@ -1,17 +1,8 @@
-ec-canvas {
+.main {
+  background-color: var(--mainColor);
+  height: var(--twoHeight);
+}
+.main ec-canvas {
   width: 100%;
   width: 100%;
   height: 100%;
   height: 100%;
 }
 }
-.container {
-  position: absolute;
-  top: 0;
-  bottom: 0;
-  left: 0;
-  right: 0;
- 
-  display: flex;
-  flex-direction: column;
-  align-items: center;
-  justify-content: space-between;
-  box-sizing: border-box;
-}