Pārlūkot izejas kodu

域名配置写活+新闻排序更改

ming 1 gadu atpakaļ
vecāks
revīzija
281b77704b
2 mainītis faili ar 7 papildinājumiem un 2 dzēšanām
  1. 6 1
      assets/js/commonVue.js
  2. 1 1
      assets/js/settinginfo.js

+ 6 - 1
assets/js/commonVue.js

@@ -181,6 +181,11 @@ var app = new Vue({
     //获取内容
     getArticalData(requestParams, type) {
       var _this=this
+      if( window.location.pathname == '/news/index.html'){
+        _this.requestParams.order = ''
+      }
+
+      
       $.ajax({
         type: 'GET',
         dataType: 'json',
@@ -189,7 +194,7 @@ var app = new Vue({
       }).done(function (res) {
         var aa
         var bb
-
+        
         if(type==1){
          bb=res.data.records
         }else{

+ 1 - 1
assets/js/settinginfo.js

@@ -1,7 +1,7 @@
 window.FQDN = 'http://aiot.usky.cn:8089/USKYOW/index.php/index/';
 
 //请求域名写活
-window.FQDN2 = window.location.host.indexOf('172.16.120.165')==-1?'http://gateway.usky.cn/prod-api/service-website/':'http://172.16.120.165:13200/prod-api/service-website/';  
+window.FQDN2 = (window.location.host.indexOf('172.16.120.165')>-1||window.location.host.indexOf('127.0.0.1')>-1)?'http://172.16.120.165:13200/prod-api/service-website/':'http://gateway.usky.cn/prod-api/service-website/';  
 
 //本地调试域名
 // window.FQDN2 = 'http://172.16.120.165:13200/prod-api/service-website/';