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
a178db20
Commit
a178db20
authored
Sep 05, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
636f2964
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
picture_show.html
application/index/view/picture/picture_show.html
+7
-2
pictureShow.js
public/resource/js/pictureShow.js
+2
-1
No files found.
application/index/view/picture/picture_show.html
View file @
a178db20
...
...
@@ -10,7 +10,12 @@
.no-border
{
border
:
none
;
}
#preview
{
#preview
image
{
height
:
300px
!important
;
width
:
500px
!important
;
}
#preview
{
height
:
300px
!important
;
width
:
500px
!important
;
...
...
@@ -125,7 +130,7 @@
<button
class=
"btn btn-default"
>
选择图片
</button>
</div>
<div
class=
"col-xs-12 img_area"
>
</div>
</div>
</div>
...
...
public/resource/js/pictureShow.js
View file @
a178db20
...
...
@@ -172,7 +172,7 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css',
var
img_label
=
''
;
var
image_show
=
""
;
image_show
+=
'<image width="100px" height="80px" src="'
+
data
.
data
.
list
.
img_file_path
+
'/'
+
data
.
data
.
list
.
img_name
+
'">
"
</image>'
;
image_show
+=
'<image width="100px" height="80px" src="'
+
data
.
data
.
list
.
img_file_path
+
'/'
+
data
.
data
.
list
.
img_name
+
'"></image>'
;
if
(
data
.
data
.
list
.
img_type
==
0
){
img_type
=
"室外图"
;
}
else
if
(
data
.
data
.
list
.
img_type
==
1
){
...
...
@@ -186,6 +186,7 @@ define (['doT', 'text!temp/picture_add_template_tpl.html', 'css!style/home.css',
$
(
'#creat_time'
).
text
(
data
.
data
.
list
.
create_time
);
$
(
'#picture_type_show'
).
text
(
img_type
);
$
(
'#yetai_id_show'
).
text
(
data
.
data
.
list
.
label
);
$
(
'.img_area_show'
).
empty
();
$
(
'.img_area_show'
).
append
(
image_show
);
}
});
...
...
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