|
|
@@ -4,12 +4,12 @@
|
|
|
</StatisticsTitle>
|
|
|
<view class="page-box-bg-fff row-justify-sb center r-30">
|
|
|
<view class="chart_item column-c m-lr20">
|
|
|
- <CircleChart :bgColor="'#2B7DFA'"></CircleChart>
|
|
|
+ <CircleChart ref="circleChart" :bgColor="'#2B7DFA'"></CircleChart>
|
|
|
</view>
|
|
|
<view class="row industry-box m-l30">
|
|
|
- <view class="row-c p-tb10 industry-item" v-for="(item,index) in list" :key="index">
|
|
|
- <view class="wh-14 m-r10" :style="{background:item.color}"></view>
|
|
|
- <text class="size-24 text-color-576">{{item.name}}</text>
|
|
|
+ <view class="row-c p-tb10 industry-item" v-if="index<=5" v-for="(item,index) in industryList.titles" :key="index">
|
|
|
+ <view class="wh-14 m-r10" :class="'industry-icon+'+index"></view>
|
|
|
+ <text class="size-24 text-color-576">{{item}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -64,7 +64,14 @@
|
|
|
methods: {
|
|
|
onChange(e) {
|
|
|
this.current = e
|
|
|
- }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ setData(data){
|
|
|
+ console.log(data)
|
|
|
+
|
|
|
+ this.$refs.circleChart.setServerData(data)
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
@@ -75,6 +82,25 @@
|
|
|
|
|
|
.industry-item {
|
|
|
width: 180rpx;
|
|
|
+ .industry-icon-0{
|
|
|
+ background-color: #2C7DF9;
|
|
|
+ }
|
|
|
+ .industry-icon-1{
|
|
|
+ background-color: #2C7DF9;
|
|
|
+ }
|
|
|
+ .industry-icon-2{
|
|
|
+ background-color: #00BF8A;
|
|
|
+ }
|
|
|
+ .industry-icon-3{
|
|
|
+ background-color: #00BF8A;
|
|
|
+ }
|
|
|
+ .industry-icon-4{
|
|
|
+ background-color: #ED9A2C;
|
|
|
+ }
|
|
|
+ .industry-icon-5{
|
|
|
+ background-color: #ED9A2C;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</style>
|