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
54896706
Commit
54896706
authored
Apr 04, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商学院 恢复
parent
fd044b8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
34 deletions
+8
-34
new_text.html
application/index/view/news/new_text.html
+1
-22
schoolBusinessNew.js
public/resource/js/schoolBusinessNew.js
+7
-12
No files found.
application/index/view/news/new_text.html
View file @
54896706
...
@@ -318,7 +318,7 @@
...
@@ -318,7 +318,7 @@
</div>
</div>
<
!--<
div class="form-group">
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
内容:
</label>
<label
class=
"col-sm-2 control-label"
>
内容:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<div
class=
""
style=
"width: 100%;"
>
<div
class=
""
style=
"width: 100%;"
>
...
@@ -335,27 +335,6 @@
...
@@ -335,27 +335,6 @@
</div>
</div>
</div>
</div>
</div>-->
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
内容:
</label>
<div
class=
"col-sm-9"
>
<div
class=
""
style=
"width: 100%;"
>
<!-- 加载编辑器的容器 -->
<script
type=
"text/plain"
id=
"myEditor"
style=
"width:880px;height:240px;"
>
</script>
<!-- 实例化编辑器 -->
<script
type=
"text/javascript"
>
// require(['ZeroClipboard'], function (ZeroClipboard) {
// window['ZeroClipboard'] = ZeroClipboard;
// });
var
ue
=
UE
.
getEditor
(
'myEditor'
);
</script>
</div>
</div>
</div>
</div>
<!--附件-->
<!--附件-->
...
...
public/resource/js/schoolBusinessNew.js
View file @
54896706
define
([
'doT'
,
'text!temp/schoolBusiness_template_tpl.html'
,
'ckfinder'
,
'ckfinderStart'
,
'css!style/home.css'
,
'pagination'
,
'bootstrapJs
'
],
function
(
doT
,
template
)
{
define
([
'doT'
,
'text!temp/schoolBusiness_template_tpl.html'
,
'ckfinder'
,
'ckfinderStart'
,
'css!style/home.css'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'ueditor-config'
,
'ueditor
'
],
function
(
doT
,
template
)
{
//处理文件名,长度过长时处理
//处理文件名,长度过长时处理
function
dealFileName
(
str
)
{
function
dealFileName
(
str
)
{
...
@@ -337,12 +337,9 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
...
@@ -337,12 +337,9 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
}));
}));
};
};
//获取编辑器里的内容
//获取编辑器里的内容
// setCKeditorValue("goods_sup_id", _data['content']);
// setCKeditorValue(id,content)
console
.
log
(
_data
[
'content'
]);
setCKeditorValue
(
"goods_sup_id"
,
_data
[
'content'
]);
var
ue
=
UE
.
getEditor
(
'myEditor'
);
ue
.
ready
(
function
()
{
//编辑器初始化完成再赋值
ue
.
setContent
(
_data
[
'content'
]);
//赋值给UEditor
});
//附件
//附件
var
file_paths
=
_data
[
'file'
];
var
file_paths
=
_data
[
'file'
];
...
@@ -408,10 +405,8 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
...
@@ -408,10 +405,8 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
var
_liebiaoPicObj
=
$
(
'.titleImg'
);
var
_liebiaoPicObj
=
$
(
'.titleImg'
);
var
_urlCut
=
location
.
origin
+
'/resource/lib/Attachments/images/'
;
//要截取的部分url
var
_urlCut
=
location
.
origin
+
'/resource/lib/Attachments/images/'
;
//要截取的部分url
var
_dajiangtangObj
=
$
(
'#dajiangtang'
);
//大讲堂
var
_dajiangtangObj
=
$
(
'#dajiangtang'
);
//大讲堂
// var _dajiangtangVal = getCKeditorValue("goods_sup_id");
var
_dajiangtangVal
=
getCKeditorValue
(
"goods_sup_id"
);
console
.
log
(
UE
.
getEditor
(
'myEditor'
).
getContent
());
console
.
log
(
_dajiangtangVal
);
// console.log(_dajiangtangVal);
if
(
_liebiaoPicObj
.
length
<
1
)
{
if
(
_liebiaoPicObj
.
length
<
1
)
{
alert
(
'列表页封面图需要上传'
);
alert
(
'列表页封面图需要上传'
);
...
@@ -426,7 +421,7 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
...
@@ -426,7 +421,7 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
_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
=
pic
//user.titlePic;//_liebiaoPicObj[0].src.replace(_urlCut, ''); //封面图 剪切后的字符串
_data
.
file_img
=
pic
//user.titlePic;//_liebiaoPicObj[0].src.replace(_urlCut, ''); //封面图 剪切后的字符串
_data
.
content
=
UE
.
getEditor
(
'myEditor'
).
getContent
()
;
_data
.
content
=
_dajiangtangVal
;
//附件相关
//附件相关
var
_fujianObj
=
$
(
'#fujian_ul_liu'
).
find
(
'li>a.pdf-pre-a'
);
//附件看的是删除按钮的个数
var
_fujianObj
=
$
(
'#fujian_ul_liu'
).
find
(
'li>a.pdf-pre-a'
);
//附件看的是删除按钮的个数
...
...
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