Commit 697d79c6 authored by 罗超's avatar 罗超

调整部分样式

parent 08e25095
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
chartData: {}, chartData: {},
opts: { opts: {
color: ["#E53F4E", "#282828"], color: ["#E53F4E", "#282828"],
padding: [0, 40, 6, 40], padding: [0, 40, 0, 40],
legend: { legend: {
show: true, show: true,
position: "top", position: "top",
......
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
let cate = [];//模块名称 let cate = [];//模块名称
let grRate =[];//个人得分率 let grRate =[];//个人得分率
let avgRate =[];//平均得分率 let avgRate =[];//平均得分率
let sumRate=[]
props.ModuleList && props.ModuleList.forEach(item=>{ props.ModuleList && props.ModuleList.forEach(item=>{
if(item.Module.length>6){ if(item.Module.length>6){
cate.push(item.Module.substring(0,6)+'...'); cate.push(item.Module.substring(0,6)+'...');
...@@ -73,6 +74,7 @@ ...@@ -73,6 +74,7 @@
grRate.push((item.ScoreRate * 100).toFixed(0)); grRate.push((item.ScoreRate * 100).toFixed(0));
avgRate.push((item.AvgScoreRate * 100).toFixed(0)); avgRate.push((item.AvgScoreRate * 100).toFixed(0));
sumRate.push(100)
}); });
let res = { let res = {
categories: cate, categories: cate,
...@@ -80,7 +82,7 @@ ...@@ -80,7 +82,7 @@
{ {
name: "", name: "",
legendShape:'none', legendShape:'none',
data: [100,100,100,100,100,100,100] data: sumRate
}, },
{ {
name: "平均得分率", name: "平均得分率",
......
...@@ -74,12 +74,12 @@ ...@@ -74,12 +74,12 @@
<text>{{x.GroupName.GroupName}}掌握情况</text> <text>{{x.GroupName.GroupName}}掌握情况</text>
</view> </view>
<view class="index-student-information"> <view class="index-student-information">
<view style="display: flex;justify-content: center;margin-bottom: 40rpx;zoom: .7;"> <view style="display: flex;justify-content: center;margin-bottom: 40rpx;">
<view class="scoreDetails-header-num flex"> <view class="scoreDetails-header-num flex small">
<view>总分</view> <view>总分</view>
<text>{{x.TScore}}</text> <text>{{x.TScore}}</text>
</view> </view>
<view class="scoreDetails-header-num flex" style="margin-left: 80rpx;background-color: #3ec283;"> <view class="scoreDetails-header-num flex small" style="margin-left: 80rpx;background-color: #3ec283;">
<view>排名</view> <view>排名</view>
<text>{{x.Rank}}</text> <text>{{x.Rank}}</text>
</view> </view>
...@@ -332,6 +332,17 @@ ...@@ -332,6 +332,17 @@
flex-shrink: 0; flex-shrink: 0;
text-align: center; text-align: center;
} }
.scoreDetails-header-num.small{
width: 80rpx;
height: 80rpx;
border-radius: 20rpx;
}
.scoreDetails-header-num.small text{
font-size: 30rpx;
}
.scoreDetails-header-num.small view{
font-size: 18rpx;
}
.scoreDetails-header-title{ .scoreDetails-header-title{
font-size: 50rpx; font-size: 50rpx;
font-weight: 800; font-weight: 800;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment