diff --git a/public/images/create_records/cloud_05.jpg b/public/images/create_records/cloud_05.jpg index 7d95c9f..c2096fd 100644 Binary files a/public/images/create_records/cloud_05.jpg and b/public/images/create_records/cloud_05.jpg differ diff --git a/public/js/record/re_checkRecord.js b/public/js/record/re_checkRecord.js index c973cb8..56a48f1 100644 --- a/public/js/record/re_checkRecord.js +++ b/public/js/record/re_checkRecord.js @@ -5,7 +5,9 @@ yinjiApp.controller('checkRecordCtrl', function($scope,$http){ $scope.records = {}; $scope.recordDetail = {}; + $scope.ifShow = false; var tempDetail = {}; + //分页 $scope.start = 0; $scope.showLimit = 10; @@ -14,16 +16,18 @@ yinjiApp.controller('checkRecordCtrl', $http.get("/album_create_records/select") .success(function (response) { - $scope.records = response; - - for(var i=0;i<$scope.records.length;i++){ - var paths=$scope.records[i].picPath; - var tmparrPath=paths.split(';'); - var arrPath=new Array(tmparrPath.length-1); - for(var j=0;j<(tmparrPath.length-1);j++){ - arrPath[j]=tmparrPath[j]; + if (response !=null && response.length > 0){ + $scope.ifShow = true; + $scope.records = response + for(var i=0;i<$scope.records.length;i++){ + var paths=$scope.records[i].picPath; + var tmparrPath=paths.split(';'); + var arrPath=new Array(tmparrPath.length-1); + for(var j=0;j<(tmparrPath.length-1);j++){ + arrPath[j]=tmparrPath[j]; + } + $scope.records[i].arr_path=arrPath; } - $scope.records[i].arr_path=arrPath; } }); diff --git a/resources/views/create_records/album_records.blade.php b/resources/views/create_records/album_records.blade.php index 17c7405..b2100d2 100644 --- a/resources/views/create_records/album_records.blade.php +++ b/resources/views/create_records/album_records.blade.php @@ -19,6 +19,9 @@
++ 您目前还没有任何记录哦,单击添加,添加您的第一条记录吧~ +