Commit a30a2d0a authored by agping's avatar agping

1

parent dc20c35e
console.log(location.href);
var ServerHost = location.origin;
var ServerHostTempCLiu = 'http://images.tonglianjituan.com';
var ServerHostTempC = 'https://pre2.tonglianjituan.com';
//var ServerHostTempC = 'http://192.168.2.13';
if(~ServerHost.indexOf('estate.')){
......
......@@ -155,7 +155,7 @@ require(['vue', 'vconsole', 'css!style/customerinfo_sub_page.css', 'css!style/cu
_this.explain = (_len===0)?'':data.data[0]['explain'];
(_len>0 && data.data[0]['explain_img']) && _this.imgShowList.push({
'name': data.data[0]['explain_img'],
'url': ServerHostTempC + '/static/chat_image/' +data.data[0]['explain_img'].replace('\\','\/')
'url': ServerHostTempCLiu + '/static/chat_image/' +data.data[0]['explain_img'].replace('\\','\/')
});
//区域自动获取,并赋值
_this.getArea({
......@@ -293,7 +293,7 @@ require(['vue', 'vconsole', 'css!style/customerinfo_sub_page.css', 'css!style/cu
_fd.append('image', e.target.files[0]);
};
$.ajax({
url: ServerHostTempC + "/chat/uploadImg",
url: ServerHostTempCLiu + "/chat/uploadImg",
type: 'POST',
data: _fd,
timeout: 30000,
......@@ -309,7 +309,7 @@ require(['vue', 'vconsole', 'css!style/customerinfo_sub_page.css', 'css!style/cu
if(data['code'] == '200') {
_this.imgShowList.push({
'name': data.data.name,
'url': ServerHostTempC + '/static/chat_image/' +data.data.name.replace('\\','\/')
'url': ServerHostTempCLiu + '/static/chat_image/' +data.data.name.replace('\\','\/')
});
console.log(_this.imgShowList);
} else {
......
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