Browse Source

预加载状态

linehang 6 years ago
parent
commit
7c1ee8ec31
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/article/html/article.html

+ 4 - 0
app/article/html/article.html

@ -164,7 +164,9 @@
				            firstlevelId: firstlevelId || null,
				            secondLevelId: null
			            }
			            var loadding = top.layer.load(0, {shade: false}); //0代表加载的风格,支持0-2
			           	jbscAPI.getCategoryList(num, firstlevelId).then(function(res){
			           		top.layer.close(loadding);
				            if (res.status == 200) {
				                if (num == 1) {
				                    vm.levelArr1 = res.data
@ -178,7 +180,9 @@
			        },
			        queryArticlePcList:function(obj) {
			        	var vm=this;
			        	var loadding = top.layer.load(0, {shade: false}); //0代表加载的风格,支持0-2
			            jbscAPI.queryArticlePcList(obj).then(function(res){
			            	top.layer.close(loadding);
				            if (res.status === 200) {
				            	console.log(res)
				                vm.articleList = res.data.aaData