Parcourir la source

'外网和本地改成一个'

qzy il y a 11 mois
Parent
commit
997c24ccf3
2 fichiers modifiés avec 11 ajouts et 2 suppressions
  1. 6 0
      sa-view/listing-management/listing-management-order.html
  2. 5 2
      static/sa.js

+ 6 - 0
sa-view/listing-management/listing-management-order.html

@@ -74,6 +74,12 @@
 							<div v-else>未转售</div>
 						</template>
 					</sa-td>
+					<sa-td name="销售状态" prop="resaleStatus" >
+						<template slot-scope="s">
+							<div v-if="s.row.purchaserId">已销售</div>
+							<div v-else>销售种</div>
+						</template>
+					</sa-td>
 					<el-table-column label="操作" fixed="right"  width="100px">
 						<template slot-scope="s">
 							<div>

+ 5 - 2
static/sa.js

@@ -7,9 +7,11 @@ var sa = {
 
 // ===========================  当前环境配置  =======================================
 (function() {
+	let host=window.location.host;
+	let app_url= host.indexOf('40')!==-1?'http://172.17.11.40:8018':'http://hs-server.tbgjhc.top:8018';
 	// 公司开发环境
 	var cfg_dev = {
-		 api_url: 'http://192.168.3.15:8080', // 所有ajax请求接口父地址
+		api_url: 'http://192.168.3.15:8080', // 所有ajax请求接口父地址
 		web_url: 'http://www.baidu.com' // 此项目前台地址 (此配置项非必须)
 	}
 	// 服务器测试环境
@@ -17,9 +19,10 @@ var sa = {
 		api_url: 'http://hs-server.aseanbusiness.cn',
 		web_url: 'http://www.baidu.com'
 	}
+	
 	// 正式生产环境
 	var cfg_prod = {
-		api_url: 'http://hs-server.tbgjhc.top:8018',
+		api_url:app_url,
 		web_url: 'http://www.baidu.com'
 	}
 	sa.cfg = cfg_dev; // 最终环境 , 上线前请选择正确的环境