提交 dc0995d4 authored 作者: lihuihui's avatar lihuihui

updata

上级 89cbe37e
......@@ -83,7 +83,7 @@
</div>
</div>
</div>
<div :class="ratioNum == 100 ? 'st-btn cent' : 'st-btn'" v-if="title === '随堂小测' || title === '模拟考试' || title === '知识点测试'">
<div :class="ratioNum == 100 ? 'st-btn cent' : 'st-btn'" v-if="title === '随堂小测' || title === '模拟考试' || title === '知识点小测'">
<div class="btn" @click="go(1)">全部解析</div>
<div class="btn" @click="go(-1)" v-if="ratioNum !== 100">错题解析</div>
</div>
......@@ -118,7 +118,7 @@ export default {
},
mounted() {
if (this.$route.query.course_id || this.$route.query.tag_id) {
this.$route.query.type === 1 || this.$route.query.type === '1' ? this.title = '随堂小测' : this.title = '知识点测试'
this.$route.query.type === 1 || this.$route.query.type === '1' ? this.title = '随堂小测' : this.title = '知识点小测'
} else {
this.$route.query.type === 1 || this.$route.query.type === '1' ? this.title = '能力自测' : this.title = '模拟考试'
}
......
......@@ -12,6 +12,11 @@ export default {
requestData: null
}
},
computed: {
isWeapp() {
return this.$store.state.isWeapp
}
},
metaInfo () {
return {
title: '成绩报告',
......@@ -22,10 +27,19 @@ export default {
},
methods: {
cardChange(e) {
this.$router.push({
path: '/exam/answer',
query: e
})
const path = `/exam/answer?${e}`
if (this.isWeapp) {
const src = encodeURIComponent(`${window.location.origin}${path}`)
wx.miniProgram.navigateTo({
url: `/pages/web/index?src=${src}`
})
} else {
this.$router.push({ path })
}
// this.$router.push({
// path: '/exam/answer',
// query: e
// })
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论