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

bug修改

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