|
@@ -401,7 +401,21 @@ export default {
|
|
|
this.loadingOrderStatus = true
|
|
|
this.loadingOrderText = result.msg
|
|
|
this.paymentMethods()
|
|
|
- } else if(result.code == 100) {
|
|
|
+ } else if(result.code == 201) { // 0元购成功提示
|
|
|
+ Dialog.alert({
|
|
|
+ title: '提示',
|
|
|
+ message: '报名成功',
|
|
|
+ confirmButtonColor: '#269a93'
|
|
|
+ }).then(() => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/login',
|
|
|
+ query: {
|
|
|
+ cityId: params.cityId,
|
|
|
+ schoolId: params.schoolId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ } else if(result.code == 100) { // 订单已经存在继续支付
|
|
|
Dialog.confirm({
|
|
|
title: '提示',
|
|
|
message: result.msg,
|
|
@@ -445,6 +459,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
let that = this
|
|
|
+ let params = this.$route.query
|
|
|
that.paymentTimers = setInterval(() => {
|
|
|
that.paymentPostCount++
|
|
|
if(that.paymentPostCount >= 30) {
|
|
@@ -455,6 +470,20 @@ export default {
|
|
|
if(result.code == 403) {
|
|
|
that.loadingOrderStatus = true
|
|
|
that.loadingOrderText = result.msg
|
|
|
+ } else if(result.code == 201) {
|
|
|
+ Dialog.alert({
|
|
|
+ title: '提示',
|
|
|
+ message: '报名成功',
|
|
|
+ confirmButtonColor: '#269a93'
|
|
|
+ }).then(() => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/login',
|
|
|
+ query: {
|
|
|
+ cityId: params.cityId,
|
|
|
+ schoolId: params.schoolId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
} else {
|
|
|
clearInterval(that.paymentTimers)
|
|
|
that.loadingOrderStatus = false
|