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
15294bea
Commit
15294bea
authored
Oct 26, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
富文本编辑器样式修改、账号删除按钮修复
parent
90d83f7b
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
72 additions
and
32 deletions
+72
-32
index.html
public/index.html
+1
-1
App.vue
src/App.vue
+20
-0
index.vue
src/components/HotNews/index.vue
+4
-3
index.vue
src/components/PolicyCard/index.vue
+1
-1
type.ts
src/service/ActivityService/type.ts
+2
-1
index.ts
src/service/index.ts
+2
-2
index.vue
src/views/ActivityDetail/index.vue
+4
-4
index.vue
src/views/ActivityList/components/activityCard/index.vue
+2
-2
index.vue
src/views/ActivityList/index.vue
+1
-1
index.vue
src/views/Auth/Login/components/PhoneInput/index.vue
+1
-2
index.vue
src/views/News/NewsList/index.vue
+1
-1
index.vue
src/views/News/index.vue
+5
-2
index.vue
src/views/NewsDetail/index.vue
+15
-8
index.vue
src/views/PolicySupport/index.vue
+6
-2
index.vue
src/views/Search/index.vue
+1
-0
index.vue
src/views/withMenu/Home/index.vue
+5
-0
msgDetail.vue
src/views/withMenu/Mine/msgDetail.vue
+1
-2
No files found.
public/index.html
View file @
15294bea
...
...
@@ -23,7 +23,7 @@
<!-- <script src="//at.alicdn.com/t/font_2711356_k19r0hh1f4.js"></script> -->
<script
src=
"//at.alicdn.com/t/font_2711356_53bl5jmwu2e.js"
></script>
<script>
console
.
log
(
'v.0.1.1
4
'
);
console
.
log
(
'v.0.1.1
5
'
);
</script>
</body>
...
...
src/App.vue
View file @
15294bea
...
...
@@ -201,4 +201,24 @@ export default defineComponent({
display: flex;
flex-direction: row;
}
.vhtml {
h1 {
font-size: 1.4rem !important;
font-weight: 300 !important;
line-height: 1.5rem !important;
letter-spacing: -0.01562em !important;
}
h2 {
font-size: 1.2rem !important;
font-weight: 300 !important;
line-height: 1.5rem !important;
letter-spacing: -0.01562em !important;
}
h3 {
font-size: 1rem !important;
font-weight: 300 !important;
line-height: 1.5rem !important;
letter-spacing: -0.01562em !important;
}
}
</
style
>
src/components/HotNews/index.vue
View file @
15294bea
...
...
@@ -4,9 +4,9 @@
<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>
<div
class=
"layer4 flex pr-
12
"
>
<span
class=
"info9
mr-2
"
>
{{
info
?.
writer
}}
</span>
<span
class=
"word24
flex-shrink-0
"
>
{{
$format
(
info
?.
created_at
,
'YYYY-MM-DD'
)
}}
</span>
</div>
</div>
<div
class=
"box2 ml-4 flex-shrink-0"
>
...
...
@@ -96,6 +96,7 @@ export default defineComponent({
text-align
:
left
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
}
.word24
{
...
...
src/components/PolicyCard/index.vue
View file @
15294bea
...
...
@@ -5,7 +5,7 @@
<div
class=
" text-sm text-gray-800 text-justify 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"
class=
" h-32 bg-
gray-200
mt-2 bg-cover bg-center bg-no-repeat"
:style=
"
{'background-image': `url('${url}')`}">
</div>
<div
class=
" text-xs text-gray-400 py-5 border-b border-red border-solid"
>
发布时间:
{{
$format
(
info
.
update_at
,
'YYYY-MM-DD'
)
}}
作者:
{{
info
.
writer
}}
</div>
</div>
...
...
src/service/ActivityService/type.ts
View file @
15294bea
export
interface
ActivityItem
{
created_at
:
number
,
file_name
:
string
,
uuid
:
string
uuid
:
string
,
update_at
:
string
}
src/service/index.ts
View file @
15294bea
import
router
from
'@/router'
import
{
getUserMsg
}
from
'@/utils/userMsg'
import
{
deleteUserMsg
,
getUserMsg
}
from
'@/utils/userMsg'
import
axios
,
{
AxiosRequestConfig
,
AxiosResponse
}
from
'axios'
import
{
Toast
}
from
'vant'
...
...
@@ -12,7 +12,7 @@ baseAxios.interceptors.response.use(
const
ret
=
baseRet
.
data
as
iRet
if
([
504
,
503
].
includes
(
ret
.
code
))
{
Toast
.
fail
(
ret
.
msg
)
localStorage
.
clear
()
deleteUserMsg
()
router
.
push
({
name
:
'Login'
,
})
...
...
src/views/ActivityDetail/index.vue
View file @
15294bea
...
...
@@ -2,9 +2,9 @@
<nav-bar
title=
"精彩活动"
/>
<div
class=
"px-5 py-8"
>
<p
class=
"text-base text-gray-800 font-semibold"
>
{{
title
}}
</p>
<p
class=
"text-xs text-gray-400 mt-5"
>
发布时间
{{
timestampFormat
(
created
_at
)
}}
</p>
<p
class=
"text-xs text-gray-400 mt-5"
>
发布时间
{{
timestampFormat
(
update
_at
)
}}
</p>
<img
:src=
"src"
class=
"text-center"
/>
<p
class=
"text-sm text-gray-800 text-justify mt-5"
v-html=
"content"
></p>
<p
class=
"text-sm text-gray-800 text-justify mt-5
vhtml
"
v-html=
"content"
></p>
</div>
</
template
>
...
...
@@ -19,7 +19,7 @@ import { timestampFormat } from "@/utils/time"
const
uuid
=
useRoute
().
params
.
uuid
as
string
;
const
title
=
ref
(
""
);
const
created
_at
=
ref
(
0
);
const
update
_at
=
ref
(
0
);
const
content
=
ref
(
""
);
const
file_name
=
ref
(
""
);
const
src
=
ref
(
""
);
...
...
@@ -28,7 +28,7 @@ onMounted(() => {
queryActivityInfo
({
uuid
:
uuid
}).
then
((
ret
)
=>
{
if
(
ret
.
code
===
200
)
{
title
.
value
=
ret
.
data
.
title
;
created_at
.
value
=
ret
.
data
.
created
_at
;
update_at
.
value
=
ret
.
data
.
update
_at
;
content
.
value
=
ret
.
data
.
content
;
file_name
.
value
=
ret
.
data
.
file_name
;
src
.
value
=
getImageSrcFromFileHash
(
file_name
.
value
);
...
...
src/views/ActivityList/components/activityCard/index.vue
View file @
15294bea
<
template
>
<div>
<div
class=
"text-xs text-gray-400 text-center mt-5 "
>
{{
timestampFormat
(
created
_at
)
}}
{{
timestampFormat
(
update
_at
)
}}
</div>
<div
class=
"text-center mt-2"
>
<img
:src=
"src"
class=
"w-83 h-22 object-cover object-center inline-block"
/>
...
...
@@ -15,7 +15,7 @@ import { timestampFormat } from "@/utils/time";
import
{
getImageSrcFromFileHash
}
from
"@/service/FileService"
;
import
{
ref
}
from
"vue"
const
props
=
defineProps
({
created
_at
:
Number
,
update
_at
:
Number
,
file_name
:
String
,
});
...
...
src/views/ActivityList/index.vue
View file @
15294bea
...
...
@@ -19,7 +19,7 @@
<Skeleton
:loading=
"skeLoading"
:row=
"3"
class=
"mt-2"
>
<card
v-for=
"activity in activityList"
:
created_at=
"activity.created
_at"
:
update_at=
"activity.update
_at"
:file_name=
"activity.file_name"
:key=
"activity.id"
@
click=
"
...
...
src/views/Auth/Login/components/PhoneInput/index.vue
View file @
15294bea
...
...
@@ -30,9 +30,8 @@
v-for=
"(item, index) in phonePwdList"
:key=
"index"
class=
"h-8 flex items-center justify-between bg-font-light-black hover:bg-font-black text-gray-700"
@
click=
"handleClickPhoneItem(item)"
>
<div
class=
"ml-4"
>
{{ item.phone }}
</div>
<div
class=
"ml-4"
@
click=
"handleClickPhoneItem(item)"
>
{{ item.phone }}
</div>
<img
src=
"@/assets/icons/close.png"
@
click=
"handleClickDelete(item.phone)"
...
...
src/views/News/NewsList/index.vue
View file @
15294bea
...
...
@@ -4,7 +4,7 @@
<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"
class=
" h-32 bg-
gray-200
mt-2 bg-cover bg-center bg-no-repeat"
:style=
"
{'background-image': `url('${url}')`}">
</div>
<div
class=
" text-xs text-gray-400 pt-4 tracking-wide"
>
发布时间:
{{
$format
(
info
.
update_at
,
'YYYY-MM-DD'
)
}}
</div>
</div>
...
...
src/views/News/index.vue
View file @
15294bea
...
...
@@ -2,7 +2,7 @@
<div>
<nav-bar
title=
"新闻动态"
:style=
"
{ 'background-color':'#F7F7FA'}" :showSearchIcon="true" :path="{path: '/Search', query: { type: 'news' }}"/>
<div
class=
" mx-5 pt-3"
>
<van-pull-refresh
v-model=
"load
ing"
@
refresh=
"onRefresh"
>
<van-pull-refresh
class=
"divide-y"
v-model=
"refresh
ing"
@
refresh=
"onRefresh"
>
<van-list
v-model:loading=
"loading"
:finished=
"finished"
...
...
@@ -87,5 +87,7 @@ export default defineComponent({
</
script
>
<
style
scoped
>
.divide-y
{
min-height
:
calc
(
100vh
-
46px
);
}
</
style
>
\ No newline at end of file
src/views/NewsDetail/index.vue
View file @
15294bea
<
template
>
<nav-bar
:title=
"title"
:style=
"
{ 'background-color':'#F7F7FA'}" />
<div
class=
" px-5 py-8 overflow-hidden break-all"
>
<p
class=
" text-base text-gray-800 font-semibold"
>
{{
info
.
title
}}
</p>
<p
class=
" text-xs text-gray-400 mt-5 "
>
发布时间:
{{
$format
(
info
.
created_at
,
'YYYY-MM-DD'
)
}}
<span
v-if=
"title === '政策详情'"
class=
"inline-block ml-8"
>
作者:
{{
info
.
writer
}}
</span>
</p>
<div
class=
" text-sm text-gray-800 text-justify mt-5"
v-html=
"info.content"
></div>
<nav-bar
:title=
"title"
:style=
"
{ 'background-color': '#F7F7FA' }" />
<div
class=
"px-5 py-8 overflow-hidden break-all"
>
<p
class=
"text-base text-gray-800 font-semibold"
>
{{
info
.
title
}}
</p>
<p
class=
"text-xs text-gray-400 mt-5"
>
发布时间:
{{
$format
(
info
.
update_at
,
'YYYY-MM-DD'
)
}}
<span
v-if=
"title === '政策详情'"
class=
"inline-block ml-8"
>
作者:
{{
info
.
writer
}}
</span>
</p>
<div
class=
"text-sm text-gray-800 text-justify mt-5 vhtml"
v-html=
"info.content"
></div>
</div>
</
template
>
...
...
@@ -14,8 +20,8 @@ import NavBar from "@/components/NavBar/index.vue"
import
{
getDetails
,
getPolicyDetails
}
from
'@/service/NewsService/index'
export
default
defineComponent
({
components
:{
NavBar
},
setup
()
{
components
:
{
NavBar
},
setup
()
{
let
info
=
ref
({})
let
title
=
ref
(
''
)
const
route
=
useRoute
()
...
...
@@ -36,6 +42,6 @@ export default defineComponent({
})
</
script
>
<
style
scoped
>
<
style
lang=
"less"
>
</
style
>
\ No newline at end of file
src/views/PolicySupport/index.vue
View file @
15294bea
<
template
>
<div>
<nav-bar
title=
"政策支持"
:style=
"
{ 'background-color':'#F7F7FA'}" :showSearchIcon="true" :path="{path: '/Search', query: {type: 'policy'}}" />
<div
class=
" mx-5 pt-3
divide-y
"
>
<van-pull-refresh
v-model=
"load
ing"
@
refresh=
"onRefresh"
>
<div
class=
" mx-5 pt-3"
>
<van-pull-refresh
class=
"divide-y"
v-model=
"refresh
ing"
@
refresh=
"onRefresh"
>
<van-list
v-model:loading=
"loading"
:finished=
"finished"
...
...
@@ -89,4 +89,7 @@ export default defineComponent({
<
style
scoped
>
.divide-y
{
min-height
:
calc
(
100vh
-
46px
);
}
</
style
>
\ No newline at end of file
src/views/Search/index.vue
View file @
15294bea
...
...
@@ -32,6 +32,7 @@ export default defineComponent({
showResult
.
value
=
visible
request
(
val
).
then
(
res
=>
{
lists
.
value
=
res
.
data
.
items
lists
.
value
.
sort
((
a
:
{
update_at
:
number
},
b
:
{
update_at
:
number
})
=>
b
.
update_at
-
a
.
update_at
)
if
(
lists
.
value
.
length
>
0
)
{
isEmpty
.
value
=
false
}
...
...
src/views/withMenu/Home/index.vue
View file @
15294bea
...
...
@@ -144,8 +144,12 @@ export default defineComponent({
features
:
""
,
inst_name
:
""
,
hotLoanUuid
:
""
,
intervalId
:
NaN
,
};
},
beforeUnmount
(){
clearInterval
(
this
.
intervalId
)
},
mounted
()
{
this
.
getHotNews
();
this
.
fetchBannerList
();
...
...
@@ -153,6 +157,7 @@ export default defineComponent({
this
.
fetchActivityList
();
this
.
fetchLoanProductList
();
this
.
initLiveRoomCard
();
this
.
intervalId
=
window
.
setInterval
(
this
.
initLiveRoomCard
,
1000
)
},
methods
:
{
handleSeeMoreLive
()
{
...
...
src/views/withMenu/Mine/msgDetail.vue
View file @
15294bea
...
...
@@ -2,7 +2,7 @@
<div
class=
" text-center"
>
<nav-bar
title=
"消息"
:style=
"
{ 'background-color':'#F7F7FA'}"/>
<p
class=
" text-gray-800 text-sm font-semibold mt-7"
>
{{
info
.
title
}}
</p>
<p
class=
" text-gray-400 text-xs mt-3"
>
{{
$format
(
info
.
created
_at
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</p>
<p
class=
" text-gray-400 text-xs mt-3"
>
{{
$format
(
info
.
update
_at
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</p>
<p
class=
" text-gray-800 text-sm text-justify mx-5 mt-6 overflow-hidden break-all"
>
{{
info
.
content
}}
</p>
</div>
</
template
>
...
...
@@ -19,7 +19,6 @@ export default defineComponent({
const
info
=
ref
({}
as
any
)
info
.
value
=
JSON
.
parse
(
route
.
query
.
info
as
string
)
return
{
info
}
...
...
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