Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
a30a2d0a
Commit
a30a2d0a
authored
Feb 18, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
dc20c35e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
common.js
public/app/js/common.js
+1
-0
customer_gj.js
public/app/js/customer_gj.js
+3
-3
No files found.
public/app/js/common.js
View file @
a30a2d0a
console
.
log
(
location
.
href
);
console
.
log
(
location
.
href
);
var
ServerHost
=
location
.
origin
;
var
ServerHost
=
location
.
origin
;
var
ServerHostTempCLiu
=
'http://images.tonglianjituan.com'
;
var
ServerHostTempC
=
'https://pre2.tonglianjituan.com'
;
var
ServerHostTempC
=
'https://pre2.tonglianjituan.com'
;
//var ServerHostTempC = 'http://192.168.2.13';
//var ServerHostTempC = 'http://192.168.2.13';
if
(
~
ServerHost
.
indexOf
(
'estate.'
)){
if
(
~
ServerHost
.
indexOf
(
'estate.'
)){
...
...
public/app/js/customer_gj.js
View file @
a30a2d0a
...
@@ -155,7 +155,7 @@ require(['vue', 'vconsole', 'css!style/customerinfo_sub_page.css', 'css!style/cu
...
@@ -155,7 +155,7 @@ require(['vue', 'vconsole', 'css!style/customerinfo_sub_page.css', 'css!style/cu
_this
.
explain
=
(
_len
===
0
)?
''
:
data
.
data
[
0
][
'explain'
];
_this
.
explain
=
(
_len
===
0
)?
''
:
data
.
data
[
0
][
'explain'
];
(
_len
>
0
&&
data
.
data
[
0
][
'explain_img'
])
&&
_this
.
imgShowList
.
push
({
(
_len
>
0
&&
data
.
data
[
0
][
'explain_img'
])
&&
_this
.
imgShowList
.
push
({
'name'
:
data
.
data
[
0
][
'explain_img'
],
'name'
:
data
.
data
[
0
][
'explain_img'
],
'url'
:
ServerHostTempC
+
'/static/chat_image/'
+
data
.
data
[
0
][
'explain_img'
].
replace
(
'
\
\'
,'
\
/
')
'url'
:
ServerHostTempC
Liu
+
'/static/chat_image/'
+
data
.
data
[
0
][
'explain_img'
].
replace
(
'
\
\'
,'
\
/
')
});
});
//区域自动获取,并赋值
//区域自动获取,并赋值
_this.getArea({
_this.getArea({
...
@@ -293,7 +293,7 @@ require(['vue', 'vconsole', 'css!style/customerinfo_sub_page.css', 'css!style/cu
...
@@ -293,7 +293,7 @@ require(['vue', 'vconsole', 'css!style/customerinfo_sub_page.css', 'css!style/cu
_fd.append('
image
', e.target.files[0]);
_fd.append('
image
', e.target.files[0]);
};
};
$.ajax({
$.ajax({
url: ServerHostTempC + "/chat/uploadImg",
url: ServerHostTempC
Liu
+ "/chat/uploadImg",
type: '
POST
',
type: '
POST
',
data: _fd,
data: _fd,
timeout: 30000,
timeout: 30000,
...
@@ -309,7 +309,7 @@ require(['vue', 'vconsole', 'css!style/customerinfo_sub_page.css', 'css!style/cu
...
@@ -309,7 +309,7 @@ require(['vue', 'vconsole', 'css!style/customerinfo_sub_page.css', 'css!style/cu
if(data['
code
'] == '
200
') {
if(data['
code
'] == '
200
') {
_this.imgShowList.push({
_this.imgShowList.push({
'
name
': data.data.name,
'
name
': data.data.name,
'
url
': ServerHostTempC + '
/
static
/
chat_image
/
' +data.data.name.replace('
\\
','
\
/
')
'
url
': ServerHostTempC
Liu
+ '
/
static
/
chat_image
/
' +data.data.name.replace('
\\
','
\
/
')
});
});
console.log(_this.imgShowList);
console.log(_this.imgShowList);
} else {
} else {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment