许静 vor 5 Jahren
Ursprung
Commit
56016e492d
2 geänderte Dateien mit 23 neuen und 1 gelöschten Zeilen
  1. 19
    0
      src/components/charts/style.scss
  2. 4
    1
      src/pages/person/customerAnalysis/analysis.js

+ 19
- 0
src/components/charts/style.scss Datei anzeigen

@@ -0,0 +1,19 @@
1
+.map-container {
2
+  position: absolute;
3
+  top: 0;
4
+  bottom: 0;
5
+  left: 0;
6
+  right: 0;
7
+  width:90vw;
8
+  height:600px;
9
+  display: flex;
10
+  flex-direction: column;
11
+  align-items: center;
12
+  justify-content: space-between;
13
+  box-sizing: border-box;
14
+
15
+  ec-canvas {
16
+    width: 100%;
17
+    height: 100%;
18
+  }
19
+}

+ 4
- 1
src/pages/person/customerAnalysis/analysis.js Datei anzeigen

@@ -91,7 +91,10 @@ export default class analysis extends Taro.Component {
91 91
         <AtTabs className="tab-bar" current={this.state.current} tabList={tabList} onClick={this.handleClick.bind(this)}>
92 92
           <AtTabsPane current={this.state.current} index={0} >
93 93
             <View>
94
-              <LineChart source={chartInfo} />
94
+              <View style="width:90vw;height:600rpx">
95
+                <LineChart source={chartInfo} />
96
+              </View>
97
+
95 98
               <View style="height:20rpx;background:#f5f5f5;"> </View>
96 99
               <View style="padding: 40rpx;">
97 100
                 <View style="font-size: 36rpx;color: #666;margin-bottom:20rpx;">性别</View>