|
|
@ -29,16 +29,32 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import { imgUrl } from '@/config/site.config' |
|
|
|
import { getStudentProcess } from '@/config/api.js' |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
imgUrl: imgUrl+'carlearTimeBg.png', |
|
|
|
backgroundSize: '100% 100%', |
|
|
|
list: [ |
|
|
|
{total: 1024, time: 236, text: '模拟器'}, |
|
|
|
{total: 1024, time: 236, text: '科目一'}, |
|
|
|
{total: 1024, time: 236, text: '科目二'}, |
|
|
|
{total: 1024, time: 236, text: '科目三'}, |
|
|
|
list: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
this.getStudentProcessFn() |
|
|
|
}, |
|
|
|
onPullDownRefresh() { |
|
|
|
this.getStudentProcessFn().then((res)=>{ |
|
|
|
uni.stopPullDownRefresh() |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
async getStudentProcessFn() { |
|
|
|
const {data: res} = await getStudentProcess({studentId: this.studentId}) |
|
|
|
console.log('基础不劳') |
|
|
|
this.list = [ |
|
|
|
{total: res.simulateTotalTime, time: res.simulateValidTtime, text: '模拟器'}, |
|
|
|
{total: res.subjectOneTotalTime, time: res.subjectOneValidTtime, text: '科目一'}, |
|
|
|
{total: res.subjectTwoTotalTime, time: res.subjectTwoValidTtime, text: '科目二'}, |
|
|
|
{total: res.subjectThreeTotalTime, time: res.subjectOneValidTtime, text: '科目三'}, |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|