首页更改
This commit is contained in:
parent
0bad451fd6
commit
62a922d6aa
|
@ -11,15 +11,6 @@
|
||||||
// }]
|
// }]
|
||||||
// },
|
// },
|
||||||
"pages": [
|
"pages": [
|
||||||
{
|
|
||||||
"path" : "pages/login/login",
|
|
||||||
"style" :
|
|
||||||
{
|
|
||||||
"navigationBarTitleText": "验证码登录",
|
|
||||||
"enablePullDownRefresh": false
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path" : "pages/home/home",
|
"path" : "pages/home/home",
|
||||||
"style" :
|
"style" :
|
||||||
|
@ -27,8 +18,16 @@
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path" : "pages/login/login",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationBarTitleText": "验证码登录",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"path" : "pages/my/my",
|
"path" : "pages/my/my",
|
||||||
"style" :
|
"style" :
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<image class="examImage" :src="imageSrc" mode="aspectFit"></image>
|
<image v-if="currentExam.is_pass" class="examImage" :src="imageSrcPass" mode="aspectFit"></image>
|
||||||
<view class="finishText">
|
<image v-else class="examImage" :src="imageSrc" mode="aspectFit"></image>
|
||||||
恭喜您完成考试!
|
<view v-if="currentExam.is_pass" class="finishText">恭喜您完成考试!</view>
|
||||||
</view>
|
<view v-else class="finishText">很遗憾,本次考试您未达标!</view>
|
||||||
<view class="finishText">
|
<view class="finishText">
|
||||||
<view><text>{{currentExam.name}}</text></view>
|
<view><text>{{currentExam.name}}</text></view>
|
||||||
<!-- 练习类型{{paperRecord.paperName}} -->
|
|
||||||
<view>总分:<text>{{currentExam.total_score}}</text>分</view>
|
<view>总分:<text>{{currentExam.total_score}}</text>分</view>
|
||||||
<!-- <view>答对:<text>{{paperRecord.rightQueNum}}</text>题</view> -->
|
|
||||||
<view>得分:<text>{{currentExam.score}}</text> 分 </view>
|
<view>得分:<text>{{currentExam.score}}</text> 分 </view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btnArea">
|
<view class="btnArea">
|
||||||
|
@ -22,7 +20,8 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
imageSrc: '/static/exam/result.png',
|
imageSrcPass: '/static/exam/result.png',
|
||||||
|
imageSrc: '/static/exam/error.png',
|
||||||
currentExam:{}
|
currentExam:{}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -33,7 +32,7 @@
|
||||||
uni.setStorageSync('currentExam', res.data);
|
uni.setStorageSync('currentExam', res.data);
|
||||||
debugger;
|
debugger;
|
||||||
if (res.data.questions_.length>0){
|
if (res.data.questions_.length>0){
|
||||||
uni.redirectTo({
|
uni.navigateTo({
|
||||||
url:'/pages/exam/detail?examrecord='+res.data.id
|
url:'/pages/exam/detail?examrecord='+res.data.id
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -49,13 +48,16 @@
|
||||||
},
|
},
|
||||||
backToHome(){
|
backToHome(){
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:'/pages/index/index'
|
url:'/pages/exam/index'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options){
|
onLoad(options){
|
||||||
this.currentExam = uni.getStorageSync('currentExam');
|
this.currentExam = uni.getStorageSync('currentExam');
|
||||||
},
|
},
|
||||||
|
beforeRouteUpdate(){
|
||||||
|
uni.removeStorageSync('currentExam');
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue