提交 f68321e6 authored 作者: lihuihui's avatar lihuihui
...@@ -57,7 +57,8 @@ export default { ...@@ -57,7 +57,8 @@ export default {
onClick(data) { onClick(data) {
if (this.isTest) { if (this.isTest) {
// 知识点测试 // 知识点测试
const path = `/exam/answer?type=2&tag_id=${data.id}&papersUrl=zy/v2/examination/course-papers` const papersUrl = encodeURIComponent('zy/v2/examination/course-papers')
const path = `/exam/answer?type=2&tag_id=${data.id}&papersUrl=${papersUrl}`
if (this.isWeapp) { if (this.isWeapp) {
wx.miniProgram.navigateTo({ wx.miniProgram.navigateTo({
url: `/pages/web/index?src=${window.location.origin}${path}` url: `/pages/web/index?src=${window.location.origin}${path}`
......
...@@ -65,7 +65,8 @@ export default { ...@@ -65,7 +65,8 @@ export default {
}, },
// 去知识点考试页面 // 去知识点考试页面
toExamPage() { toExamPage() {
const path = `/exam/answer?type=2&tag_id=${this.detail.id}&papersUrl=zy/v2/examination/course-papers` const papersUrl = encodeURIComponent('zy/v2/examination/course-papers')
const path = `/exam/answer?type=2&tag_id=${this.detail.id}&papersUrl=${papersUrl}`
if (this.isWeapp) { if (this.isWeapp) {
wx.miniProgram.navigateTo({ wx.miniProgram.navigateTo({
url: `/pages/web/index?src=${window.location.origin}${path}` url: `/pages/web/index?src=${window.location.origin}${path}`
......
...@@ -74,7 +74,8 @@ export default { ...@@ -74,7 +74,8 @@ export default {
}) })
}, },
onClick({ id }) { onClick({ id }) {
const path = `/exam/answer?type=2&tag_id=${id}&papersUrl=zy/v2/examination/course-papers` const papersUrl = encodeURIComponent('zy/v2/examination/course-papers')
const path = `/exam/answer?type=2&tag_id=${id}&papersUrl=${papersUrl}`
if (this.isWeapp) { if (this.isWeapp) {
if (this.isTest) { if (this.isTest) {
// 知识点测试 // 知识点测试
......
...@@ -53,7 +53,8 @@ export default { ...@@ -53,7 +53,8 @@ export default {
onClick(data) { onClick(data) {
if (this.isTest) { if (this.isTest) {
// 知识点测试 // 知识点测试
const path = `/exam/answer?type=2&tag_id=${data.id}&papersUrl=zy/v2/examination/course-papers` const papersUrl = encodeURIComponent('zy/v2/examination/course-papers')
const path = `/exam/answer?type=2&tag_id=${data.id}&papersUrl=${papersUrl}`
if (this.isWeapp) { if (this.isWeapp) {
wx.miniProgram.navigateTo({ wx.miniProgram.navigateTo({
url: `/pages/web/index?src=${window.location.origin}${path}` url: `/pages/web/index?src=${window.location.origin}${path}`
......
...@@ -88,6 +88,7 @@ export default { ...@@ -88,6 +88,7 @@ export default {
// 绑定微信并登录 // 绑定微信并登录
bindWechat(data) { bindWechat(data) {
const params = Object.assign({}, this.ruleForm, data, { const params = Object.assign({}, this.ruleForm, data, {
identity: 'transport',
unionid: this.unionid, unionid: this.unionid,
code: data.password code: data.password
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论