1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <template>
- <view class="page-box">
- <view class="icon-box">
- <view class="t-icon t-icon-xuexirenwu"></view>
- <view class="t-icon t-icon-ceshi"></view>
- <view class="t-icon t-icon-silu"></view>
- </view>
- <view class="chart-container">
- <view class="chart-name">
- <view class="t-icon t-icon-dajumao"></view>
- <text class="chart-name-text">排行分析</text>
- </view>
- <view class="charts-box">
- <qiun-data-charts type="arcbar" :chartData="chartData" :loadingType="4" :opts.title="this.chartData.series.name" />
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- chartData: {
- series: [{
- "name": "您的孩子超过",
- "data": 0.8,
- "color": "#0052d4"
- },
- {
- "name": "班级平均分",
- "data": 0.9,
- "color": "#ff5959"
- },
- {
- "name": "年纪平均分",
- "data": 1,
- "color": "#f9b248"
- }
- ],
- },
- };
- }
- }
- </script>
- <style lang="scss">
- .page-box{
- height: 400rpx;
- background: linear-gradient(#419eea, #f1f3f5);
- .icon-box{
- display: flex;
- justify-content: space-between;
- margin: 0 80rpx 40rpx 80rpx;
- padding-top: 20rpx;
- }
- .chart-container {
- margin: 0 20rpx;
- padding: 0rpx 10rpx 0rpx 0rpx;
- border-radius: 15rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- background-color: #FFFFFF;
- box-shadow: 0 4rpx 8rpx rgba(0,0,0,0.1);
-
- .chart-name {
- width: 100%;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- margin-left: 40rpx;
- margin-top: 20rpx;
-
- .chart-name-text {
- font-size: 30rpx;
- font-weight: bold;
- color: #3B4144;
- margin-left: 10rpx;
- }
- }
- .charts-box {
- width: 100%;
- height: 550rpx;
- }
- }
- }
- </style>
|