zpj il y a 1 an
Parent
commit
b68379c1ad
3 fichiers modifiés avec 445 ajouts et 423 suppressions
  1. 3 6
      common/js/ajax.js
  2. 6 6
      manifest.json
  3. 436 411
      pages/index/order.vue

+ 3 - 6
common/js/ajax.js

@@ -23,12 +23,9 @@ export const request = (url, method, data,isFinance = false,show = false) => {
 
   //#ifndef H5
 	if(isFinance){
-		  let nodeEnv = process.env.NODE_ENV;
-		  if(nodeEnv === 'development'){
-			  BASE_URL = 'http://testadopted.jhcs888.com/'
-		  }else{
-			  BASE_URL = 'https://adopted.jhcs888.com/'
-		  }
+		BASE_URL = 'https://adopted.jhcs888.com/'
+	}else{
+		BASE_URL ='https://demoapi.jhcs888.com/'
 	}
   //#endif
   

+ 6 - 6
manifest.json

@@ -84,12 +84,12 @@
                         "^/cashierApi" : "cashierApi"
                     }
                 },
-				"/api" : {
-				    // "target" : "https://adopted.jhcs888.com/",
-				    "target" : "http://testadopted.jhcs888.com/",
-				    "changeOrigin" : true,
-				    "secure" : false
-				}
+                "/api" : {
+                    // "target" : "https://adopted.jhcs888.com/",
+                    "target" : "http://testadopted.jhcs888.com/",
+                    "changeOrigin" : true,
+                    "secure" : false
+                }
             }
         }
     }

Fichier diff supprimé car celui-ci est trop grand
+ 436 - 411
pages/index/order.vue


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff