fangmingyue 2 yıl önce
ebeveyn
işleme
5a0fbf9140

+ 0
- 21
src/pages/my/components/Notice.jsx Dosyayı Görüntüle

@@ -1,21 +0,0 @@
1
-import React from 'react';
2
-import { View, Image } from '@tarojs/components';
3
-import smallbell from '@/assets/icons/smallbell.png';
4
-import Taro from '@tarojs/taro';
5
-import style from './notice.module.less';
6
-
7
-export default (props) => {
8
-
9
-  const onClick = () => {
10
-    Taro.navigateTo({
11
-      url: `/pages/my/edit/index`
12
-    })
13
-  }
14
-
15
-  return (
16
-    <View className={style['wrapper-middle-box']} onClick={onClick}>
17
-      <Image className={style['wrapper-middle-img']} src={smallbell} />
18
-      <View className={style['wrapper-middle-text3']}>消息通知</View>
19
-    </View>
20
-  )
21
-}

+ 0
- 16
src/pages/my/components/notice.module.less Dosyayı Görüntüle

@@ -1,16 +0,0 @@
1
-.wrapper-middle-box {
2
-  box-shadow: 0px 18px 22px 0px rgba(0, 0, 0, 0.06);
3
-  border-radius: 8px;
4
-  display: grid;
5
-  place-items: center;
6
-  margin-bottom: 20px;
7
-
8
-  .wrapper-middle-img {
9
-    width: 120px;
10
-    height: 120px;
11
-  }
12
-  .wrapper-middle-text3 {
13
-    font-size: 32px;
14
-    margin-bottom: 36px;
15
-  }
16
-}

+ 12
- 2
src/pages/my/index.jsx Dosyayı Görüntüle

@@ -3,11 +3,18 @@ import Page from '@/layouts/index';
3 3
 import { View, Image } from '@tarojs/components';
4 4
 import headportrait from '@/assets/icons/headportrait.png';
5 5
 import peopleicon from '@/assets/icons/peopleicon.png';
6
+import smallbell from '@/assets/icons/smallbell.png';
6 7
 import { Card } from '@antmjs/vantui';
7
-import Notice from './components/Notice';
8
+import Taro from '@tarojs/taro';
8 9
 import './index.less';
9 10
 
10 11
 export default (props) => {
12
+  const onClick = () => {
13
+    Taro.navigateTo({
14
+      url: `/pages/my/edit/index`
15
+    })
16
+  }
17
+
11 18
   return (
12 19
     <Page tabBar="mine">
13 20
       <View className="wrapper-header">
@@ -28,7 +35,10 @@ export default (props) => {
28 35
           <View className="wrapper-middle-text">所在部门</View>
29 36
           <View className="wrapper-middle-text2">县文明办</View>
30 37
         </View>
31
-        <Notice />
38
+        <View className="wrapper-middle-box" onClick={onClick}>
39
+          <Image className="wrapper-middle-img" src={smallbell} />
40
+          <View className="wrapper-middle-text3">消息通知</View>
41
+        </View>
32 42
       </View>
33 43
     </Page>
34 44
   )

+ 4
- 0
src/pages/my/index.less Dosyayı Görüntüle

@@ -74,4 +74,8 @@
74 74
     font-size: 28px;
75 75
     color: #757575;
76 76
   }
77
+  .wrapper-middle-text3 {
78
+    font-size: 32px;
79
+    margin-bottom: 50px;
80
+  }
77 81
 }

+ 18
- 4
src/pages/statistics/index.jsx Dosyayı Görüntüle

@@ -36,6 +36,7 @@ export default (props) => {
36 36
         left: '3%',
37 37
         right: '4%',
38 38
         bottom: '3%',
39
+        width: '290px',
39 40
         containLabel: true
40 41
       },
41 42
       xAxis: [
@@ -47,7 +48,8 @@ export default (props) => {
47 48
       ],
48 49
       yAxis: [
49 50
         {
50
-          type: 'value'
51
+          type: 'value',
52
+          minInterval: 1
51 53
         }
52 54
       ],
53 55
       series: [
@@ -108,6 +110,7 @@ export default (props) => {
108 110
         left: '3%',
109 111
         right: '4%',
110 112
         bottom: '3%',
113
+        width: '290px',
111 114
         containLabel: true
112 115
       },
113 116
       xAxis: [
@@ -116,6 +119,7 @@ export default (props) => {
116 119
           boundaryGap: false,
117 120
           data: ['已处理', '未处理', '逾期'],
118 121
           boundaryGap: true,
122
+          name: '状态',
119 123
           axisTick: {
120 124
             alignWithLabel: true,
121 125
           }
@@ -123,12 +127,15 @@ export default (props) => {
123 127
       ],
124 128
       yAxis: [
125 129
         {
126
-          type: 'value'
130
+          type: 'value',
131
+          minInterval: 1,
132
+          name: '交办次数'
127 133
         }
128 134
       ],
129 135
       series: [
130 136
         {
131 137
           type: 'bar',
138
+          barWidth: '20%',
132 139
           itemStyle: {
133 140
             color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
134 141
               { offset: 0, color: '#F772D1' },
@@ -168,6 +175,7 @@ export default (props) => {
168 175
         left: '3%',
169 176
         right: '4%',
170 177
         bottom: '3%',
178
+        width: '290px',
171 179
         containLabel: true
172 180
       },
173 181
       xAxis: [
@@ -178,17 +186,23 @@ export default (props) => {
178 186
           boundaryGap: true,
179 187
           axisTick: {
180 188
             alignWithLabel: true,
189
+          },
190
+          axisLabel: {
191
+            interval: 0,
192
+            rotate: 40
181 193
           }
182 194
         }
183 195
       ],
184 196
       yAxis: [
185 197
         {
186
-          type: 'value'
198
+          type: 'value',
199
+          minInterval: 1
187 200
         }
188 201
       ],
189 202
       series: [
190 203
         {
191 204
           type: 'bar',
205
+          barWidth: '20%',
192 206
           itemStyle: {
193 207
             color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
194 208
               { offset: 0, color: '#FB9900' },
@@ -222,7 +236,7 @@ export default (props) => {
222 236
         <ec-canvas canvasId="mychart-bar" ec={ec2}></ec-canvas>
223 237
       </view>
224 238
       <view class="container">
225
-        <ec-canvas canvasId="mychart-bar" ec={ec3}></ec-canvas>
239
+        <ec-canvas canvasId="mychart-bar2" ec={ec3}></ec-canvas>
226 240
       </view>
227 241
     </Page>
228 242
   )

+ 0
- 1
src/pages/statistics/index.less Dosyayı Görüntüle

@@ -3,5 +3,4 @@
3 3
   border-radius: 8px;
4 4
   margin: var(--main-space);
5 5
   height: 24%;
6
-  margin-bottom: 20px;
7 6
 }