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
855e55d7
Commit
855e55d7
authored
Oct 19, 2021
by
Zhang Xiaojie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab.33.cn:chenqikuai/fns_front_2 into dev
parents
93b04b06
0a1f15e3
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
54 additions
and
24 deletions
+54
-24
index.html
public/index.html
+10
-0
App.vue
src/App.vue
+9
-1
index.vue
src/components/Mine/Msg/index.vue
+1
-1
index.vue
src/components/NavBar/index.vue
+18
-20
index.vue
src/components/PolicyCard/index.vue
+1
-1
AppStore.ts
src/store/AppStore.ts
+3
-0
jsBridge2.js
src/utils/jsBridge2.js
+9
-0
index.vue
src/views/News/NewsList/index.vue
+1
-1
index.vue
src/views/withMenu/Home/index.vue
+1
-0
msg.vue
src/views/withMenu/Mine/msg.vue
+1
-0
No files found.
public/index.html
View file @
855e55d7
...
...
@@ -20,6 +20,15 @@
<!-- built files will be auto injected -->
<!-- <script src="//at.alicdn.com/t/font_2711356_k19r0hh1f4.js"></script> -->
<script
src=
"//at.alicdn.com/t/font_2711356_53bl5jmwu2e.js"
></script>
<script>
(
function
()
{
var
script
=
document
.
createElement
(
'script'
);
script
.
src
=
"//cdn.jsdelivr.net/npm/eruda"
;
document
.
body
.
appendChild
(
script
);
script
.
onload
=
function
()
{
eruda
.
init
()
}
})();
</script>
</body>
</html>
\ No newline at end of file
src/App.vue
View file @
855e55d7
...
...
@@ -11,7 +11,7 @@ import { ref } from "@vue/reactivity";
import
{
connectionState
}
from
"./store/connectionStore"
;
import
FzmMessageProtocol
from
"@/utils/fzm-message-protocol"
;
import
{
generateToken
}
from
"./utils/generateToken/generate-token"
;
import
{
defineComponent
,
onBeforeUnmount
,
onMounted
,
watch
}
from
"vue"
;
import
{
defineComponent
,
onBefore
Mount
,
onBefore
Unmount
,
onMounted
,
watch
}
from
"vue"
;
import
decodeChatMessage
from
"./utils/fzm-message-protocol-chat/decodeChatMessage"
;
import
ChatDBService
from
"@/db/ChatDBService"
import
{
getMasterIdFromDisplayMsg
,
getTargetIdFromDisplayMsg
}
from
"./utils/chatutils"
;
...
...
@@ -25,11 +25,19 @@ import router from "./router";
import
{
useRoute
}
from
"vue-router"
;
import
Bridge
from
'@/utils/jsBridge2'
import
{
chatAuthCheck
}
from
"./utils/authCheck"
;
import
{
notchHeight
}
from
"./store/AppStore"
;
export
default
defineComponent
({
setup
()
{
onBeforeMount
(()
=>
{
new
Bridge
().
getNotchHeight
(
null
,
(
height
:
any
)
=>
{
height
=
Number
(
height
)
notchHeight
.
value
=
height
;
})
})
const
route
=
useRoute
();
const
initError
=
ref
(
false
);
...
...
src/components/Mine/Msg/index.vue
View file @
855e55d7
...
...
@@ -3,7 +3,7 @@
<div
class=
" flex justify-between py-5 border-b border-gray-200"
@
click=
"$router.push(
{path: 'msgDetail', query: { info: JSON.stringify(info) }})">
<span
class=
" text-sm text-left font-semibold"
:class=
"isRead?'text-gray-400':'text-gray-800'"
>
{{
info
.
title
}}
</span>
<span
class=
" text-sm text-right text-gray-400"
>
{{
$format
(
info
.
created
_at
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</span>
<span
class=
" text-sm text-right text-gray-400"
>
{{
$format
(
info
.
update
_at
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</span>
</div>
</div>
</
template
>
...
...
src/components/NavBar/index.vue
View file @
855e55d7
<
template
>
<div
class=
"navbar w-full"
style=
"z-index: 300"
>
<div
class=
"navbar w-full"
style=
"z-index: 300"
v-if=
"!bangsBlock"
>
<div
class=
"h-full theBar flex items-end px-5 justify-center relative"
class=
"h-full theBar flex items-end px-5 justify-center relative
h46
"
style=
"background:#F7F7FA; padding-bottom: 8px;"
:class=
"isBangs ? 'h72' : 'h46'"
:style=
"[(isBangs && bangsBlock) ? 'height: calc(72px - 24px - 8px)' : '']"
:style=
"[isBangs ? 'height:' + `$
{46 + heightOfNotch}px` : '']"
v-bind="$attrs"
v-if=
"(!isBangs && !bangsBlock || isBangs)"
>
<div
class=
"relative w-full flex items-center justify-center"
v-if=
"(!isBangs && !bangsBlock) || (isBangs)"
>
<div
class=
"relative w-full flex items-center justify-center"
>
<icon
v-if=
"
!bangsBlock &&
showBackIcon"
v-if=
"showBackIcon"
@
click=
"$router.go(-1)"
name=
"icon-fanhui"
class=
"absolute left-0"
...
...
@@ -40,13 +35,19 @@
</div>
</div>
<div
:class=
"isBangs ? 'h72' : 'h46'"
v-if=
"!isBangs && !bangsBlock && occupyPosition || (isBangs && !bangsBlock)"
class=
"h46"
:style=
"[isBangs ? 'height:' + `$
{46 + heightOfNotch}px` : '']"
v-if="occupyPosition"
>
</div>
<div
style=
"height: calc(72px - 24px - 8px)"
v-if=
"isBangs && bangsBlock"
></div>
</div>
<div
v-else
>
<div
:style=
"
{
'height': heightOfNotch + 'px'
}" v-if="isBangs">
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
notchHeight
}
from
"@/store/AppStore"
;
import
{
defineComponent
}
from
"vue"
;
import
Icon
from
"../common/Icon.vue"
;
export
default
defineComponent
({
...
...
@@ -91,15 +92,15 @@ export default defineComponent({
computed
:
{
isBangs
()
{
return
true
},
heightOfNotch
()
{
// 刘海屏的刘海高度 单位px
return
notchHeight
.
value
;
}
}
});
</
script
>
<
style
lang=
"less"
scoped
>
.navbar {
.h72 {
height: 72px;
}
.h46 {
height: 46px;
}
...
...
@@ -109,11 +110,8 @@ export default defineComponent({
left: 0;
right: 0;
z-index: 300;
// height: 72px;
}
.some-block {
// height: 72px;
}
.title {
font-size: 16px;
font-family: PingFangSC-Regular, PingFang SC;
...
...
src/components/PolicyCard/index.vue
View file @
855e55d7
...
...
@@ -3,7 +3,7 @@
<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 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
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>
</
template
>
...
...
src/store/AppStore.ts
0 → 100644
View file @
855e55d7
import
{
ref
}
from
'@vue/runtime-dom'
export
const
notchHeight
=
ref
(
0
)
src/utils/jsBridge2.js
View file @
855e55d7
...
...
@@ -541,5 +541,14 @@ jsBridge.prototype.bridge_live = function (params, success) {
}
}
/* 获取刘海高度 */
jsBridge
.
prototype
.
getNotchHeight
=
function
(
params
,
success
)
{
if
(
this
.
curApp
==
ANDROID
)
{
dsBridge
.
call
(
'getNotchHeight'
,
params
,
success
)
}
else
if
(
this
.
curApp
==
IOS
)
{
this
.
callHandler
(
'getNotchHeight'
,
params
,
success
)
}
}
export
default
jsBridge
;
src/views/News/NewsList/index.vue
View file @
855e55d7
...
...
@@ -6,7 +6,7 @@
v-if=
"showImg"
class=
" h-32 bg-app-blue 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
.
created
_at
,
'YYYY-MM-DD'
)
}}
</div>
<div
class=
" text-xs text-gray-400 pt-4 tracking-wide"
>
发布时间:
{{
$format
(
info
.
update
_at
,
'YYYY-MM-DD'
)
}}
</div>
</div>
</
template
>
...
...
src/views/withMenu/Home/index.vue
View file @
855e55d7
...
...
@@ -160,6 +160,7 @@ export default defineComponent({
const
ret
=
await
queryNotifyList
({
notify_type
:
"1"
});
if
(
ret
.
code
===
200
)
{
const
list
=
ret
.
data
.
items
;
list
.
sort
((
a
,
b
)
=>
b
.
update_at
-
a
.
update_at
)
this
.
notifyList
=
list
;
}
},
...
...
src/views/withMenu/Mine/msg.vue
View file @
855e55d7
...
...
@@ -22,6 +22,7 @@ export default defineComponent({
const
notifyList
=
()
=>
{
getNotifyList
(
type
).
then
(
res
=>
{
list
.
value
=
res
.
data
.
items
list
.
value
.
sort
((
a
:
{
update_at
:
number
},
b
:
{
update_at
:
number
})
=>
b
.
update_at
-
a
.
update_at
)
})
}
notifyList
()
...
...
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