Commit 29b8cf90 authored by agping's avatar agping

改变图片域名

parent 4f9ada3f
...@@ -857,7 +857,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -857,7 +857,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
formData.append('image', _this[0].files[0]); formData.append('image', _this[0].files[0]);
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: '/index/uploadImg', url: ServerHostImage + '/index/uploadImg',
data: formData, data: formData,
dataType: 'json', dataType: 'json',
contentType: false, contentType: false,
......
...@@ -247,6 +247,7 @@ function hideStr(str){ ...@@ -247,6 +247,7 @@ function hideStr(str){
return str; return str;
} }
} }
//进场的经纬度 和 进场地址 //进场的经纬度 和 进场地址
function adressDeal(str1,str2,address) { function adressDeal(str1,str2,address) {
if (address != undefined && address != '') { if (address != undefined && address != '') {
...@@ -358,4 +359,9 @@ function getTimeStamp(date){ ...@@ -358,4 +359,9 @@ function getTimeStamp(date){
var oDate = new Date(date); var oDate = new Date(date);
var time_cha=oDate.getTime(); var time_cha=oDate.getTime();
return time_cha; return time_cha;
};
//处理图片域名 测试 正式
let ServerHostImage = 'http://images.pre2.tonglianjituan.com';
if(location.origin === 'https://api.tonglianjituan.com') {
ServerHostImage = 'http://images.tonglianjituan.com';
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment