Commit 650ae2f7 authored by agping's avatar agping

1

parent 29b8cf90
...@@ -74,7 +74,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -74,7 +74,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: ServerHostImageLiu + '/index/uploadImg',
data: formData, data: formData,
dataType: 'json', dataType: 'json',
contentType: false, contentType: false,
...@@ -111,7 +111,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -111,7 +111,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: ServerHostImageLiu + '/index/uploadImg',
data: formData, data: formData,
dataType: 'json', dataType: 'json',
contentType: false, contentType: false,
......
...@@ -361,7 +361,7 @@ function getTimeStamp(date){ ...@@ -361,7 +361,7 @@ function getTimeStamp(date){
return time_cha; return time_cha;
}; };
//处理图片域名 测试 正式 //处理图片域名 测试 正式
let ServerHostImage = 'http://images.pre2.tonglianjituan.com'; let ServerHostImageLiu = 'http://images.pre2.tonglianjituan.com';
if(location.origin === 'https://api.tonglianjituan.com') { if(location.origin === 'https://api.tonglianjituan.com') {
ServerHostImage = 'http://images.tonglianjituan.com'; ServerHostImageLiu = '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