|
|
|
@ -59,7 +59,7 @@ app.controller('ClassListController', ['$scope', 'config', 'auth', '$http', '$lo
|
|
|
|
|
}).then(function (response) {
|
|
|
|
|
console.log(response.data);
|
|
|
|
|
if (response.data.status != 0) {
|
|
|
|
|
vm.alertService_1.showMessage('错误', response.data.message);
|
|
|
|
|
vm.alertService_1.showMessage('提示', response.data.message);
|
|
|
|
|
} else {
|
|
|
|
|
vm.alertService_1.showMessage('提示', '加入课程成功');
|
|
|
|
|
vm.alertService_3.invite = "";
|
|
|
|
@ -68,9 +68,8 @@ app.controller('ClassListController', ['$scope', 'config', 'auth', '$http', '$lo
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
if(vm.alertService_3.invite){
|
|
|
|
|
vm.alertService_1.showMessage('错误', '邀请码格式不正确');
|
|
|
|
|
vm.alertService_1.showMessage('提示', '邀请码格式不正确');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|