From 11132d345914c00d59b32ea2d1521e0bc69d6ba9 Mon Sep 17 00:00:00 2001 From: yuanke <249218296@qq.com> Date: Thu, 22 Sep 2016 10:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=A0=E5=85=A5=E7=8F=AD?= =?UTF-8?q?=E7=BA=A7=E6=97=B6=E9=80=89=E6=8B=A9=E5=88=86=E7=8F=AD=E5=90=8E?= =?UTF-8?q?=E8=B7=B3=E5=85=A5=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/wechat/controllers/join_classgroup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/javascripts/wechat/controllers/join_classgroup.js b/public/javascripts/wechat/controllers/join_classgroup.js index 4812ca767..a63744e3c 100644 --- a/public/javascripts/wechat/controllers/join_classgroup.js +++ b/public/javascripts/wechat/controllers/join_classgroup.js @@ -43,7 +43,8 @@ app.controller('JoinClassGroupController', ['$scope', '$http', 'auth', 'config', vm.cancel = function(){ - $location.path("/class").search({id: course_id,tag:1}); + rms.save('syllabuses',[]); + $location.path("/class_list"); }; vm.confirm = function(){ @@ -66,10 +67,12 @@ app.controller('JoinClassGroupController', ['$scope', '$http', 'auth', 'config', console.log(response); if(response.data.status == 0){ vm.alertService.showMessage('提示', "选择分班成功!",function(){ + rms.save('syllabuses',[]); $location.path("/class_list"); }); } else { vm.alertService.showMessage('提示', response.data.message,function(){ + rms.save('syllabuses',[]); $location.path("/class_list"); }); }