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
29b8cf90
Commit
29b8cf90
authored
Feb 14, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改变图片域名
parent
4f9ada3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
getCollection.js
public/resource/js/getCollection.js
+1
-1
public.js
public/resource/js/public.js
+6
-0
No files found.
public/resource/js/getCollection.js
View file @
29b8cf90
...
@@ -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
,
...
...
public/resource/js/public.js
View file @
29b8cf90
...
@@ -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'
;
};
};
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