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

bug修改

上级 b2a9acd4
...@@ -182,26 +182,26 @@ export default { ...@@ -182,26 +182,26 @@ export default {
} }
}, },
methods: { methods: {
async goVip() { goVip() {
const isLogin = await this.$store.dispatch('checkLogin') // const isLogin = await this.$store.dispatch('checkLogin')
if (!isLogin) { // if (!isLogin) {
if (this.isWeapp) { // if (this.isWeapp) {
// 小程序 // // 小程序
wx.miniProgram.navigateTo({ // wx.miniProgram.navigateTo({
url: `/pages/login/index?redirect_uri=${encodeURIComponent( // url: `/pages/login/index?redirect_uri=${encodeURIComponent(
`/exam/result?type=${this.$route.query.type}&is_create=0&papersUrl=${this.$route.query.papersUrl}` // `/exam/result?type=${this.$route.query.type}&is_create=0&papersUrl=${this.$route.query.papersUrl}`
)}` // )}`
}) // })
} else { // } else {
this.$router.push({ // this.$router.push({
path: '/login', // path: '/login',
query: { // query: {
redirect_uri: `/exam/result?type=${this.$route.query.type}&is_create=0&papersUrl=${this.$route.query.papersUrl}` // redirect_uri: `/exam/result?type=${this.$route.query.type}&is_create=0&papersUrl=${this.$route.query.papersUrl}`
} // }
}) // })
} // }
return false // return false
} // }
this.$router.push({ this.$router.push({
path: '/payPage' path: '/payPage'
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论