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
12f7b043
Commit
12f7b043
authored
Jul 05, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
aac75f9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
getCollection.js
public/resource/js/getCollection.js
+9
-9
schoolBusiness_template_tpl.html
public/resource/template/schoolBusiness_template_tpl.html
+1
-0
No files found.
public/resource/js/getCollection.js
View file @
12f7b043
...
@@ -213,14 +213,7 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
...
@@ -213,14 +213,7 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
}
}
var
reader
=
new
FileReader
();
var
reader
=
new
FileReader
();
reader
.
readAsDataURL
(
this
.
files
[
i
]);
reader
.
readAsDataURL
(
this
.
files
[
i
]);
reader
.
onload
=
function
(
e
)
{
//赋值
result
=
'<div class="result"><img src="'
+
this
.
result
+
'" alt=""/> <span class="span-del">删除</span></div>'
;
div
=
document
.
createElement
(
'div'
);
div
.
innerHTML
=
result
;
document
.
getElementById
(
'container_body'
).
appendChild
(
div
);
}
};
var
formData
=
new
FormData
();
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
this
.
files
[
0
]);
formData
.
append
(
'image'
,
this
.
files
[
0
]);
...
@@ -237,7 +230,10 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
...
@@ -237,7 +230,10 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
typeof
_data
===
'object'
)
{
result
=
'<div class="result"><img calss="'
+
_data
.
+
'" src="'
+
this
.
result
+
'" alt=""/> <span class="span-del">删除</span></div>'
;
div
=
document
.
createElement
(
'div'
);
div
.
innerHTML
=
result
;
document
.
getElementById
(
'container_body'
).
appendChild
(
div
);
}
else
{
}
else
{
alert
(
'数据错误'
);
alert
(
'数据错误'
);
};
};
...
@@ -252,6 +248,10 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
...
@@ -252,6 +248,10 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
};
};
}
}
});
});
};
};
};
},
},
...
...
public/resource/template/schoolBusiness_template_tpl.html
View file @
12f7b043
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
<
td
>
[
%=
it
[
item
][
"comment_number"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"comment_number"
]
%
]
<
/td
>
<
td
>
<
td
>
_data
.
title
=
$
(
"#announcement_title"
).
val
();
<
a
class
=
"btn1 btn-success"
href
=
"new_text.html?id=[%= it[item]["
id
"] %]"
data
-
createTime
=
'[%= it[item]["create_time"] %]'
data
-
title
=
'[%= it[item]["title"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
data
-
content
=
'[%= it[item]["content"] %]'
target
=
"_blank"
>
<
a
class
=
"btn1 btn-success"
href
=
"new_text.html?id=[%= it[item]["
id
"] %]"
data
-
createTime
=
'[%= it[item]["create_time"] %]'
data
-
title
=
'[%= it[item]["title"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
data
-
content
=
'[%= it[item]["content"] %]'
target
=
"_blank"
>
编辑
编辑
<
/a
>
<
/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