Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
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
xugong
hls-xcmg-vue-app
Commits
5f5939c1
Commit
5f5939c1
authored
Jun 30, 2023
by
郑娟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge remote-tracking branch 'origin/dev20230131_android' into dev20230131_ios
parent
e061768e
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
181 additions
and
21 deletions
+181
-21
clear.png
src/assets/messageCenter/clear.png
+0
-0
batchSign.vue
src/pages/carConfirm/batchSign.vue
+9
-11
my-contract.vue
src/pages/contractCreate/my-contract.vue
+1
-1
contract-signing.vue
src/pages/contractSigning/contract-signing.vue
+1
-2
function-list.vue
src/pages/functionCenter/function-list.vue
+59
-4
message-list.vue
src/pages/messageCenter/message-list.vue
+58
-1
reject-detail.vue
src/pages/messageCenter/reject-detail.vue
+13
-0
tab.vue
src/pages/tab.vue
+40
-2
No files found.
src/assets/messageCenter/clear.png
0 → 100644
View file @
5f5939c1
3.49 KB
src/pages/carConfirm/batchSign.vue
View file @
5f5939c1
...
@@ -43,10 +43,8 @@ export default {
...
@@ -43,10 +43,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
prolists
:
[],
prolists
:
[],
// title: this.$route.query.name === 'confirmList' ? '批量签署电子文件' : '批量签署电子文件',
title
:
this
.
$route
.
query
.
name
===
'confirmList'
?
'批量签署电子文件'
:
'批量签署电子文件'
,
// buttonName: this.$route.query.name === 'confirmList' ? '签署电子文件' : '签署电子文件',
buttonName
:
this
.
$route
.
query
.
name
===
'confirmList'
?
'签署电子文件'
:
'签署电子文件'
,
title
:
this
.
$route
.
query
.
name
===
'confirmList'
?
'批量签署电子合同'
:
'批量签署征信授权书'
,
buttonName
:
this
.
$route
.
query
.
name
===
'confirmList'
?
'签署电子合同'
:
'签署征信授权'
,
list
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleContact'
)),
list
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleContact'
)),
checkList
:
[],
// 需要进行签署的合同
checkList
:
[],
// 需要进行签署的合同
...
@@ -65,9 +63,9 @@ export default {
...
@@ -65,9 +63,9 @@ export default {
let
url
=
process
.
env
.
basePath
+
'batch_check_sign'
let
url
=
process
.
env
.
basePath
+
'batch_check_sign'
let
data_class
=
vm
.
$route
.
query
.
name
===
'confirmList'
?
'LEASE_ITEM'
:
'PRJ_CONFIRM'
let
data_class
=
vm
.
$route
.
query
.
name
===
'confirmList'
?
'LEASE_ITEM'
:
'PRJ_CONFIRM'
let
param
=
{
'master'
:
list
.
map
(
item
=>
({
confirm_id
:
item
.
confirm_id
,
data_class
}))
}
let
param
=
{
'master'
:
list
.
map
(
item
=>
({
confirm_id
:
item
.
confirm_id
,
data_class
}))
}
//
let user_bp_type = JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_type
let
user_bp_type
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'now_user_bp_bind_id'
)).
bp_type
//
console.log('~~~',user_bp_type === 'AGENT');
console
.
log
(
'~~~'
,
user_bp_type
===
'AGENT'
);
//
if (user_bp_type === 'AGENT') param['content_type'] = 'PRODUCT_SALE_CONTRACT'
if
(
user_bp_type
===
'AGENT'
)
param
[
'content_type'
]
=
'PRODUCT_SALE_CONTRACT'
hlsPopup
.
showLoading
(
'请稍候'
)
hlsPopup
.
showLoading
(
'请稍候'
)
let
res
=
await
vm
.
$post
(
url
,
param
)
let
res
=
await
vm
.
$post
(
url
,
param
)
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
...
@@ -117,8 +115,8 @@ export default {
...
@@ -117,8 +115,8 @@ export default {
let
data_class
=
this
.
$route
.
query
.
name
===
'confirmList'
?
'LEASE_ITEM'
:
'PRJ_CONFIRM'
let
data_class
=
this
.
$route
.
query
.
name
===
'confirmList'
?
'LEASE_ITEM'
:
'PRJ_CONFIRM'
let
param
=
{
'master'
:
this
.
list
.
map
(
item
=>
({
confirm_id
:
item
.
confirm_id
,
data_class
}))
}
let
param
=
{
'master'
:
this
.
list
.
map
(
item
=>
({
confirm_id
:
item
.
confirm_id
,
data_class
}))
}
//
let user_bp_type = JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_type
let
user_bp_type
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'now_user_bp_bind_id'
)).
bp_type
//
if (user_bp_type === 'AGENT') param['content_type'] = 'PRODUCT_SALE_CONTRACT'
if
(
user_bp_type
===
'AGENT'
)
param
[
'content_type'
]
=
'PRODUCT_SALE_CONTRACT'
hlsPopup
.
showLoading
(
'请稍候'
)
hlsPopup
.
showLoading
(
'请稍候'
)
let
res
=
await
this
.
$post
(
url
,
param
)
let
res
=
await
this
.
$post
(
url
,
param
)
this
.
hlsPopup
.
hideLoading
()
this
.
hlsPopup
.
hideLoading
()
...
@@ -190,8 +188,8 @@ export default {
...
@@ -190,8 +188,8 @@ export default {
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'now_user_bp_bind_id'
)).
bp_id
,
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'now_user_bp_bind_id'
)).
bp_id
,
},
},
}
}
//
let user_bp_type = JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_type
let
user_bp_type
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'now_user_bp_bind_id'
)).
bp_type
//
if (user_bp_type === 'AGENT') param.master['content_type'] = 'PRODUCT_SALE_CONTRACT'
if
(
user_bp_type
===
'AGENT'
)
param
.
master
[
'content_type'
]
=
'PRODUCT_SALE_CONTRACT'
hlsPopup
.
showLoading
(
'请稍候'
)
hlsPopup
.
showLoading
(
'请稍候'
)
let
res
=
await
this
.
$post
(
url
,
param
)
let
res
=
await
this
.
$post
(
url
,
param
)
this
.
hlsPopup
.
hideLoading
()
this
.
hlsPopup
.
hideLoading
()
...
...
src/pages/contractCreate/my-contract.vue
View file @
5f5939c1
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<img
src=
"@/assets/myInfo/contractCreate.png"
>
<img
src=
"@/assets/myInfo/contractCreate.png"
>
<span>
融租方案创建
</span>
<span>
融租方案创建
</span>
</div>
</div>
<div
v-if=
"['TENANT', 'GUTA'].includes(user_bp_type)"
class=
"contract-item"
@
click=
"goSign()"
>
<div
v-if=
"['TENANT', 'GUTA'
, 'AGENT'
].includes(user_bp_type)"
class=
"contract-item"
@
click=
"goSign()"
>
<p
v-if=
"signCount > 0"
:class=
"
{'content-wrap-class-width':signCount > 99, 'content-wrap-class':signCount
<
99
}"
>
{{
signCount
>
99
?
'99+'
:
signCount
}}
</p>
<p
v-if=
"signCount > 0"
:class=
"
{'content-wrap-class-width':signCount > 99, 'content-wrap-class':signCount
<
99
}"
>
{{
signCount
>
99
?
'99+'
:
signCount
}}
</p>
<img
src=
"@/assets/myInfo/unSign.png"
>
<img
src=
"@/assets/myInfo/unSign.png"
>
<span>
融租方案确认
</span>
<span>
融租方案确认
</span>
...
...
src/pages/contractSigning/contract-signing.vue
View file @
5f5939c1
...
@@ -82,8 +82,7 @@
...
@@ -82,8 +82,7 @@
<span
:style=
"
{ color: chooseAll ? '#1d3fff' : 'rgb(212,214,212)' }">全选
</span>
<span
:style=
"
{ color: chooseAll ? '#1d3fff' : 'rgb(212,214,212)' }">全选
</span>
</div>
</div>
<button
class=
"cancel"
@
click=
"cancelRadio"
>
× 取消批量
</button>
<button
class=
"cancel"
@
click=
"cancelRadio"
>
× 取消批量
</button>
<!--
<button
class=
"sign"
@
click=
"signContract"
>
签订电子文件
</button>
-->
<button
class=
"sign"
@
click=
"signContract"
>
签订电子文件
</button>
<button
class=
"sign"
@
click=
"signContract"
>
签订征信授权书
</button>
</div>
</div>
<div
v-show=
"num == 1 && !isRadio"
class=
"button-box"
>
<div
v-show=
"num == 1 && !isRadio"
class=
"button-box"
>
...
...
src/pages/functionCenter/function-list.vue
View file @
5f5939c1
...
@@ -52,7 +52,9 @@
...
@@ -52,7 +52,9 @@
<div
class=
"info-content"
>
<div
class=
"info-content"
>
<div
class=
"add-name"
>
<div
class=
"add-name"
>
<img
src=
"@/assets/functionCenter/con-sign@2x.png"
alt=
""
>
<img
src=
"@/assets/functionCenter/con-sign@2x.png"
alt=
""
>
<div
class=
"name-title"
>
融租方案确认
</div>
<div
class=
"name-title"
>
融租方案确认
<p
v-if=
"signCount > 0"
:class=
"
{'content-wrap-class-width':signCount > 99, 'content-wrap-class':signCount
<
=
99
}"
>
{{
signCount
>
99
?
'99+'
:
signCount
}}
</p>
</div>
</div>
</div>
<div
class=
"add-content"
@
click=
"conSign"
>
<div
class=
"add-content"
@
click=
"conSign"
>
<img
src=
"@/assets/functionCenter/in@2x.png"
alt=
""
>
<img
src=
"@/assets/functionCenter/in@2x.png"
alt=
""
>
...
@@ -61,7 +63,7 @@
...
@@ -61,7 +63,7 @@
<div
class=
"info-content"
>
<div
class=
"info-content"
>
<div
class=
"add-name"
>
<div
class=
"add-name"
>
<img
src=
"@/assets/functionCenter/con-sign@2x.png"
alt=
""
>
<img
src=
"@/assets/functionCenter/con-sign@2x.png"
alt=
""
>
<div
class=
"name-title"
>
融
租
合同创建
</div>
<div
class=
"name-title"
>
融
资
合同创建
</div>
</div>
</div>
<div
class=
"add-content"
@
click=
"goStart"
>
<div
class=
"add-content"
@
click=
"goStart"
>
<img
src=
"@/assets/functionCenter/in@2x.png"
alt=
""
>
<img
src=
"@/assets/functionCenter/in@2x.png"
alt=
""
>
...
@@ -79,7 +81,9 @@
...
@@ -79,7 +81,9 @@
<div
class=
"info-content"
>
<div
class=
"info-content"
>
<div
class=
"add-name"
>
<div
class=
"add-name"
>
<img
src=
"@/assets/functionCenter/car@2x.png"
alt=
""
>
<img
src=
"@/assets/functionCenter/car@2x.png"
alt=
""
>
<div
class=
"name-title"
>
合同签订
</div>
<div
class=
"name-title"
>
合同签订
<p
v-if=
"carCount > 0"
:class=
"
{'content-wrap-class-width':carCount > 99, 'content-wrap-class':carCount
<
=
99
}"
>
{{
carCount
>
99
?
'99+'
:
carCount
}}
</p>
</div>
</div>
</div>
<div
class=
"add-content"
@
click=
"goCarConfirm"
>
<div
class=
"add-content"
@
click=
"goCarConfirm"
>
<img
src=
"@/assets/functionCenter/in@2x.png"
alt=
""
>
<img
src=
"@/assets/functionCenter/in@2x.png"
alt=
""
>
...
@@ -179,6 +183,9 @@ export default {
...
@@ -179,6 +183,9 @@ export default {
pagenum
:
1
,
pagenum
:
1
,
role
:
'未绑定'
,
role
:
'未绑定'
,
// multipleRole: window.localStorage.getItem('multipleRole'),
// multipleRole: window.localStorage.getItem('multipleRole'),
signCount
:
0
,
// 融租方案确认 待办数量
carCount
:
0
,
// 合同签订 代待办数量
}
}
},
},
computed
:
{},
computed
:
{},
...
@@ -186,9 +193,12 @@ export default {
...
@@ -186,9 +193,12 @@ export default {
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
// if (true) {
// if (true) {
next
(
vm
=>
{
next
(
vm
=>
{
vm
.
signCount
=
0
// 融租方案确认 待办数量
vm
.
carCount
=
0
// 合同签订 代待办数量
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
if
(
window
.
localStorage
.
getItem
(
'user_phone'
))
{
vm
.
userQuery
()
vm
.
userQuery
()
}
}
vm
.
numQuery
()
})
})
// }
// }
// next()
// next()
...
@@ -197,6 +207,23 @@ export default {
...
@@ -197,6 +207,23 @@ export default {
// this.userQuery()
// this.userQuery()
// },
// },
methods
:
{
methods
:
{
numQuery
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'number_display_query'
let
param
=
{
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'now_user_bp_bind_id'
)).
bp_id
,
}
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
if
(
res
.
result
===
'S'
)
{
if
(
'info'
in
res
)
{
vm
.
signCount
=
res
.
info
.
con_confirm_num
||
0
vm
.
carCount
=
res
.
info
.
car_confirm_num
||
0
}
}
else
{
this
.
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
userQuery
()
{
userQuery
()
{
let
vm
=
this
let
vm
=
this
// let url = $config.basePath + 'user_query'
// let url = $config.basePath + 'user_query'
...
@@ -760,6 +787,34 @@ export default {
...
@@ -760,6 +787,34 @@ export default {
color: #656464;
color: #656464;
letter-spacing: 0;
letter-spacing: 0;
line-height: 18px;
line-height: 18px;
position:relative;
.content-wrap-class {
position: absolute;
top: 0;
right: -21px;
font-size: 10px;
width: 18px;
height: 18px;
text-align: center;
line-height: 18px;
background-color: red;
color: #fff;
border-radius: 50%;
}
.content-wrap-class-width {
position: absolute;
top: 0px;
right: -30px;
font-size: 10px;
width: 28px;
height: 18px;
text-align: center;
line-height: 18px;
background-color: red;
color: #fff;
border-radius: 50%;
}
}
}
}
}
...
...
src/pages/messageCenter/message-list.vue
View file @
5f5939c1
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
<h-view
id=
"message-center"
>
<h-view
id=
"message-center"
>
<h-header
class=
"bar-custom"
>
<h-header
class=
"bar-custom"
>
<div
slot=
"center"
class=
"top-word"
>
消息通知
</div>
<div
slot=
"center"
class=
"top-word"
>
消息通知
</div>
<div
slot=
"right"
style=
"padding: 11px 13px 0 0;"
>
<!--
<Icon
name=
"browsing-history-o"
color=
"white"
size=
"6vw"
@
click=
"readAll"
/>
-->
<img
src=
"@/assets/messageCenter/clear.png"
width=
"31%"
alt=
""
@
click=
"readAll"
>
</div>
</h-header>
</h-header>
<!--
<h-content
class=
"content"
>
-->
<!--
<h-content
class=
"content"
>
-->
...
@@ -22,10 +26,13 @@
...
@@ -22,10 +26,13 @@
<div
v-if=
"item.notice_type==1"
slot=
"left-icon"
class=
"left-icon red-icon-box"
>
<div
v-if=
"item.notice_type==1"
slot=
"left-icon"
class=
"left-icon red-icon-box"
>
<img
src=
"@/assets/messageCenter/message.png"
>
<img
src=
"@/assets/messageCenter/message.png"
>
</div>
</div>
<div
<div
slot=
"name"
slot=
"name"
:class=
"
{'font-color':true,'over-color':item.notice_type==2,'red':item.notice_type==1}"
:class=
"
{'font-color':true,'over-color':item.notice_type==2,'red':item.notice_type==1}"
>
{{
item
.
notice_title
}}
</div>
>
{{
item
.
notice_title
}}
<p
:class=
"
{'notice-status':true, 'notice-read':item.notice_status==='READ','notice-unread':item.notice_status==='SENT'}">
{{
item
.
notice_status
==
'READ'
?
'已读'
:
'未读'
}}
</p>
</div>
<div
slot=
"content"
class=
"time-color"
>
{{
item
.
notice_time
}}
</div>
<div
slot=
"content"
class=
"time-color"
>
{{
item
.
notice_time
}}
</div>
</item>
</item>
<div
class=
"msg-content"
>
<div
class=
"msg-content"
>
...
@@ -63,7 +70,10 @@
...
@@ -63,7 +70,10 @@
</h-view>
</h-view>
</
template
>
</
template
>
<
script
>
<
script
>
// import {Icon} from 'vant'
// import 'vant/lib/icon/style'
export
default
{
export
default
{
// components: {Icon},
data
()
{
data
()
{
return
{
return
{
textHeight
:
null
,
textHeight
:
null
,
...
@@ -97,6 +107,34 @@ export default {
...
@@ -97,6 +107,34 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
// 全部已读
readAll
()
{
let
vm
=
this
hlsPopup
.
showConfirm
({
title
:
'是否全部已读'
,
// content: `是否全部已读`,
onConfirm
:
data
=>
{
if
(
data
===
1
)
{
// 全部已读接口 app_notice_update
let
url
=
process
.
env
.
basePath
+
'app_notice_update'
let
param
=
{
phone
:
window
.
localStorage
.
getItem
(
'user_phone'
),
update_type
:
'ALL'
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
list
=
[]
vm
.
pagenum
=
1
vm
.
getInfo
()
}
})
console
.
log
(
data
)
}
},
})
},
// 计算文字 显示展开 收起
// 计算文字 显示展开 收起
calculateText
()
{
calculateText
()
{
// 获取一行文字的height 计算当前文字比较列表文字
// 获取一行文字的height 计算当前文字比较列表文字
...
@@ -159,6 +197,7 @@ export default {
...
@@ -159,6 +197,7 @@ export default {
vm
.
pagenum
++
vm
.
pagenum
++
vm
.
$refs
.
scroll
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
vm
.
$forceUpdate
()
}
else
{
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
...
@@ -399,4 +438,22 @@ export default {
...
@@ -399,4 +438,22 @@ export default {
top: 0.2rem;
top: 0.2rem;
}
}
}
}
//消息已读样式
.notice-status{
font-size: 12px;
display: inline-block;
// background-color: #fc8129;
color: white;
width: 34px;
text-align: center;
border-radius: 9px;
}
.notice-read{
background-color: #c3bfbc;
}
.notice-unread{
background-color: #fc2946;
}
</
style
>
</
style
>
src/pages/messageCenter/reject-detail.vue
View file @
5f5939c1
...
@@ -24,9 +24,22 @@ export default {
...
@@ -24,9 +24,22 @@ export default {
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
next
(
vm
=>
{
vm
.
getDetail
()
vm
.
getDetail
()
vm
.
getReaded
()
})
})
},
},
methods
:
{
methods
:
{
getReaded
()
{
//已读
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'app_notice_update'
let
param
=
{
notice_id
:
vm
.
$route
.
params
.
notice_id
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
})
},
getDetail
()
{
getDetail
()
{
let
vm
=
this
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'app_notice_detail_query'
let
url
=
process
.
env
.
basePath
+
'app_notice_detail_query'
...
...
src/pages/tab.vue
View file @
5f5939c1
...
@@ -26,10 +26,13 @@
...
@@ -26,10 +26,13 @@
<img
slot=
"icon"
src=
"../assets/image/tab/n_product@2x.png"
>
<img
slot=
"icon"
src=
"../assets/image/tab/n_product@2x.png"
>
<span
slot=
"label"
>
产品中心
</span>
<span
slot=
"label"
>
产品中心
</span>
</tabbar-item>
</tabbar-item>
<tabbar-item
:link=
"
{path:'/tab/message-center'}" :selected="$route.path === '/tab/message-center'">
<tabbar-item
:link=
"
{path:'/tab/message-center'}" :selected="$route.path === '/tab/message-center'"
class="notice"
>
<img
slot=
"icon-active"
src=
"../assets/image/tab/message@2x.png"
>
<img
slot=
"icon-active"
src=
"../assets/image/tab/message@2x.png"
>
<img
slot=
"icon"
src=
"../assets/image/tab/n_message@2x.png"
>
<img
slot=
"icon"
src=
"../assets/image/tab/n_message@2x.png"
>
<span
slot=
"label"
>
消息
</span>
<div
slot=
"label"
>
消息
<p
v-if=
"messageNum>0"
class=
"notice-status"
>
{{
messageNum
<=
99
?
messageNum
:
'99+'
}}
</p>
</div>
</tabbar-item>
</tabbar-item>
<tabbar-item
:link=
"
{path:'/tab/function-center'}" :selected="$route.path === '/tab/function-center'">
<tabbar-item
:link=
"
{path:'/tab/function-center'}" :selected="$route.path === '/tab/function-center'">
<img
slot=
"icon-active"
src=
"../assets/image/tab/function@2x.png"
>
<img
slot=
"icon-active"
src=
"../assets/image/tab/function@2x.png"
>
...
@@ -53,8 +56,12 @@ export default {
...
@@ -53,8 +56,12 @@ export default {
return
{
return
{
pathList
:
[],
pathList
:
[],
transitionName
:
''
,
transitionName
:
''
,
messageNum
:
0
,
// 未读消息数量
}
}
},
},
activated
()
{
this
.
getUnreadNum
()
},
watch
:
{
// 监听路由变化
watch
:
{
// 监听路由变化
$route
(
to
,
from
)
{
$route
(
to
,
from
)
{
if
(
this
.
pathList
.
includes
(
to
.
path
))
{
if
(
this
.
pathList
.
includes
(
to
.
path
))
{
...
@@ -83,6 +90,25 @@ export default {
...
@@ -83,6 +90,25 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
getUnreadNum
()
{
console
.
log
(
'消息记录获取'
);
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'hls_app_notice_query'
let
param
=
{
phone
:
window
.
localStorage
.
getItem
(
'user_phone'
),
pagesize
:
'10'
,
pagenum
:
1
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
let
returnData
=
[]
returnData
=
res
.
lists
if
(
returnData
.
length
!==
0
)
vm
.
messageNum
=
returnData
[
0
].
unread_count
}
})
},
tabClick
()
{
tabClick
()
{
let
vm
=
this
let
vm
=
this
if
(
!
window
.
localStorage
.
getItem
(
'password'
))
{
if
(
!
window
.
localStorage
.
getItem
(
'password'
))
{
...
@@ -161,4 +187,16 @@ export default {
...
@@ -161,4 +187,16 @@ export default {
}
}
}
}
}
}
.notice{
position: relative;
.notice-status{
position: absolute;
top: 0;
right: 10px;
background-color: #fc2946;
color: white;
width: 23px;
border-radius: 9px;
}
}
</
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