Commit d3f71e57038a73248adfd539e63e0030d07425e5

Authored by wb
1 parent fef2002b

js/index.js
@@ -121,12 +121,22 @@ function homePage(){ @@ -121,12 +121,22 @@ function homePage(){
121 $('#total_api_no').text(res.apiCount); 121 $('#total_api_no').text(res.apiCount);
122 $('#total_api_hy__no').text(res.apiHYCount) 122 $('#total_api_hy__no').text(res.apiHYCount)
123 $.each(res.apiListDTO, function (index, domEle) { 123 $.each(res.apiListDTO, function (index, domEle) {
124 - var str = '<li>'; 124 + if(index<3){
  125 + var str = '<li>';
125 str += '<div></div>'; 126 str += '<div></div>';
126 - str += '<div title="任你停微信支付接口">'+domEle.uddi+'</div>'; 127 + str += '<div title="'+domEle.uddi+'">'+domEle.uddi+'</div>';
  128 + str += '<div>'+domEle.apiCount+'</div>';
  129 + str += '</li>';
  130 + $('.ranking-list').append(str)
  131 + }else{
  132 + var str = '<li>';
  133 + str += '<div>'+(index+1)+'</div>';
  134 + str += '<div title="'+domEle.uddi+'">'+domEle.uddi+'</div>';
127 str += '<div>'+domEle.apiCount+'</div>'; 135 str += '<div>'+domEle.apiCount+'</div>';
128 str += '</li>'; 136 str += '</li>';
129 - $('.ranking-list').append(str) 137 + $('.ranking-list').append(str)
  138 + }
  139 +
130 }); 140 });
131 } 141 }
132 }); 142 });
js/pdalatform.js
@@ -122,12 +122,21 @@ function homePage(){ @@ -122,12 +122,21 @@ function homePage(){
122 $('#total_api_no_pda').text(res.apiCount); 122 $('#total_api_no_pda').text(res.apiCount);
123 $('#total_api_hy__no_pda').text(res.apiHYCount) 123 $('#total_api_hy__no_pda').text(res.apiHYCount)
124 $.each(res.apiListDTO, function (index, domEle) { 124 $.each(res.apiListDTO, function (index, domEle) {
125 - var str = '<li>'; 125 + if(index<3){
  126 + var str = '<li>';
126 str += '<div></div>'; 127 str += '<div></div>';
127 - str += '<div title="任你停微信支付接口">'+domEle.uddi+'</div>'; 128 + str += '<div title="'+domEle.uddi+'">'+domEle.uddi+'</div>';
  129 + str += '<div>'+domEle.apiCount+'</div>';
  130 + str += '</li>';
  131 + $('.ranking-list').append(str)
  132 + }else{
  133 + var str = '<li>';
  134 + str += '<div>'+(index+1)+'</div>';
  135 + str += '<div title="'+domEle.uddi+'">'+domEle.uddi+'</div>';
128 str += '<div>'+domEle.apiCount+'</div>'; 136 str += '<div>'+domEle.apiCount+'</div>';
129 str += '</li>'; 137 str += '</li>';
130 - $('.ranking-list').append(str) 138 + $('.ranking-list').append(str)
  139 + }
131 }); 140 });
132 } 141 }
133 }); 142 });
js/unit.js
@@ -19,9 +19,9 @@ sysComm = { @@ -19,9 +19,9 @@ sysComm = {
19 // var authUrl = 'http://sys.service.rnting.com/';// 鉴权URL公用地址 19 // var authUrl = 'http://sys.service.rnting.com/';// 鉴权URL公用地址
20 20
21 //61环境,别删 21 //61环境,别删
22 -var baseUrl = 'http://localhost:8099/';// url公用地址  
23 -var parkcloudbaseUrl = 'http://localhost:8099/';// url公用地址  
24 -var authUrl = 'http://localhost:8099/';// 鉴权URL公用地址 22 +var baseUrl = 'http://61.177.139.228:18090/';// url公用地址
  23 +var baseParkUrl = 'http://61.177.139.228:18090/';// url公用地址
  24 +var authUrl = 'http://61.177.139.228:18090/';// 鉴权URL公用地址
25 25
26 26
27 var dataUrl = dataUrl || {}; 27 var dataUrl = dataUrl || {};
js/wechatlatform.js
@@ -122,12 +122,21 @@ function homePage(){ @@ -122,12 +122,21 @@ function homePage(){
122 $('#total_api_no_wx').text(res.apiCount); 122 $('#total_api_no_wx').text(res.apiCount);
123 $('#total_api_hy__no_wx').text(res.apiHYCount) 123 $('#total_api_hy__no_wx').text(res.apiHYCount)
124 $.each(res.apiListDTO, function (index, domEle) { 124 $.each(res.apiListDTO, function (index, domEle) {
125 - var str = '<li>'; 125 + if(index<3){
  126 + var str = '<li>';
126 str += '<div></div>'; 127 str += '<div></div>';
127 - str += '<div title="任你停微信支付接口">'+domEle.uddi+'</div>'; 128 + str += '<div title="'+domEle.uddi+'">'+domEle.uddi+'</div>';
  129 + str += '<div>'+domEle.apiCount+'</div>';
  130 + str += '</li>';
  131 + $('.ranking-list').append(str)
  132 + }else{
  133 + var str = '<li>';
  134 + str += '<div>'+(index+1)+'</div>';
  135 + str += '<div title="'+domEle.uddi+'">'+domEle.uddi+'</div>';
128 str += '<div>'+domEle.apiCount+'</div>'; 136 str += '<div>'+domEle.apiCount+'</div>';
129 str += '</li>'; 137 str += '</li>';
130 - $('.ranking-list').append(str) 138 + $('.ranking-list').append(str)
  139 + }
131 }); 140 });
132 } 141 }
133 }); 142 });
pdalatform.html
@@ -83,11 +83,6 @@ @@ -83,11 +83,6 @@
83 <span>调用排行榜</span> 83 <span>调用排行榜</span>
84 </div> 84 </div>
85 <ul class="ranking-list"> 85 <ul class="ranking-list">
86 - <li>  
87 - <div>9</div>  
88 - <div title="PDA支付接口">PDA支付接口PDA支付接口</div>  
89 - <div>9</div>  
90 - </li>  
91 </ul> 86 </ul>
92 </div> 87 </div>
93 </div> 88 </div>