CloudFolderListCtrl.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. angular.module('push')
  2. .controller('CloudFolderListCtrl', function ($scope, CloudFolderService, $timeout, ModelService) {
  3. if($scope.app){
  4. $scope.setStatusBar(0);
  5. }
  6. $scope.search = {searchkey: ""};
  7. //初始化云文件夹列表
  8. var initCloudFolderList = function () {
  9. CloudFolderService.getCloudFolderList().then(function (response) {
  10. $scope.cloudFolderList = response.folderlist;
  11. ModelService.setLocalCloudFolderList($scope.cloudFolderList);
  12. }, function () {
  13. })
  14. };
  15. initCloudFolderList();
  16. //新建云文件夹
  17. $scope.showCloudFolder = function () {
  18. $scope.go("cloudFolderCreate")
  19. };
  20. //查询云文件夹
  21. $scope.showCloudContent = function (cloudFolder) {
  22. $scope.go("cloudFolderDetail", {tempclofol: cloudFolder})
  23. };
  24. //跳转云文件夹废纸篓
  25. $scope.goWastePaper = function () {
  26. };
  27. //查找分类
  28. $scope.searchClassification = function () {
  29. $timeout(function () {
  30. $(".searchClassification").css("width", "88%");
  31. $(".category_search_icon").css("left", "5%");
  32. $(".new_category_search").animate({paddingLeft: "10%"});
  33. $(".new_category_search").css("text-align", "left");
  34. $(".searchClassDelete").css("display", "inline-block");
  35. }, 100);
  36. };
  37. //取消查询
  38. $scope.searchClassDelete = function () {
  39. $(".searchClassification").css("width", "100%");
  40. $(".category_search_icon").animate({left: "39%"});
  41. $(".new_category_search").animate({paddingLeft: "0%"});
  42. $(".new_category_search").css("text-align", "center");
  43. $(".searchClassDelete").css("display", "none");
  44. $scope.search.searchkey = "";
  45. };
  46. });