|
@@ -8,7 +8,7 @@ import "taro-ui/dist/style/components/progress.scss";
|
8
|
8
|
import { savePoint, updatePoint } from '@services/common'
|
9
|
9
|
import { querySexInfo } from '@services/person'
|
10
|
10
|
import { connect } from '@tarojs/redux'
|
11
|
|
-import PieChart from "../../../components/PieChart";
|
|
11
|
+import LineChart from "../../../components/charts/Line";
|
12
|
12
|
|
13
|
13
|
|
14
|
14
|
@connect(({ user, city }) => ({ user, city }))
|
|
@@ -69,9 +69,8 @@ export default class analysis extends Taro.Component {
|
69
|
69
|
{ value: 135, name: '视频广告' },
|
70
|
70
|
{ value: 1548, name: '搜索引擎' }
|
71
|
71
|
];
|
72
|
|
- this.pieChart.refresh(chartData);
|
|
72
|
+
|
73
|
73
|
}
|
74
|
|
- refPieChart = (node) => this.pieChart = node
|
75
|
74
|
|
76
|
75
|
render() {
|
77
|
76
|
|
|
@@ -83,7 +82,7 @@ export default class analysis extends Taro.Component {
|
83
|
82
|
<AtTabs className="tab-bar" current={this.state.current} tabList={tabList} onClick={this.handleClick.bind(this)}>
|
84
|
83
|
<AtTabsPane current={this.state.current} index={0} >
|
85
|
84
|
<View>
|
86
|
|
- <PieChart ref={this.refPieChart} />
|
|
85
|
+ <LineChart />
|
87
|
86
|
<View style="height:20rpx;background:#f5f5f5;"> </View>
|
88
|
87
|
<View style="padding: 40rpx;">
|
89
|
88
|
<View style="font-size: 36rpx;color: #666;margin-bottom:20rpx;">性别</View>
|
|
@@ -97,7 +96,7 @@ export default class analysis extends Taro.Component {
|
97
|
96
|
</AtTabsPane>
|
98
|
97
|
<AtTabsPane current={this.state.current} index={1}>
|
99
|
98
|
<View>
|
100
|
|
- <PieChart ref={this.refPieChart} />
|
|
99
|
+ <LineChart />
|
101
|
100
|
<View style="height:20rpx;background:#f5f5f5;"> </View>
|
102
|
101
|
<View style="padding: 40rpx;">
|
103
|
102
|
<View style="font-size: 36rpx;color: #666;margin-bottom:20rpx;">性别</View>
|
|
@@ -111,7 +110,7 @@ export default class analysis extends Taro.Component {
|
111
|
110
|
</AtTabsPane>
|
112
|
111
|
<AtTabsPane current={this.state.current} index={2}>
|
113
|
112
|
<View>
|
114
|
|
- <PieChart ref={this.refPieChart} />
|
|
113
|
+ <LineChart />
|
115
|
114
|
<View style="height:20rpx;background:#f5f5f5;"> </View>
|
116
|
115
|
<View style="padding: 40rpx;">
|
117
|
116
|
<View style="font-size: 36rpx;color: #666;margin-bottom:20rpx;">性别</View>
|