提交 566ac998 编写于 作者: guangjun.yang's avatar guangjun.yang

Merge branch 'dev-purchase-0901' of...

Merge branch 'dev-purchase-0901' of http://192.168.110.53/com.pica.cloud.education.frontend/pica-professional-exam into dev-purchase-0901

* 'dev-purchase-0901' of http://192.168.110.53/com.pica.cloud.education.frontend/pica-professional-exam:
  未登录清除用户信息
  授权确认也关闭弹窗
  修改课程页跳转
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
this.$store.dispatch('goLogin'); this.$store.dispatch('goLogin');
return; return;
} }
this.$toast(this.hidePpt ? '前往App购买查看' : '购买/激活后可查看课件') this.$toast(this.hidePpt ? '请前往App查看' : '购买/激活后可查看课件')
} }
box.appendChild(cover); box.appendChild(cover);
} }
......
...@@ -306,7 +306,7 @@ export default { ...@@ -306,7 +306,7 @@ export default {
} }
}, },
btnClick1() { btnClick1() {
this.$router.push({ path: '/goods-detail', query: { goodsId: this.goodsId, projectId: this.projectId, returnUrl: encodeURIComponent(location.href + '&projectId=' + projectId) } }) this.$router.push({ path: '/goods-detail', query: { goodsId: this.goodsId, projectId: this.projectId, returnUrl: encodeURIComponent(location.href + '&projectId=' + this.projectId) } })
}, },
// 折叠、展开目录 // 折叠、展开目录
onToggle(index) { onToggle(index) {
......
...@@ -285,9 +285,8 @@ export default { ...@@ -285,9 +285,8 @@ export default {
handlerAction(type) { handlerAction(type) {
if (type === 2) { if (type === 2) {
wxOauth(); wxOauth();
} else {
this.isShowDialog = false;
} }
this.isShowDialog = false;
}, },
// 创建订单 // 创建订单
createOrder() { createOrder() {
...@@ -338,6 +337,9 @@ export default { ...@@ -338,6 +337,9 @@ export default {
} else { } else {
this.$toast(res.message); this.$toast(res.message);
this.showLoading = false; this.showLoading = false;
if (res.code === "200006") {
this.$store.dispatch('logout')
}
} }
}).catch(() => { }).catch(() => {
this.showLoading = false; this.showLoading = false;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册