Ver Código Fonte

修改 官网首页 ajax请求方式

zhangshuangnan 7 anos atrás
pai
commit
68a1c4f3b2
1 arquivos alterados com 8 adições e 14 exclusões
  1. 8 14
      WebSite/index.html

+ 8 - 14
WebSite/index.html

18
 				width: 100%;
18
 				width: 100%;
19
 				height: 184px;
19
 				height: 184px;
20
 			}
20
 			}
21
-			#jobTypeBar{
22
-				width: 100%;
23
-				height: 184px;
24
-			}
25
 			#acceptanceBar{
21
 			#acceptanceBar{
26
 				width: 100%;
22
 				width: 100%;
27
 				height: 284px;
23
 				height: 284px;
277
 										</div>
273
 										</div>
278
 
274
 
279
 										<div id="jobTypePie"></div>
275
 										<div id="jobTypePie"></div>
280
-										<div id="jobTypeBar"></div>
281
-									<!--<div id="acceptanceBar" style="height: 284px;"></div>-->
282
 									<div id="acceptanceBar"></div>
276
 									<div id="acceptanceBar"></div>
283
 									</div>
277
 									</div>
284
 								</div>
278
 								</div>
648
 			//图片轮播
642
 			//图片轮播
649
 			function Image() {
643
 			function Image() {
650
 				$.ajax({
644
 				$.ajax({
651
-					type:"post",
645
+					type:"get",
652
 					url:huayi.config.callcenter_url + "Web/GetTopImgNewsList",
646
 					url:huayi.config.callcenter_url + "Web/GetTopImgNewsList",
653
 					async:true,
647
 					async:true,
654
 					cache:false,
648
 					cache:false,
685
 			//通知通告
679
 			//通知通告
686
 			function Announcemen() {
680
 			function Announcemen() {
687
 				$.ajax({
681
 				$.ajax({
688
-					type:"post",
682
+					type:"get",
689
 					url:huayi.config.callcenter_url + "Web/GetTopNewsList",
683
 					url:huayi.config.callcenter_url + "Web/GetTopNewsList",
690
 					async:true,
684
 					async:true,
691
 					dataType:'json',
685
 					dataType:'json',
736
 			//工作动态
730
 			//工作动态
737
 			function Work() {
731
 			function Work() {
738
 				$.ajax({
732
 				$.ajax({
739
-					type:"post",
733
+					type:"get",
740
 					url:huayi.config.callcenter_url + "Web/GetTopNewsList",
734
 					url:huayi.config.callcenter_url + "Web/GetTopNewsList",
741
 					async:true,
735
 					async:true,
742
 					dataType:'json',
736
 					dataType:'json',
767
 			//走进商丘图片
761
 			//走进商丘图片
768
 			function IMG() {
762
 			function IMG() {
769
 				$.ajax({
763
 				$.ajax({
770
-					type:"post",
764
+					type:"get",
771
 					url:huayi.config.callcenter_url + "Web/GetTopNewsList",
765
 					url:huayi.config.callcenter_url + "Web/GetTopNewsList",
772
 					async:true,
766
 					async:true,
773
 					dataType:'json',
767
 					dataType:'json',
805
 			//政策法规
799
 			//政策法规
806
 			function Policy() {
800
 			function Policy() {
807
 				$.ajax({
801
 				$.ajax({
808
-					type:"post",
802
+					type:"get",
809
 					url:huayi.config.callcenter_url + "Web/GetTopNewsList",
803
 					url:huayi.config.callcenter_url + "Web/GetTopNewsList",
810
 					async:true,
804
 					async:true,
811
 					cache:false,
805
 					cache:false,
837
 			//民情速递
831
 			//民情速递
838
 			function People() {
832
 			function People() {
839
 				$.ajax({
833
 				$.ajax({
840
-					type:"post",
834
+					type:"get",
841
 					url:huayi.config.callcenter_url + "Web/GetTopNewsList",
835
 					url:huayi.config.callcenter_url + "Web/GetTopNewsList",
842
 					async:true,
836
 					async:true,
843
 					cache:false,
837
 					cache:false,
868
 			function statistics() {
862
 			function statistics() {
869
 				var totalCount = 0;
863
 				var totalCount = 0;
870
 				$.ajax({
864
 				$.ajax({
871
-					type:"post",
865
+					type:"get",
872
 					url:huayi.config.callcenter_url + "web/GetWebSourceCount",
866
 					url:huayi.config.callcenter_url + "web/GetWebSourceCount",
873
 					async:true,
867
 					async:true,
874
 					cache:false,
868
 					cache:false,
928
 			//曝光台
922
 			//曝光台
929
 			function Exposure() {
923
 			function Exposure() {
930
 				$.ajax({
924
 				$.ajax({
931
-					type:"post",
925
+					type:"get",
932
 					url:huayi.config.callcenter_url + "/Web/GetTopNewsList",
926
 					url:huayi.config.callcenter_url + "/Web/GetTopNewsList",
933
 					async:true,
927
 					async:true,
934
 					cache:false,
928
 					cache:false,