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
9c59aea7
Commit
9c59aea7
authored
Apr 09, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ed9902ba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
15 deletions
+25
-15
test.html
application/index/view/news/test.html
+5
-5
opensquareLogList.html
application/index/view/opensquare/opensquareLogList.html
+6
-5
opensquareList.js
public/resource/js/opensquareList.js
+14
-5
No files found.
application/index/view/news/test.html
View file @
9c59aea7
...
@@ -7,15 +7,15 @@
...
@@ -7,15 +7,15 @@
</head>
</head>
<body>
<body>
<script
language=
"javascript"
type=
"text/javascript"
<script
language=
"javascript"
type=
"text/javascript"
src=
"
http://pre2.tonglianjituan.com
/resource/lib/ueditor/ueditor.config.js"
></script>
src=
"/resource/lib/ueditor/ueditor.config.js"
></script>
<script
language=
"javascript"
type=
"text/javascript"
<script
language=
"javascript"
type=
"text/javascript"
src=
"
http://pre2.tonglianjituan.com
/resource/lib/ueditor/ueditor.all.min.js"
></script>
src=
"/resource/lib/ueditor/ueditor.all.min.js"
></script>
111
<script
type=
"text/plain"
id=
"myEditor"
style=
"width:760px;height:376px;"
>
<script
type=
"text/plain"
id=
"myEditor"
style=
"width:880px;height:240px;"
>
555555
</script>
</script>
<script
type =
"text/javascript"
>
<script
type =
"text/javascript"
>
var
ue
=
UE
.
getEditor
(
'myEditor'
);
var
ue
=
UE
.
getEditor
(
'myEditor'
);
</script>
</script>
</body>
</body>
...
...
application/index/view/opensquare/opensquareLogList.html
View file @
9c59aea7
{layout name="global/frame_
two
_tpl" /}
{layout name="global/frame_
baidu
_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"opensquareList"
/>
<input
type=
"hidden"
class=
"page-load"
id=
"opensquareList"
/>
<style>
<style>
.modal-body
{
.modal-body
{
...
@@ -454,13 +454,14 @@
...
@@ -454,13 +454,14 @@
<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>
<div>
<!-- 加载编辑器的容器 -->
<iframe
id=
'ifram-kaipan'
style=
"width: 782px;height: 402px;border: 0;"
></iframe>
<script
type=
"text/plain"
id=
"myEditor"
style=
"width:716px;height:300px;"
>
<!--加载编辑器的容器-->
<!-- <script type="text/plain" id="myEditor" style="width:716px;height:300px;">
</script>
</script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
<script type="text/javascript">
var ue = UE.getEditor('myEditor');
var ue = UE.getEditor('myEditor');
</script>
</script>
-->
</div>
</div>
</div>
</div>
...
...
public/resource/js/opensquareList.js
View file @
9c59aea7
...
@@ -180,7 +180,13 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
...
@@ -180,7 +180,13 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
_doc
.
on
(
'click'
,
'.edit_modal_btn'
,
function
(
e
){
//点击编辑
_doc
.
on
(
'click'
,
'.edit_modal_btn'
,
function
(
e
){
//点击编辑
user
.
announcementdel_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
announcementdel_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
is_add
=
0
;
user
.
is_add
=
0
;
user
.
text_details
();
// $('.ifram-kaipan').attr('src', '/index/test?shop_id='+business.id);
$
(
'#ifram-kaipan'
).
attr
(
'src'
,
'/index/test'
);
// $('#ifram-kaipan').attr('src',ServerHostImageLiu + '/index/test');
user
.
text_details
();
// var html_ = $("#ifram-kaipan").contents().find("#liu").html();
});
});
...
@@ -203,10 +209,13 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
...
@@ -203,10 +209,13 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
$
(
'#announcement_title_add'
).
val
(
data
.
data
.
title
);
$
(
'#announcement_title_add'
).
val
(
data
.
data
.
title
);
$
(
"#add_city_id"
).
val
(
data
.
data
.
site_id
);
$
(
"#add_city_id"
).
val
(
data
.
data
.
site_id
);
$
(
"#add_district_id"
).
val
(
data
.
data
.
district_lable_id
);
$
(
"#add_district_id"
).
val
(
data
.
data
.
district_lable_id
);
var
ue
=
UE
.
getEditor
(
'myEditor'
);
// var html_ = document.getElementById("ifram-kaipan").contentWindow.document.getElementById("liu").html();
ue
.
ready
(
function
()
{
//编辑器初始化完成再赋值
// var html_ = $("#ifram-kaipan").contents().find("#liu").html();
ue
.
setContent
(
data
.
data
.
content
);
//赋值给UEditor
});
// var ue = UE.getEditor('myEditor');
// ue.ready(function() {//编辑器初始化完成再赋值
// ue.setContent(data.data.content); //赋值给UEditor
// });
var
_data
=
data
[
'data'
];
var
_data
=
data
[
'data'
];
if
(
_data
[
'cover_img'
])
{
if
(
_data
[
'cover_img'
])
{
...
...
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