From 7d2ba823e9860bc64a354eefa6b0fbe440cdfe10 Mon Sep 17 00:00:00 2001 From: txz Date: Fri, 22 Jul 2016 16:26:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=8A=A8=E6=80=81=E9=A1=B5ta?= =?UTF-8?q?b=EF=BC=8C=E8=AF=A6=E6=83=85=E8=BF=94=E5=9B=9E=E5=88=B0?= =?UTF-8?q?=E5=AF=B9=E5=BA=94tab=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/wechat/controllers/activity.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/javascripts/wechat/controllers/activity.js b/public/javascripts/wechat/controllers/activity.js index 8847e8e10..3d7ec2251 100644 --- a/public/javascripts/wechat/controllers/activity.js +++ b/public/javascripts/wechat/controllers/activity.js @@ -122,12 +122,14 @@ app.controller('ActivityController', } break; } + rms.save("tab_num",$scope.currentTab); } - $scope.currentTab = 1; + + $scope.currentTab = rms.get('tab_num') || 1; if($scope.activities.length<=0){ - $scope.loadActData(1,0); + $scope.loadActData('tab_num',0); } else { $timeout(function(){ window.scrollTo(0, rms.get("yoffset"));