Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bfcc3779
authored
Jul 15, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交服务中心代码
1 parent
91549652
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
131 additions
and
76 deletions
api/module/common.js
assets/css/sprite.scss
assets/images/sprite.png
components/HomeFrame/components/LeftSide.vue
components/HomeFrame/components/Message/MessageDetail.vue
components/HomeFrame/components/Message/index.vue
components/HomeFrame/index.vue
pages/common/messageDetail.vue
pages/common/messageList.vue
pages/common/serviceDetail/components/ServiceList.vue
pages/common/serviceDetail/index.vue
api/module/common.js
View file @
bfcc377
...
@@ -369,5 +369,13 @@ module.exports = {
...
@@ -369,5 +369,13 @@ module.exports = {
projectName
:
'pad'
,
projectName
:
'pad'
,
...
data
...
data
})
})
},
// 服务中心-消息汇总
getMessageSummary
(
data
)
{
return
http
.
post
({
method
:
'dj.pad.api.page.script.sop.message.summary.list'
,
projectName
:
'pad'
,
...
data
})
}
}
}
}
assets/css/sprite.scss
View file @
bfcc377
...
@@ -152,7 +152,7 @@
...
@@ -152,7 +152,7 @@
.icon-notice-study
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
.icon-notice-study
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.59846547314578
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4825234441602728
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.59846547314578
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4825234441602728
);}
.icon-notice-success
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-notice-success
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
124467178175618
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
375959079283887
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-notice-system
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
.icon-notice-system
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5366581415174766
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5366581415174766
);}
.icon-notice-violate
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
.icon-notice-violate
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
...
@@ -220,7 +220,7 @@
...
@@ -220,7 +220,7 @@
.icon-record
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
.icon-record
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4373401534526854
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4317988064791134
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4373401534526854
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4317988064791134
);}
.icon-right-arrow
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-right-arrow
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
3248081841432225
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
576300085251492
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-role-1
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.028985507246376812
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.028985507246376812
);
.icon-role-1
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.028985507246376812
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.028985507246376812
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5707587382779199
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5366581415174766
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5707587382779199
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5366581415174766
);}
.icon-role-2
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.028985507246376812
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.028985507246376812
);
.icon-role-2
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.028985507246376812
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.028985507246376812
);
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
.icon-rule
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.011935208866155157
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.011935208866155157
);
.icon-rule
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.011935208866155157
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.011935208866155157
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6547314578005116
)
calc
(
100vmin
*
(
1173
/
768
)
*
0
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6547314578005116
)
calc
(
100vmin
*
(
1173
/
768
)
*
0
);}
.icon-scan
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-scan
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
525149190110827
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
776641091219096
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-scene-0
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
.icon-scene-0
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.14194373401534527
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5366581415174766
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.14194373401534527
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5366581415174766
);}
.icon-scene-1
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
.icon-scene-1
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
.icon-scene-active
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
.icon-scene-active
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4880647911338448
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4317988064791134
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4880647911338448
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4317988064791134
);}
.icon-scene-change
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-scene-change
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
7254901960784315
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3
976982097186701
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-scene
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
.icon-scene
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.16240409207161124
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4825234441602728
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.16240409207161124
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4825234441602728
);}
.icon-search
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
.icon-search
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
...
@@ -249,14 +249,16 @@
...
@@ -249,14 +249,16 @@
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4317988064791134
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4317988064791134
);}
.icon-short-second-nav
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.1977834612105712
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
.icon-short-second-nav
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.1977834612105712
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.15302642796248933
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.13256606990622335
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.15302642796248933
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.13256606990622335
);}
.icon-short-task-title
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.020460358056265986
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.020460358056265986
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5861040068201193
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5839727195225917
);}
.icon-start-text
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0733162830349531
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
.icon-start-text
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0733162830349531
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4761295822676897
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.2659846547314578
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4761295822676897
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.2659846547314578
);}
.icon-stick-top-blue
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-stick-top-blue
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
39258312020460356
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
4177323103154305
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-stick-top
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-stick-top
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
1261722080136404
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
37766410912191
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-store-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-store-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
3265132139812446
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
578005115089514
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-store
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
.icon-store
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.04092071611253197
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.23657289002557544
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5366581415174766
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.23657289002557544
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5366581415174766
);}
.icon-study-active
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
.icon-study-active
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.0443307757885763
);
...
@@ -270,19 +272,21 @@
...
@@ -270,19 +272,21 @@
.icon-suggestions-arrow
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
.icon-suggestions-arrow
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.11381074168797954
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.11381074168797954
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-suggestions-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-suggestions-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
5268542199488493
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
778346121057119
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-tag-checked
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.02557544757033248
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-tag-checked
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.02557544757033248
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.42838874680306904
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3269394714407502
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.42838874680306904
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3269394714407502
);}
.icon-task-pass
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.011935208866155157
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.011935208866155157
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6547314578005116
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.03665814151747655
);}
.icon-tdcj-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
.icon-tdcj-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4855072463768116
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4855072463768116
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
.icon-time-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-time-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
7271952259164535
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4
978687127024723
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-time
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
.icon-time
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5089514066496164
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5089514066496164
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
.icon-tips-b
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-tips-b
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
4927536231884058
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
5179028132992327
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-tips-g
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.020460358056265986
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.020460358056265986
);
.icon-tips-g
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.020460358056265986
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.020460358056265986
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
5861040068201193
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5839727195225917
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.
6129582267689685
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5839727195225917
);}
.icon-tips
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.03410059676044331
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.03410059676044331
);
.icon-tips
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.03410059676044331
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.03410059676044331
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5302642796248934
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5366581415174766
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5302642796248934
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5366581415174766
);}
.icon-tool-file
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.02557544757033248
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.02557544757033248
);
.icon-tool-file
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.02557544757033248
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.02557544757033248
);
...
@@ -292,18 +296,18 @@
...
@@ -292,18 +296,18 @@
.icon-tool-pay
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.02557544757033248
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.02557544757033248
);
.icon-tool-pay
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.02557544757033248
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.02557544757033248
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3333333333333333
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5839727195225917
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.3333333333333333
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5839727195225917
);}
.icon-total
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-total
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5
12787723785166
2
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5
37936913895993
2
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-two-arrow
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.011935208866155157
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.010230179028132993
);
.icon-two-arrow
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.011935208866155157
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.010230179028132993
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6547314578005116
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.054987212276214836
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6547314578005116
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.054987212276214836
);}
.icon-visible
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
.icon-visible
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5323955669224212
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5323955669224212
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.4079283887468031
);}
.icon-warning-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-warning-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5
32821824381926
7
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5
57971014492753
7
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-work-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-work-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5
528559249786871
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5
78005115089514
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-ybtc_icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
.icon-ybtc_icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.017050298380221655
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.02514919011082694
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.02514919011082694
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-yw-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
.icon-yw-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.015345268542199489
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.13554987212276215
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.13554987212276215
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
.icon-zj-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
.icon-zj-icon
{
width
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
height
:
calc
(
100vmin
*
(
1173
/
768
)
*
0
.013640238704177323
);
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5
72890025575447
5
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
background-position
:
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.5
98039215686274
5
)
calc
(
100vmin
*
(
1173
/
768
)
*
-0
.6176470588235294
);}
\ No newline at end of file
\ No newline at end of file
assets/images/sprite.png
View file @
bfcc377
2.44 MB
|
W:
|
H:
2.44 MB
|
W:
|
H:
2-up
Swipe
Onion skin
components/HomeFrame/components/LeftSide.vue
View file @
bfcc377
...
@@ -318,14 +318,14 @@ export default {
...
@@ -318,14 +318,14 @@ export default {
}
}
},
},
// 消息中心未读总数
// 消息中心未读总数
async
getMessageCount
()
{
//
async getMessageCount () {
const
{
sceneType
}
=
uni
.
$storage
.
get
(
"userInfo"
)
//
const { sceneType } = uni.$storage.get("userInfo")
const
res
=
await
uni
.
$api
.
commonApi
.
getMessageCount
({
//
const res = await uni.$api.commonApi.getMessageCount({
status
:
0
,
// 待查看,未读
//
status: 0, // 待查看,未读
businessType
:
sceneType
//
businessType: sceneType
})
//
})
this
.
messageTotal
=
res
//
this.messageTotal = res
},
//
},
// 学习中心消息弹窗,优先级高于有修改话术弹窗
// 学习中心消息弹窗,优先级高于有修改话术弹窗
async
getMessagePop
()
{
async
getMessagePop
()
{
// 获取今天日期字符串
// 获取今天日期字符串
...
@@ -375,8 +375,9 @@ export default {
...
@@ -375,8 +375,9 @@ export default {
})
})
},
},
getMessageInfo
()
{
getMessageInfo
()
{
console
.
log
(
111111
,
'getMessageInfo'
)
// this.getMessage()
// this.getMessage()
this
.
getMessageCount
()
//
this.getMessageCount()
this
.
getMessagePop
()
this
.
getMessagePop
()
},
},
jumpPersonCenter
()
{
jumpPersonCenter
()
{
...
...
components/HomeFrame/components/Message/MessageDetail.vue
View file @
bfcc377
...
@@ -140,9 +140,6 @@ export default {
...
@@ -140,9 +140,6 @@ export default {
console
.
log
(
error
)
console
.
log
(
error
)
this
.
back
()
this
.
back
()
}
}
// if (type == 'read') this.$emit("backHome")
// else if (type == 'view') this.back('MessageList', {firstIndex: 1, tagIndex: this.tagIndex})
// this.back('MessageList', {firstIndex: 1, tagIndex: this.tagIndex})
},
},
back
()
{
back
()
{
uni
.
navigateTo
({
uni
.
navigateTo
({
...
@@ -175,22 +172,14 @@ export default {
...
@@ -175,22 +172,14 @@ export default {
const
res
=
await
uni
.
$api
.
commonApi
.
updateMessageStatus
({
const
res
=
await
uni
.
$api
.
commonApi
.
updateMessageStatus
({
idList
idList
})
})
// this.backPage()
// if (res) {
// this.backPage()
// } else {
// console.log('接口返回结果为空,可能存在问题')
// }
}
catch
(
error
)
{
}
catch
(
error
)
{
// this.backPage()
console
.
error
(
'更新消息状态时出现错误:'
,
error
)
console
.
error
(
'更新消息状态时出现错误:'
,
error
)
}
finally
{
}
finally
{
this
.
isProcessing
=
false
;
// 处理完成,将标志位设为 false
this
.
isProcessing
=
false
;
// 处理完成,将标志位设为 false
this
.
backPage
()
this
.
backPage
()
}
}
}
}
},
}
}
}
}
}
</
script
>
</
script
>
...
...
components/HomeFrame/components/Message/index.vue
View file @
bfcc377
<
template
>
<
template
>
<view>
<view>
<ServiceList
:topListProp=
"topList"
@
handleClick=
"handleClick"
/>
<ServiceList
:
messageList=
"messageList"
:
topListProp=
"topList"
@
handleClick=
"handleClick"
/>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
ServiceList
from
'../../../../pages/common/serviceDetail/components/ServiceList.vue'
;
import
ServiceList
from
'../../../../pages/common/serviceDetail/components/ServiceList.vue'
;
import
{
getMessageSummary
}
from
'../../../../api/module/common'
export
default
{
export
default
{
name
:
'MessageIndex'
,
name
:
'MessageIndex'
,
components
:
{
components
:
{
...
@@ -12,7 +13,8 @@ export default {
...
@@ -12,7 +13,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
topList
:
[]
topList
:
[],
messageList
:
[]
}
}
},
},
created
()
{
created
()
{
...
@@ -20,7 +22,18 @@ export default {
...
@@ -20,7 +22,18 @@ export default {
this
.
topList
=
topList
this
.
topList
=
topList
})
})
},
},
mounted
()
{
console
.
log
(
'消息'
)
this
.
getMessageSummary
()
},
methods
:
{
methods
:
{
// 获取服务中心列表
async
getMessageSummary
()
{
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
const
res
=
await
getMessageSummary
({
businessType
:
userInfo
.
sceneType
})
console
.
log
(
res
,
'==='
)
this
.
messageList
=
res
},
handleClick
(
item
)
{
handleClick
(
item
)
{
const
{
moduleType
}
=
item
const
{
moduleType
}
=
item
uni
.
navigateTo
({
uni
.
navigateTo
({
...
...
components/HomeFrame/index.vue
View file @
bfcc377
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<view
class=
"content-right box-class"
>
<view
class=
"content-right box-class"
>
<view
class=
"common-title"
>
服务中心
</view>
<view
class=
"common-title"
>
服务中心
</view>
<view
class=
"content-box"
>
<view
class=
"content-box"
>
<MessageIndex
/>
<MessageIndex
class=
"message-box"
ref=
"messageRef"
/>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -239,6 +239,7 @@ export default {
...
@@ -239,6 +239,7 @@ export default {
},
},
methods
:
{
methods
:
{
async
changeTab
({
item
,
jumpUrl
,
index
})
{
async
changeTab
({
item
,
jumpUrl
,
index
})
{
if
(
index
==
0
)
this
.
$refs
.
messageRef
.
getMessageSummary
()
this
.
previewOff
=
index
!=
0
this
.
previewOff
=
index
!=
0
this
.
$emit
(
'changeTab'
,
index
)
this
.
$emit
(
'changeTab'
,
index
)
this
.
showBeisen
=
false
this
.
showBeisen
=
false
...
@@ -535,6 +536,9 @@ export default {
...
@@ -535,6 +536,9 @@ export default {
position
:
relative
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
height
:
calc
(
100%
-
#{
toRpx
(
120
)}
);
height
:
calc
(
100%
-
#{
toRpx
(
120
)}
);
.message-box
{
height
:
100%
;
}
.developing
{
.developing
{
height
:
100%
;
height
:
100%
;
flex-direction
:
column
;
flex-direction
:
column
;
...
...
pages/common/messageDetail.vue
View file @
bfcc377
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
`${countdown
}
s`
:
`${countdown
}
s`
:
''
}}
<
/view
>
''
}}
<
/view
>
<
/template
>
<
/template
>
<
template
v
-
if
=
"pageType == 'service'"
>
<
template
v
-
if
=
"pageType == 'service'
&& messageInfo.status == 1
"
>
<
view
class
=
"btn blue more-script"
@
click
=
"handleMoreScript"
>
更多话术
<
/view
>
<
view
class
=
"btn blue more-script"
@
click
=
"handleMoreScript"
>
更多话术
<
/view
>
<
/template
>
<
/template
>
<
/view
>
<
/view
>
...
@@ -61,6 +61,7 @@ export default {
...
@@ -61,6 +61,7 @@ export default {
// 获取mock配置的时间
// 获取mock配置的时间
this
.
MOCKDATA
=
uni
.
$storage
.
get
(
'mock_data'
)
this
.
MOCKDATA
=
uni
.
$storage
.
get
(
'mock_data'
)
this
.
countTime
=
this
.
MOCKDATA
.
timer
||
countTimer
this
.
countTime
=
this
.
MOCKDATA
.
timer
||
countTimer
// this.countTime = 0.1
this
.
countdown
=
this
.
countTime
*
60
-
1
this
.
countdown
=
this
.
countTime
*
60
-
1
}
,
}
,
onLoad
(
options
)
{
onLoad
(
options
)
{
...
@@ -102,7 +103,11 @@ export default {
...
@@ -102,7 +103,11 @@ export default {
startTime
:
this
.
enterTime
,
startTime
:
this
.
enterTime
,
endTime
:
dayjs
(
new
Date
()).
format
(
"YYYY-MM-DD HH:mm:ss"
)
endTime
:
dayjs
(
new
Date
()).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
)
}
)
if
(
ids
)
{
this
.
back
(
ids
)
this
.
back
(
ids
)
}
else
{
this
.
handleMoreScript
()
}
// if (type == 'read') this.$emit("backHome")
// if (type == 'read') this.$emit("backHome")
// else if (type == 'view') this.back('MessageList',
{
firstIndex
:
1
}
)
// else if (type == 'view') this.back('MessageList',
{
firstIndex
:
1
}
)
// this.back('MessageList',
{
firstIndex
:
1
,
tagIndex
:
this
.
tagIndex
}
)
// this.back('MessageList',
{
firstIndex
:
1
,
tagIndex
:
this
.
tagIndex
}
)
...
@@ -129,22 +134,16 @@ export default {
...
@@ -129,22 +134,16 @@ export default {
scriptId
=
[
this
.
messageInfo
.
scriptId
]
scriptId
=
[
this
.
messageInfo
.
scriptId
]
try
{
try
{
this
.
isProcessing
=
true
;
this
.
isProcessing
=
true
;
// this.back(idList)
// 接口调用
// 接口调用
const
res
=
await
uni
.
$api
.
commonApi
.
updateMessageStatus
({
const
res
=
await
uni
.
$api
.
commonApi
.
updateMessageStatus
({
idList
idList
}
)
}
)
// if (res)
{
// this.backPage(scriptId, idList)
//
}
else
{
// console.log('接口返回结果为空,可能存在问题')
//
}
}
catch
(
error
)
{
}
catch
(
error
)
{
// this.backPage(scriptId, idList)
// this.backPage(scriptId, idList)
console
.
error
(
'更新消息状态时出现错误:'
,
error
)
console
.
error
(
'更新消息状态时出现错误:'
,
error
)
}
finally
{
}
finally
{
this
.
isProcessing
=
false
;
// 处理完成,将标志位设为 false
this
.
isProcessing
=
false
;
// 处理完成,将标志位设为 false
this
.
backPage
(
scriptId
,
idList
)
this
.
backPage
(
scriptId
)
}
}
}
}
}
,
}
,
...
...
pages/common/messageList.vue
View file @
bfcc377
...
@@ -54,7 +54,8 @@ export default {
...
@@ -54,7 +54,8 @@ export default {
pageSize
:
PAGE_SIZE
,
pageSize
:
PAGE_SIZE
,
tagList
:
[],
tagList
:
[],
tagIndex
:
''
,
tagIndex
:
''
,
scrollTop
:
0
scrollTop
:
0
,
type
:
''
}
}
},
},
computed
:
{
computed
:
{
...
@@ -75,6 +76,7 @@ export default {
...
@@ -75,6 +76,7 @@ export default {
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
console
.
log
(
options
)
console
.
log
(
options
)
if
(
options
.
type
)
this
.
type
=
options
.
type
// this.init()
// this.init()
},
},
methods
:
{
methods
:
{
...
@@ -92,9 +94,13 @@ export default {
...
@@ -92,9 +94,13 @@ export default {
});
});
},
},
back
()
{
back
()
{
let
pageNum
=
2
if
(
this
.
type
==
'read'
)
{
pageNum
=
1
}
uni
.
$emit
(
'pageBack'
)
uni
.
$emit
(
'pageBack'
)
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
2
,
delta
:
pageNum
,
animationType
:
'pop-out'
,
animationType
:
'pop-out'
,
animationDuration
:
100
animationDuration
:
100
})
})
...
...
pages/common/serviceDetail/components/ServiceList.vue
View file @
bfcc377
<
template
>
<
template
>
<scroll-view
scroll-y
class=
"service-list"
>
<view
class=
"message-index-box"
>
<view
class=
"message-index-box"
>
<view
class=
"message-list"
v-if=
"getTopList.length > 0"
>
<view
class=
"message-list"
v-if=
"getTopList.length > 0"
>
<view
:class=
"['message-item', moduleType == i.moduleType ? 'active' : '']"
v-for=
"(i, ind) in getTopList"
:key=
"ind"
@
click
.
stop=
"handleClick(i)"
>
<view
:class=
"['message-item', moduleType == i.moduleType ? 'active' : '']"
v-for=
"(i, ind) in getTopList"
:key=
"ind"
@
click
.
stop=
"handleClick(i)"
>
<view
class=
"message-item-icon"
>
<view
class=
"message-item-icon"
>
<view
:class=
"['sprite-icon', `icon-$
{moduleIconEnum[i.moduleType]}`]">
</view>
<view
:class=
"['sprite-icon', `icon-$
{moduleIconEnum[i.moduleType]}`]">
</view>
<view
class=
"message-item-icon-num"
v-if=
"i.count > 0"
>
{{
i
.
count
>
99
?
99
:
i
.
count
}}
</view>
<view
class=
"message-item-icon-num"
v-if=
"i.count > 0"
>
{{
i
.
count
>
99
?
99
:
i
.
count
}}
</view>
</view>
</view>
<view
class=
"message-item-content"
>
<view
class=
"message-item-content"
>
<view
class=
"message-item-title"
>
{{
moduleTypeEnum
[
i
.
moduleType
]
}}
</view>
<view
class=
"message-item-title"
>
{{
moduleTypeEnum
[
i
.
moduleType
]
}}
</view>
<view
class=
"message-item-desc"
>
{{
moduleContentEnum
[
i
.
moduleType
]
?
moduleContentEnum
[
i
.
moduleType
]
:
i
.
title
}}
</view>
<view
class=
"message-item-desc"
>
{{
moduleContentEnum
[
i
.
moduleType
]
?
moduleContentEnum
[
i
.
moduleType
]
:
i
.
title
}}
</view>
</view>
</view>
<view
class=
"message-item-time-box"
>
<view
class=
"message-item-time-box"
>
<view
class=
"message-item-time"
>
{{
formatTime
(
i
.
createdTime
)
}}
</view>
<view
class=
"message-item-time"
>
{{
formatTime
(
i
.
createdTime
)
}}
</view>
...
@@ -20,14 +24,16 @@
...
@@ -20,14 +24,16 @@
<view
class=
"message-group"
v-for=
"(item, index) in getList"
:key=
"index"
>
<view
class=
"message-group"
v-for=
"(item, index) in getList"
:key=
"index"
>
<view
class=
"message-date"
>
{{
item
.
date
}}
</view>
<view
class=
"message-date"
>
{{
item
.
date
}}
</view>
<view
class=
"message-list"
>
<view
class=
"message-list"
>
<view
:class=
"['message-item', moduleType == i.moduleType ? 'active' : '']"
v-for=
"(i, ind) in item.msgList"
:key=
"ind"
@
click
.
stop=
"handleClick(i)"
>
<view
:class=
"['message-item', moduleType == i.moduleType ? 'active' : '']"
v-for=
"(i, ind) in item.msgList"
:key=
"ind"
@
click
.
stop=
"handleClick(i)"
>
<view
class=
"message-item-icon"
>
<view
class=
"message-item-icon"
>
<view
:class=
"['sprite-icon', `icon-$
{moduleIconEnum[i.moduleType]}`]">
</view>
<view
:class=
"['sprite-icon', `icon-$
{moduleIconEnum[i.moduleType]}`]">
</view>
<view
class=
"message-item-icon-num"
v-if=
"i.count > 0"
>
{{
i
.
count
>
99
?
99
:
i
.
count
}}
</view>
<view
class=
"message-item-icon-num"
v-if=
"i.count > 0"
>
{{
i
.
count
>
99
?
99
:
i
.
count
}}
</view>
</view>
</view>
<view
class=
"message-item-content"
>
<view
class=
"message-item-content"
>
<view
class=
"message-item-title"
>
{{
moduleTypeEnum
[
i
.
moduleType
]
}}
</view>
<view
class=
"message-item-title"
>
{{
moduleTypeEnum
[
i
.
moduleType
]
}}
</view>
<view
class=
"message-item-desc"
>
{{
moduleContentEnum
[
i
.
moduleType
]
?
moduleContentEnum
[
i
.
moduleType
]
:
i
.
title
}}
</view>
<view
class=
"message-item-desc"
>
{{
moduleContentEnum
[
i
.
moduleType
]
?
moduleContentEnum
[
i
.
moduleType
]
:
i
.
title
}}
</view>
</view>
</view>
<view
class=
"message-item-time"
>
{{
formatTime
(
i
.
createdTime
)
}}
</view>
<view
class=
"message-item-time"
>
{{
formatTime
(
i
.
createdTime
)
}}
</view>
</view>
</view>
...
@@ -36,15 +42,13 @@
...
@@ -36,15 +42,13 @@
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<view
class=
"message-empty"
>
<view
class=
"message-empty"
>
<image
<image
class=
"message-empty-img"
src=
"../../../../assets//images/home/notice-nothing.webp"
class=
"message-empty-img"
mode=
"scaleToFill"
/>
src=
"../../../../assets//images/home/notice-nothing.webp"
mode=
"scaleToFill"
/>
<view
class=
"message-empty-text"
>
暂无消息
</view>
<view
class=
"message-empty-text"
>
暂无消息
</view>
</view>
</view>
</
template
>
</
template
>
</view>
</view>
</scroll-view>
</template>
</template>
<
script
>
<
script
>
import
dayjs
from
'dayjs'
;
import
dayjs
from
'dayjs'
;
...
@@ -59,6 +63,10 @@ export default {
...
@@ -59,6 +63,10 @@ export default {
topListProp
:
{
topListProp
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
},
messageList
:
{
type
:
Array
,
default
:
()
=>
[]
}
}
},
},
data
()
{
data
()
{
...
@@ -107,6 +115,12 @@ export default {
...
@@ -107,6 +115,12 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
messageList
:
{
handler
(
newVal
)
{
this
.
msgList
=
newVal
},
immediate
:
true
},
topListProp
:
{
topListProp
:
{
handler
(
newVal
)
{
handler
(
newVal
)
{
this
.
topList
=
newVal
this
.
topList
=
newVal
...
@@ -132,10 +146,10 @@ export default {
...
@@ -132,10 +146,10 @@ export default {
// 根据date进行分组
// 根据date进行分组
const
groupedByDate
=
{};
const
groupedByDate
=
{};
filteredList
.
forEach
(
item
=>
{
filteredList
.
forEach
(
item
=>
{
if
(
!
groupedByDate
[
item
.
str
d
ate
])
{
if
(
!
groupedByDate
[
item
.
str
D
ate
])
{
groupedByDate
[
item
.
str
d
ate
]
=
[];
groupedByDate
[
item
.
str
D
ate
]
=
[];
}
}
groupedByDate
[
item
.
str
d
ate
].
push
(
item
);
groupedByDate
[
item
.
str
D
ate
].
push
(
item
);
});
});
// 转换为数组格式,并按date降序排列
// 转换为数组格式,并按date降序排列
...
@@ -152,7 +166,7 @@ export default {
...
@@ -152,7 +166,7 @@ export default {
},
},
methods
:
{
methods
:
{
getTopInfo
()
{
getTopInfo
()
{
const
{
phone
,
shopMerchantId
,
sceneType
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
{
phone
,
shopMerchantId
,
sceneType
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
_topInfo
=
uni
.
$storage
.
get
(
'noticeTopInfo'
)
||
{}
const
_topInfo
=
uni
.
$storage
.
get
(
'noticeTopInfo'
)
||
{}
const
key
=
`
${
phone
}
-
${
shopMerchantId
}
-
${
sceneType
}
`
const
key
=
`
${
phone
}
-
${
shopMerchantId
}
-
${
sceneType
}
`
this
.
topList
=
_topInfo
[
key
]
||
[]
this
.
topList
=
_topInfo
[
key
]
||
[]
...
@@ -170,6 +184,9 @@ export default {
...
@@ -170,6 +184,9 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.service-list
{
height
:
100%
;
}
.message-index-box
{
.message-index-box
{
margin
:
0
toRpx
(
32
);
margin
:
0
toRpx
(
32
);
height
:
100%
;
height
:
100%
;
...
@@ -193,6 +210,7 @@ export default {
...
@@ -193,6 +210,7 @@ export default {
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
toRpx
(
24
);
border-radius
:
toRpx
(
24
);
padding
:
toRpx
(
24
);
padding
:
toRpx
(
24
);
&.active
{
&.active
{
background
:
#4673ff1
a
;
background
:
#4673ff1
a
;
}
}
...
@@ -237,16 +255,19 @@ export default {
...
@@ -237,16 +255,19 @@ export default {
word-break
:
break-all
;
word-break
:
break-all
;
}
}
}
}
.message-item-time
{
.message-item-time
{
color
:
#999999
;
color
:
#999999
;
font-size
:
toRpx
(
24
);
font-size
:
toRpx
(
24
);
margin-left
:
auto
;
margin-left
:
auto
;
}
}
.message-item-time-box
{
.message-item-time-box
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
margin-left
:
auto
;
margin-left
:
auto
;
.icon-stick-top
{
.icon-stick-top
{
margin-top
:
toRpx
(
4
);
margin-top
:
toRpx
(
4
);
}
}
...
@@ -254,16 +275,19 @@ export default {
...
@@ -254,16 +275,19 @@ export default {
}
}
}
}
}
}
.message-empty
{
.message-empty
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
padding-top
:
toRpx
(
144
);
padding-top
:
toRpx
(
144
);
&-img
{
&-img
{
width
:
toRpx
(
496
);
width
:
toRpx
(
496
);
height
:
toRpx
(
208
);
height
:
toRpx
(
208
);
}
}
&
-text
{
&
-text
{
color
:
#999999
;
color
:
#999999
;
font-size
:
toRpx
(
20
);
font-size
:
toRpx
(
20
);
...
...
pages/common/serviceDetail/index.vue
View file @
bfcc377
<
template
>
<
template
>
<view
class=
"detail-box"
>
<view
class=
"detail-box"
>
<view
class=
"nav-bar"
>
<view
class=
"nav-bar"
>
<view
class=
"back"
@
click=
"backPage
(null)
"
>
<view
class=
"back"
@
click=
"backPage"
>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
</view>
</view>
<view
class=
"title"
>
服务中心
</view>
<view
class=
"title"
>
服务中心
</view>
</view>
</view>
<view
class=
"detail-content"
>
<view
class=
"detail-content"
>
<view
class=
"detail-left"
>
<view
class=
"detail-left"
>
<ServiceList
:moduleType=
"moduleType"
:topListProp=
"topList"
@
handleClick=
"handleClick"
/>
<ServiceList
:moduleType=
"moduleType"
:
messageList=
"messageList"
:
topListProp=
"topList"
@
handleClick=
"handleClick"
/>
</view>
</view>
<view
class=
"detail-right"
>
<view
class=
"detail-right"
>
<view
class=
"common-title"
>
<view
class=
"common-title"
>
...
@@ -41,9 +41,9 @@
...
@@ -41,9 +41,9 @@
</view>
</view>
</view>
</view>
<uni-transition
:show=
"noticeTips"
mode=
"slide-top"
>
<uni-transition
:show=
"noticeTips"
mode=
"slide-top"
>
<view
class=
"notice-tips
blue
"
>
<view
class=
"notice-tips"
>
<
view
class=
"sprite-icon icon-notice-success"
></view
>
<
!-- <view class="sprite-icon icon-notice-success"></view> --
>
<view>
{{ topList.includes(Number(moduleType)) ? '置顶
' : '取消置顶' }}成功
</view>
<view>
{{ topList.includes(Number(moduleType)) ? '置顶
成功' : '取消置顶' }}
</view>
</view>
</view>
</uni-transition>
</uni-transition>
</view>
</view>
...
@@ -55,6 +55,7 @@ let timer = null
...
@@ -55,6 +55,7 @@ let timer = null
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
{
moduleTypeEnum
,
moduleContentEnum
}
from
'./components/contant'
import
{
moduleTypeEnum
,
moduleContentEnum
}
from
'./components/contant'
import
ServiceList
from
'./components/ServiceList.vue'
;
import
ServiceList
from
'./components/ServiceList.vue'
;
import
{
getMessageSummary
}
from
'../../../api/module/common'
export
default
{
export
default
{
name
:
'ServiceDetail'
,
name
:
'ServiceDetail'
,
components
:
{
components
:
{
...
@@ -76,7 +77,8 @@ export default {
...
@@ -76,7 +77,8 @@ export default {
scrollTop
:
0
,
scrollTop
:
0
,
isLoading
:
false
,
isLoading
:
false
,
userInfo
:
{},
userInfo
:
{},
noticeTips
:
false
noticeTips
:
false
,
messageList
:
[]
}
}
},
},
computed
:
{
computed
:
{
...
@@ -119,9 +121,17 @@ export default {
...
@@ -119,9 +121,17 @@ export default {
// this.handleClick({moduleType: this.moduleType})
// this.handleClick({moduleType: this.moduleType})
},
},
methods
:
{
methods
:
{
// 获取服务中心列表
async
getMessageSummary
(
sceneType
)
{
// const userInfo = uni.$storage.get('userInfo')
const
res
=
await
getMessageSummary
({
businessType
:
sceneType
})
console
.
log
(
res
,
'==='
)
this
.
messageList
=
res
},
// 获取缓存中置顶的列表
// 获取缓存中置顶的列表
getTopInfo
()
{
getTopInfo
()
{
const
{
phone
,
shopMerchantId
,
sceneType
}
=
this
.
userInfo
const
{
phone
,
shopMerchantId
,
sceneType
}
=
this
.
userInfo
this
.
getMessageSummary
(
sceneType
)
const
_topInfo
=
uni
.
$storage
.
get
(
'noticeTopInfo'
)
||
{}
const
_topInfo
=
uni
.
$storage
.
get
(
'noticeTopInfo'
)
||
{}
const
key
=
`
${
phone
}
-
${
shopMerchantId
}
-
${
sceneType
}
`
const
key
=
`
${
phone
}
-
${
shopMerchantId
}
-
${
sceneType
}
`
this
.
topList
=
_topInfo
[
key
]
||
[]
this
.
topList
=
_topInfo
[
key
]
||
[]
...
@@ -129,6 +139,7 @@ export default {
...
@@ -129,6 +139,7 @@ export default {
backPage
()
{
backPage
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
this
.
getMessageSummary
(
this
.
userInfo
.
sceneType
)
uni
.
$emit
(
'messageBackHome'
,
this
.
topList
)
uni
.
$emit
(
'messageBackHome'
,
this
.
topList
)
}
}
});
});
...
@@ -504,22 +515,18 @@ export default {
...
@@ -504,22 +515,18 @@ export default {
}
}
.notice-tips
{
.notice-tips
{
position
:
fixed
;
position
:
fixed
;
top
:
toRpx
(
160
);
top
:
toRpx
(
150
);
width
:
toRpx
(
400
);
left
:
50%
;
left
:
50%
;
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
color
:
#
4673ff
;
color
:
#
FFFFFF
;
font-size
:
toRpx
(
28
);
font-size
:
toRpx
(
28
);
padding
:
toRpx
(
16
)
toRpx
(
24
);
padding
:
toRpx
(
16
)
toRpx
(
24
);
border-radius
:
toRpx
(
8
);
border-radius
:
toRpx
(
8
);
z-index
:
1
;
z-index
:
1
;
&.blue
{
background-color
:
#000000
cc
;
background
:
#4673ff1
a
;
}
.icon-notice-success
{
margin-right
:
toRpx
(
16
);
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment