Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
1172252e
Commit
1172252e
authored
Oct 13, 2021
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资讯
parent
de5f973f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
7 deletions
+54
-7
index.vue
src/components/HotNews/index.vue
+19
-1
index.vue
src/components/PolicyCard/index.vue
+15
-2
index.vue
src/views/News/NewsList/index.vue
+15
-3
appList.ts
src/views/withMenu/Home/appList.ts
+5
-1
No files found.
src/components/HotNews/index.vue
View file @
1172252e
<
template
>
<div
class=
"mx-5"
>
<div
class=
"wrap22 flex items-center"
@
click=
"$router.push(
{path: 'NewsDetail', query: { uuid: info?.uuid, type: 'news' }})">
<div
class=
"box1 flex-col flex-grow justify-between"
>
<div
class=
"box1 flex-col flex-grow justify-between
overflow-hidden
"
>
<span
class=
"info8"
>
{{
info
?.
title
}}
</span>
<span
class=
"info10"
>
{{
info
?.
desc
}}
</span>
<div
class=
"layer4 flex pr-20"
>
<span
class=
"info9"
>
{{
info
?.
writer
}}
</span>
<span
class=
"word24"
>
{{
$format
(
info
?.
created_at
,
'YYYY-MM-DD'
)
}}
</span>
...
...
@@ -62,6 +63,23 @@ export default defineComponent({
text-align
:
left
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
}
.info10
{
z-index
:
205
;
display
:
block
;
overflow-wrap
:
break-word
;
color
:
rgba
(
141
,
146
,
175
,
1
);
margin-top
:
5px
;
font-size
:
12px
;
letter-spacing
:
0.1679999977350235px
;
font-family
:
PingFangSC-Medium
;
line-height
:
25px
;
text-align
:
left
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
}
.layer4
{
...
...
src/components/PolicyCard/index.vue
View file @
1172252e
<
template
>
<div
@
click=
"$router.push(
{path: 'NewsDetail', query: { uuid: info.uuid, type: 'policy' }})">
<div
class=
" text-base text-gray-800 font-semibold pt-5"
>
{{
info
.
title
}}
</div>
<div
class=
" text-base text-gray-800 font-semibold pt-5
news-title
"
>
{{
info
.
title
}}
</div>
<!--
<p
class=
" text-xs text-gray-400 pt-5"
>
{{
info
.
desc
}}
</p>
-->
<div
class=
" text-sm text-gray-800 text-justify pt-3"
>
{{
info
.
desc
}}
</div>
<div
class=
" text-sm text-gray-800 text-justify pt-3
news-info
"
>
{{
info
.
desc
}}
</div>
<div
class=
" text-xs text-gray-400 py-5 border-b border-red border-solid"
>
发布时间:
{{
$format
(
info
.
created_at
,
'YYYY-MM-DD'
)
}}
作者:
{{
info
.
writer
}}
</div>
</div>
</
template
>
...
...
@@ -26,4 +26,16 @@ export default defineComponent({
<
style
scoped
>
.news-title
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
}
.news-info
{
display
:
-webkit-box
;
overflow
:
hidden
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
word-break
:
break-all
;
}
</
style
>
\ No newline at end of file
src/views/News/NewsList/index.vue
View file @
1172252e
<
template
>
<div
@
click=
"$router.push(
{path: 'NewsDetail', query: { uuid: info.uuid, type: 'news' }})" class=" border-b border-gray-200 py-5">
<div
class=
" text-base text-gray-900 font-semibold"
>
{{
info
.
title
}}
</div>
<div
class=
" text-xs text-gray-800 pt-3"
>
{{
info
.
desc
}}
</div>
<div
class=
" text-base text-gray-900 font-semibold
news-title
"
>
{{
info
.
title
}}
</div>
<div
class=
" text-xs text-gray-800 pt-3
news-info
"
>
{{
info
.
desc
}}
</div>
<div
v-if=
"showImg"
class=
" h-32 bg-app-blue mt-2 bg-cover bg-center bg-no-repeat"
...
...
@@ -36,5 +36,16 @@ export default defineComponent({
</
script
>
<
style
scoped
>
.news-title
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
}
.news-info
{
display
:
-webkit-box
;
overflow
:
hidden
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
word-break
:
break-all
;
}
</
style
>
\ No newline at end of file
src/views/withMenu/Home/appList.ts
View file @
1172252e
import
Bridge
from
"@/utils/jsBridge2"
export
default
[
{
name
:
'贷款服务'
,
...
...
@@ -41,7 +42,10 @@ export default [
icon
:
'icon-jingcaizhibo'
,
color
:
'#0FCBA5'
,
cb
(){
new
Bridge
().
bridge_live
()
new
Bridge
().
bridge_live
({
phone
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'USER_MSG'
)
as
string
)?.
userInfo
.
phone
,
avatar
:
window
.
location
.
host
+
require
(
'../../../assets/icons/avatar.png'
)
})
},
},
{
...
...
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