Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
74926935
Commit
74926935
authored
Jun 03, 2021
by
Facius
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://git.banshouhui.com/lijundan/self-support
into dev
parents
2078f707
3da3e2cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
9 deletions
+36
-9
learn.vue
src/pages/index/learn.vue
+1
-0
news-details.vue
src/pages/learn/news-details.vue
+35
-9
No files found.
src/pages/index/learn.vue
View file @
74926935
...
@@ -801,6 +801,7 @@ export default {
...
@@ -801,6 +801,7 @@ export default {
var
news
=
{
var
news
=
{
body
:
e
.
body
,
body
:
e
.
body
,
title
:
e
.
title
,
title
:
e
.
title
,
create_at
:
e
.
create_at
,
};
};
let
that
=
this
;
let
that
=
this
;
wx
.
navigateTo
({
wx
.
navigateTo
({
...
...
src/pages/learn/news-details.vue
View file @
74926935
<
template
>
<
template
>
<view>
<view
class=
"news-wrap"
>
<u-navbar
<u-navbar
back-icon-color=
"#000000"
back-icon-color=
"#000000"
:background=
"background"
:background=
"background"
...
@@ -9,8 +9,11 @@
...
@@ -9,8 +9,11 @@
<view
class=
"title"
>
<view
class=
"title"
>
{{
title
}}
{{
title
}}
</view>
</view>
<view
class=
"time-txt"
>
{{
time
|
datefmt
(
'YYYY.MM.DD HH:mm:ss'
)
}}
</view>
<view
class=
"u-content"
>
<view
class=
"u-content"
>
<u-parse
:html=
"body"
:tag-style=
"style"
></u-parse>
<u-parse
:html=
"body"
:tag-style=
"style"
:selectable=
"true"
></u-parse>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -20,7 +23,20 @@
...
@@ -20,7 +23,20 @@
data
()
{
data
()
{
return
{
return
{
title
:
''
,
title
:
''
,
body
:
''
body
:
''
,
time
:
''
,
style
:
{
// 字符串的形式
p
:
`
color: #666666;
font-size: 24rpx;
letter-spacing: 0.03rpx;
`
,
span
:
'font-size: 26rpx'
,
img
:
`
padding: 40rpx 0;
`
,
},
}
}
},
},
onLoad
()
{
onLoad
()
{
...
@@ -30,25 +46,35 @@
...
@@ -30,25 +46,35 @@
eventChannel
.
on
(
'acceptDataFromLearn'
,
function
(
data
)
{
eventChannel
.
on
(
'acceptDataFromLearn'
,
function
(
data
)
{
that
.
title
=
data
.
title
;
that
.
title
=
data
.
title
;
that
.
body
=
data
.
body
;
that
.
body
=
data
.
body
;
that
.
time
=
data
.
create_at
})
})
this
.
$u
.
mpShare
.
path
=
''
this
.
$u
.
mpShare
.
path
=
''
},
},
}
}
</
script
>
</
script
>
<
style
>
<
style
>
.news-wrap
{
background-color
:
#FFFFFF
;
height
:
100vh
;
}
.title
{
.title
{
font-size
:
3
2
rpx
;
font-size
:
3
6
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
margin-left
:
30
rpx
;
margin
:
20
rpx
30
rpx
;
margin-top
:
30
rpx
;
}
}
.time-txt
{
margin
:
0
30
rpx
;
font-size
:
24
rpx
;
font-weight
:
400
;
color
:
#999999
;
line-height
:
24
rpx
;
}
.u-content
{
.u-content
{
font-size
:
24
rpx
;
font-size
:
24
rpx
;
line-height
:
36
rpx
;
line-height
:
36
rpx
;
color
:
#666666
;
color
:
#666666
;
margin-left
:
30
rpx
;
margin-left
:
30
rpx
;
margin-top
:
30
rpx
;
margin-right
:
30
rpx
;
margin-right
:
30
rpx
;
}
}
</
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