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
0d16ded4
Commit
0d16ded4
authored
Sep 10, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公告 上传附件
parent
82bf7c5b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
28 deletions
+24
-28
index.html
application/index/view/notice/index.html
+10
-1
notice.js
public/resource/js/notice.js
+13
-26
notice_template_tpl.html
public/resource/template/notice_template_tpl.html
+1
-1
No files found.
application/index/view/notice/index.html
View file @
0d16ded4
...
@@ -121,6 +121,15 @@
...
@@ -121,6 +121,15 @@
/*后端给的样式 没有 max-width */
/*后端给的样式 没有 max-width */
max-width
:
550px
;
max-width
:
550px
;
}
}
#fujian_ul
{
list-style
:
none
;
}
.notice-fujian-area
>
span
{
font-weight
:
600
;
}
.notice-fujian-area
{
margin-top
:
30px
;
}
</style>
</style>
<!--导航star-->
<!--导航star-->
...
@@ -263,7 +272,7 @@
...
@@ -263,7 +272,7 @@
<div
class=
"notice-text"
></div>
<div
class=
"notice-text"
></div>
<div
class=
"notice-fujian-area"
>
<div
class=
"notice-fujian-area"
>
<span>
附件(点击可下载):
</span>
<span>
附件(点击可下载):
</span>
<ul
id=
"
#
fujian_ul"
>
<ul
id=
"fujian_ul"
>
</ul>
</ul>
</div>
</div>
...
...
public/resource/js/notice.js
View file @
0d16ded4
...
@@ -78,32 +78,19 @@ define (['doT', 'text!temp/notice_template_tpl.html','ckfinder','ckfinderStart',
...
@@ -78,32 +78,19 @@ define (['doT', 'text!temp/notice_template_tpl.html','ckfinder','ckfinderStart',
$
(
'.notice-title'
).
html
(
$
(
this
).
attr
(
"data-title"
));
$
(
'.notice-title'
).
html
(
$
(
this
).
attr
(
"data-title"
));
$
(
'.notice-time'
).
html
(
$
(
this
).
attr
(
"data-createTime"
));
$
(
'.notice-time'
).
html
(
$
(
this
).
attr
(
"data-createTime"
));
$
(
'.notice-text'
).
html
(
$
(
this
).
attr
(
"data-content"
));
$
(
'.notice-text'
).
html
(
$
(
this
).
attr
(
"data-content"
));
var
_filePath
=
JSON
.
parse
(
$
(
this
).
attr
(
'data-fujian'
));
var
_filePath
=
$
(
this
).
attr
(
'data-fujian'
);
$
(
'#fujian_ul'
).
html
(
''
);
var
_tempArr
=
_filePath
.
split
(
'/'
);
// 获取附件 对接口
var
_lastObj
=
dealFileName
(
decodeURI
(
_tempArr
[
_tempArr
.
length
-
1
]));
if
(
_filePath
){
for
(
var
i
=
0
;
i
<
_filePath
.
length
;
i
++
){
// if(_lastObj){
var
_tempArr
=
_filePath
[
i
].
split
(
'/'
);
// $('.notice-fujian-area').show().html('<span>附件(点击可下载):</span><a download="{0}" href="{1}" title="点击可下载">{0}</a>'.stringFormatObj({
_filePath
[
i
]
&&
$
(
'#fujian_ul'
).
append
(
'<li><a href="{0}" title="点击可下载">{1}</a></li>'
.
stringFormatObj
({
// '0': _lastObj,
'0'
:
_filePath
[
i
],
// '1': _filePath
'1'
:
dealFileName
(
decodeURI
(
_tempArr
[
_tempArr
.
length
-
1
]))
// }))
}));
// }else{
};
// $('.notice-fujian-area').html('').hide();
}
// }
// 获取附件 对接口
// if(file_paths){
// for ( var i = 0 ; i < file_paths.length ; i++ ){
// var _tempArr = file_paths[i]['file_name'].split('/');
// file_paths[i]['file_name'] && $('#fujian_ul').append('<li class="pdf-pre-li" id='+file_paths[i]['id'] +'><a class="pdf-pre-a" download="{1}" href="{0}" title="点击可下载">{1}</a><a href="javascript:;" class="delet-pic-btn">删除</a></li>'.stringFormatObj({
// '0': file_paths[i]['file_name'],
// '1': dealFileName(decodeURI(_tempArr[_tempArr.length-1]))
// }));
// };
// }
});
});
$
(
document
).
on
(
"input"
,
"#set_father_id3"
,
function
()
{
//手机号搜索客方
$
(
document
).
on
(
"input"
,
"#set_father_id3"
,
function
()
{
//手机号搜索客方
if
(
$
(
"#set_father_id3"
).
val
()
==
''
){
if
(
$
(
"#set_father_id3"
).
val
()
==
''
){
...
...
public/resource/template/notice_template_tpl.html
View file @
0d16ded4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<
/td
>
<
/td
>
<
td
>
[
%=
it
[
item
][
"title"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"title"
]
%
]
<
/td
>
<
td
>
<
td
>
<
a
class
=
"btn1 btn-success announcement-details"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
createTime
=
'[%= it[item]["create_time"] %]'
data
-
title
=
'[%= it[item]["title"] %]'
data
-
content
=
'[%= it[item]["content"] %]'
data
-
fujian
=
'[%=
it[item]["annex_file_path"]
%]'
>
<
a
class
=
"btn1 btn-success announcement-details"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
createTime
=
'[%= it[item]["create_time"] %]'
data
-
title
=
'[%= it[item]["title"] %]'
data
-
content
=
'[%= it[item]["content"] %]'
data
-
fujian
=
'[%=
JSON.stringify(it[item]["annex_file_path"])
%]'
>
查看
查看
<
/a
>
<
/a
>
[
%
if
(
check_auth
(
'index/delNotice'
))
{
%
]
[
%
if
(
check_auth
(
'index/delNotice'
))
{
%
]
...
...
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