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
97d448b6
Commit
97d448b6
authored
Jul 17, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公告修改
parent
38228b42
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
7 deletions
+27
-7
announcementDetails.vue
...rc/components/announcementDetails/announcementDetails.vue
+27
-7
No files found.
public/appnew/src/components/announcementDetails/announcementDetails.vue
View file @
97d448b6
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<div
class=
"report-time"
>
<div
class=
"report-time"
>
<span>
{{
create_time
}}
</span>
<span>
{{
create_time
}}
</span>
</div>
</div>
<div
class=
"
report-tex
t"
>
{{
content
}}
</div>
<div
class=
"
oh report-content-area report-text"
v-html=
"conten
t"
>
{{
content
}}
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -37,13 +37,16 @@
...
@@ -37,13 +37,16 @@
responseType
:
'json'
,
responseType
:
'json'
,
data
:
{
data
:
{
'id'
:
_this
.
announce_id
,
'id'
:
_this
.
announce_id
,
// 'id': 253,
}
}
})
})
.
then
(
function
(
response
)
{
.
then
(
function
(
response
)
{
if
(
response
.
data
.
code
==
200
)
{
if
(
response
.
data
.
code
==
200
)
{
_this
.
house_title
=
response
.
data
.
data
.
title
;
//改成title
_this
.
house_title
=
response
.
data
.
data
.
title
;
//改成title
_this
.
create_time
=
response
.
data
.
data
.
create_time
;
_this
.
create_time
=
response
.
data
.
data
.
create_time
;
_this
.
content
=
response
.
data
.
data
.
content
;
// _this.content=response.data.data.content;
_this
.
content
=
_this
.
common
.
urlDeal
(
response
.
data
.
data
.
content
);
console
.
log
(
response
.
data
.
data
.
content
);
console
.
log
(
response
.
data
.
data
.
content
);
}
else
{
}
else
{
...
@@ -60,7 +63,7 @@
...
@@ -60,7 +63,7 @@
<
style
scoped
>
<
style
scoped
>
.report-detail
{
.report-detail
{
padding
:
.44rem
.
28
rem
;
padding
:
.44rem
.
3
rem
;
}
}
.report-title
{
.report-title
{
font-size
:
.4rem
;
font-size
:
.4rem
;
...
@@ -72,14 +75,31 @@
...
@@ -72,14 +75,31 @@
margin-top
:
.22rem
;
margin-top
:
.22rem
;
}
}
.report-text
{
.report-text
{
text-indent
:
2em
;
/*
text-indent:2em;
font-size: .3rem;
font-size: .3rem;
color
:
#1A1A1A
;
color: #1A1A1A;
*/
line-height
:
.56rem
;
/*line-height: .56rem;*/
margin-top
:
.
5
rem
;
margin-top
:
.
38
rem
;
padding-bottom
:
1rem
;
padding-bottom
:
1rem
;
}
}
.sec-right
{
.sec-right
{
margin-left
:
.32rem
;
margin-left
:
.32rem
;
}
}
/*而如果在组件中使用了v-html,要为myHtml中的标签添加CSS样式,我们需要在写样式的时候添加>>>:*/
.report-content-area
>>>
img
{
width
:
100%
;
max-width
:
6.9rem
;
}
.report-content-area
>>>
iframe
{
width
:
100%
;
max-width
:
6.9rem
;
}
.report-content-area
>>>
embed
{
width
:
100%
;
max-width
:
6.9rem
;
}
.report-content-area
>>>
video
{
width
:
100%
;
max-width
:
6.9rem
;
}
</
style
>
</
style
>
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