提交 1a3f7bc0 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 3c6666a1
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
this.$store.commit('setToken', response.data.TGC) this.$store.commit('setToken', response.data.TGC)
if (this.isWeapp) { if (this.isWeapp) {
wx.miniProgram.postMessage({ data: { token: response.data.TGC } }) wx.miniProgram.postMessage({ data: { token: response.data.TGC } })
wx.miniProgram.navigateBack({ delta }) wx.miniProgram.navigateBack()
return return
} }
if (this.redirectURI) { if (this.redirectURI) {
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
} }
if (Cookies.get('wechat_login_error')) { if (Cookies.get('wechat_login_error')) {
Cookies.remove('wechat_login_error', { domain: '.ezijing.com' }) Cookies.remove('wechat_login_error', { domain: '.ezijing.com' })
wx.miniProgram.navigateBack({ delta: 2 }) wx.miniProgram.navigateBack()
} }
} }
} }
......
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
}, },
onClick(data) { onClick(data) {
const url = data.free const url = data.free
? `/pages/free/item?id=${data.course_id}&chapter_id=${data.id}` ? `/pages/course/free?id=${data.course_id}&chapter_id=${data.id}`
: `/pages/web/index?src=${window.location.origin}/course/learn/${data.id}` : `/pages/web/index?src=${window.location.origin}/course/learn/${data.id}`
wx.miniProgram.navigateTo({ url }) wx.miniProgram.navigateTo({ url })
// this.$router.push({ name: 'courseLearnItem', params: { id: data.id } }) // this.$router.push({ name: 'courseLearnItem', params: { id: data.id } })
......
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
}, },
onClick(data) { onClick(data) {
const url = data.free const url = data.free
? `/pages/free/item?id=${data.course_id}&chapter_id=${data.id}` ? `/pages/course/free?id=${data.course_id}&chapter_id=${data.id}`
: `/pages/course/item?id=${data.course_id}&chapter_id=${data.id}` : `/pages/course/item?id=${data.course_id}&chapter_id=${data.id}`
wx.miniProgram.navigateTo({ url }) wx.miniProgram.navigateTo({ url })
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论