200 lines
3.9 KiB
Vue
200 lines
3.9 KiB
Vue
<template>
|
|
<view class="content">
|
|
<view class="time text_c bold">{{create_time}}</view>
|
|
<!-- 估分 -->
|
|
<view class="box">
|
|
<view class="title bold">本次估分成绩为</view>
|
|
<view class="charts">
|
|
<qiun-data-charts type="arcbar" :chartData="chartData" />
|
|
<view class="name">{{score}}</view>
|
|
</view>
|
|
<view class="title bold" v-if="Max_score">该地区体育总成绩为:{{Max_score}}分</view>
|
|
</view>
|
|
<!-- -->
|
|
<view v-for="(item,index) in selectllist">
|
|
<view class="titleName bold mt-15 ml-15 size16">{{item.name}}</view>
|
|
<view class="indexCarList">
|
|
<view class="card" v-for="(ite,ind) in item.list">
|
|
<view class="title">
|
|
<view class="name">{{ite.name}}</view>
|
|
</view>
|
|
<view class="item3" v-for="(it,id) in ite.list" v-if="ite.list.length>1">
|
|
<view class="name">{{it.name}}</view>
|
|
<view class="weight">
|
|
<view class="input">{{it.value?it.value:'-'}}</view>
|
|
<view class="cblue bold">{{it.proportion_value?it.proportion_value:'-'}}</view>
|
|
<view class="cblue bold">{{it.total_score?it.total_score:'-'}}</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue';
|
|
export default {
|
|
data() {
|
|
return {
|
|
chartData: {
|
|
series: [{
|
|
name: "正确率",
|
|
color: "#4687F9",
|
|
data: 0
|
|
}]
|
|
},
|
|
score: 0,
|
|
Max_score: 0,
|
|
create_time: "",
|
|
selectllist: []
|
|
}
|
|
},
|
|
components: {
|
|
qiunDataCharts
|
|
},
|
|
onLoad(options) {
|
|
let that = this
|
|
that.getList(options.id)
|
|
},
|
|
methods: {
|
|
getList(id) {
|
|
let that = this
|
|
that.$model.getSportshistorydetail({
|
|
id: Number(id),
|
|
}).then((res) => {
|
|
console.log("历史记录详情", res)
|
|
if (res.code != 0) return
|
|
that.selectllist = res.data.list
|
|
that.score = Number(res.data.score)
|
|
that.Max_score = res.data.max_score
|
|
that.create_time = res.data.create_time
|
|
that.chartData.series[0].data = Number(res.data.score) / 50
|
|
})
|
|
},
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.content {
|
|
min-height: 100vh;
|
|
padding-top: 15px;
|
|
padding-bottom: 15px;
|
|
background-color: #f7f7f7;
|
|
}
|
|
|
|
.box {
|
|
margin: 15px 10px 0;
|
|
padding: 15px 10px 10px;
|
|
background-color: #fff;
|
|
width: calc(100% - 40px);
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 10px;
|
|
|
|
.charts {
|
|
width: 100%;
|
|
height: 260upx;
|
|
margin: 10px 0;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
.name {
|
|
position: absolute;
|
|
width: 100%;
|
|
text-align: center;
|
|
font-size: 56rpx;
|
|
margin: auto;
|
|
color: #4687F9;
|
|
}
|
|
}
|
|
|
|
.title {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.time {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.indexCarList {
|
|
width: calc(100% - 40px);
|
|
margin: 10px;
|
|
padding: 5px 10px;
|
|
background-color: #fff;
|
|
border-radius: 10px;
|
|
|
|
.title {
|
|
color: #000;
|
|
background-color: #f5f5f5 !important;
|
|
border-bottom: 1px solid #d9d9d9;
|
|
padding-left: 10px;
|
|
border-radius: 5px;
|
|
height: 35px;
|
|
display: flex;
|
|
font-weight: bold;
|
|
align-items: center;
|
|
width: calc(100% - 10px);
|
|
font-size: 32upx;
|
|
|
|
.name {
|
|
font-weight: bold;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.right {
|
|
width: 30%;
|
|
color: $textcolor;
|
|
font-size: 32rpx;
|
|
text-align: right;
|
|
margin-top: 5px;
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
|
|
.item3 {
|
|
display: flex;
|
|
background: #fff;
|
|
padding: 0 10px;
|
|
height: 50px;
|
|
font-size: 32upx;
|
|
border-bottom: 1px solid #f7f7f7;
|
|
|
|
.name {
|
|
width: 40%;
|
|
line-height: 50px;
|
|
}
|
|
|
|
.weight {
|
|
width: 60%;
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
justify-content: space-between;
|
|
|
|
view {
|
|
width: 30%;
|
|
text-align: center;
|
|
}
|
|
|
|
.input {
|
|
width: 40%;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
.item3:nth-child(1) {
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
</style> |