|
@ -29,16 +29,32 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { imgUrl } from '@/config/site.config' |
|
|
import { imgUrl } from '@/config/site.config' |
|
|
|
|
|
import { getStudentProcess } from '@/config/api.js' |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
imgUrl: imgUrl+'carlearTimeBg.png', |
|
|
imgUrl: imgUrl+'carlearTimeBg.png', |
|
|
backgroundSize: '100% 100%', |
|
|
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: '科目三'}, |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|