提交 0bfa917e authored 作者: lihuihui's avatar lihuihui

updata

上级 7472523a
...@@ -195,23 +195,23 @@ export default { ...@@ -195,23 +195,23 @@ export default {
}) })
}, },
goAbilityExam(n) { goAbilityExam(n) {
const path = `/exam/answer?type=1&is_create=${n}&papersUrl=zy/v2/examination/examination-papers` // const path = `/exam/answer?type=1&is_create=${n}&papersUrl=zy/v2/examination/examination-papers`
if (this.isWeapp) { // if (this.isWeapp) {
const src = encodeURIComponent(`${window.location.origin}${path}`) // const src = encodeURIComponent(`${window.location.origin}${path}`)
wx.miniProgram.navigateTo({ // wx.miniProgram.navigateTo({
url: `/pages/web/index?src=${src}` // url: `/pages/web/index?src=${src}`
})
} else {
this.$router.push({ path })
}
// this.$router.push({
// path: '/exam/answer',
// query: {
// type: 1,
// is_create: n,
// papersUrl: 'zy/v2/examination/examination-papers'
// }
// }) // })
// } else {
// this.$router.push({ path })
// }
this.$router.push({
path: '/exam/answer',
query: {
type: 1,
is_create: n,
papersUrl: 'zy/v2/examination/examination-papers'
}
})
}, },
startExam(event, id, cId, isCreate) { startExam(event, id, cId, isCreate) {
// const path = `/exam/answer?type=1&is_create=${isCreate}&course_id=${cId}&chapter_id=${id}&papersUrl=zy/v2/examination/course-papers` // const path = `/exam/answer?type=1&is_create=${isCreate}&course_id=${cId}&chapter_id=${id}&papersUrl=zy/v2/examination/course-papers`
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论