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
aac75f9e
Commit
aac75f9e
authored
Jul 05, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
65bb25ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
getCollection.js
public/resource/js/getCollection.js
+1
-2
schoolBusiness.js
public/resource/js/schoolBusiness.js
+6
-2
No files found.
public/resource/js/getCollection.js
View file @
aac75f9e
...
@@ -222,11 +222,10 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
...
@@ -222,11 +222,10 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
};
};
var
formData
=
new
FormData
();
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
1
);
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
this
.
files
[
0
]);
formData
.
append
(
'image'
,
this
.
files
[
0
]);
console
.
log
(
this
.
files
[
0
]);
console
.
log
(
this
.
files
[
0
]);
console
.
log
(
formData
);
console
.
log
(
formData
);
$
.
ajax
({
$
.
ajax
({
type
:
'post'
,
type
:
'post'
,
url
:
'/index/uploadImg'
,
url
:
'/index/uploadImg'
,
...
...
public/resource/js/schoolBusiness.js
View file @
aac75f9e
...
@@ -518,7 +518,7 @@ define (['doT', 'text!temp/schoolBusiness_template_tpl.html','ckfinder','ckfinde
...
@@ -518,7 +518,7 @@ define (['doT', 'text!temp/schoolBusiness_template_tpl.html','ckfinder','ckfinde
}
}
});
});
},
},
add_news
:
function
()
{
//新增文章
add_news
:
function
()
{
//新增文章
编辑文章
var
_imgUploadLiebiao
=
$
(
'#liebiao_pic_ul'
);
//列表页封面图ul
var
_imgUploadLiebiao
=
$
(
'#liebiao_pic_ul'
);
//列表页封面图ul
var
_liebiaoPicObj
=
_imgUploadLiebiao
.
find
(
'li>img'
);
var
_liebiaoPicObj
=
_imgUploadLiebiao
.
find
(
'li>img'
);
var
_urlCut
=
location
.
origin
+
'/resource/lib/Attachments/images/'
;
//要截取的部分url
var
_urlCut
=
location
.
origin
+
'/resource/lib/Attachments/images/'
;
//要截取的部分url
...
@@ -537,7 +537,11 @@ define (['doT', 'text!temp/schoolBusiness_template_tpl.html','ckfinder','ckfinde
...
@@ -537,7 +537,11 @@ define (['doT', 'text!temp/schoolBusiness_template_tpl.html','ckfinder','ckfinde
//// _data['file_img[' + i + ']'] = item.src;
//// _data['file_img[' + i + ']'] = item.src;
//
//
// });
// });
if
(
getUrlParam
(
'id'
)){
_data
.
id
=
getUrlParam
(
'id'
);
};
_data
.
title
=
$
(
"#announcement_title"
).
val
();
_data
.
title
=
$
(
"#announcement_title"
).
val
();
_data
.
s_label_id
=
$
(
"#district_id2"
).
val
();
//商学院标签id
_data
.
s_label_id
=
$
(
"#district_id2"
).
val
();
//商学院标签id
_data
.
file_img
=
_liebiaoPicObj
[
0
].
src
.
replace
(
_urlCut
,
''
);
//封面图 剪切后的字符串
_data
.
file_img
=
_liebiaoPicObj
[
0
].
src
.
replace
(
_urlCut
,
''
);
//封面图 剪切后的字符串
...
...
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