|
@@ -221,31 +221,32 @@ export default {
|
|
|
})).then((res) => {
|
|
|
let result = res.data
|
|
|
if(result.code == 200) {
|
|
|
- Dialog.alert({
|
|
|
- title: '提示',
|
|
|
- message: '恭喜您,已报名成功',
|
|
|
- confirmButtonColor: '#269a93'
|
|
|
- }).then(() => {
|
|
|
- // 判断是否开启缴费
|
|
|
- if(params.status == 2) {
|
|
|
- this.$router.push({
|
|
|
- path: 'home',
|
|
|
- query: {
|
|
|
- branchId: params.branchId,
|
|
|
- stuId: result.data,
|
|
|
- classId: params.classId,
|
|
|
- cityId: params.cityId,
|
|
|
- schoolId: params.schoolId
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- // 跳转到登录页面
|
|
|
- this.$router.push({ path: 'login', query: {
|
|
|
- schoolId: params.schoolId, // 学校编号
|
|
|
- cityId: params.cityId // 城市编号
|
|
|
- }})
|
|
|
- }
|
|
|
- })
|
|
|
+ // Dialog.alert({
|
|
|
+ // title: '提示',
|
|
|
+ // message: '恭喜您,已报名成功',
|
|
|
+ // confirmButtonColor: '#269a93'
|
|
|
+ // }).then(() => {
|
|
|
+
|
|
|
+ // })
|
|
|
+ // 判断是否开启缴费
|
|
|
+ if(params.status == 2) {
|
|
|
+ this.$router.push({
|
|
|
+ path: 'home',
|
|
|
+ query: {
|
|
|
+ branchId: params.branchId,
|
|
|
+ stuId: result.data,
|
|
|
+ classId: params.classId,
|
|
|
+ cityId: params.cityId,
|
|
|
+ schoolId: params.schoolId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ // 跳转到登录页面
|
|
|
+ this.$router.push({ path: 'login', query: {
|
|
|
+ schoolId: params.schoolId, // 学校编号
|
|
|
+ cityId: params.cityId // 城市编号
|
|
|
+ }})
|
|
|
+ }
|
|
|
} else {
|
|
|
Toast(result.msg)
|
|
|
}
|