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 966e154f
authored
Jun 09, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改ai集市和消息中心
1 parent
d03fee46
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
77 additions
and
18 deletions
assets/images/common/study-center-bg.webp
components/HomeFrame/components/AIBazaar.vue
components/HomeFrame/components/LeftSide.vue
components/HomeFrame/components/MessagePop.vue
pages/common/messageList.vue
assets/images/common/study-center-bg.webp
0 → 100644
View file @
966e154
No preview for this file type
components/HomeFrame/components/AIBazaar.vue
View file @
966e154
...
...
@@ -9,8 +9,9 @@
<view
class=
"list-title"
>
{{
item
.
preEntryName
}}
</view>
<view
class=
"item-box"
>
<view
class=
"item"
@
click=
"jump(i)"
v-for=
"i in item.agentList"
>
<view
class=
"text"
>
{{
i
.
entryName
}}
</view>
<image
class=
"item-img"
:src=
"i.entryLogoUrl"
mode=
"scaleToFill"
/>
<view
class=
"text"
>
{{
i
.
entryName
}}
</view>
<view
class=
"red-dot"
></view>
</view>
</view>
</view>
...
...
@@ -80,7 +81,7 @@ export default {
}
}
.ai-content
{
margin
:
toRpx
(
64
)
toRpx
(
64
)
;
margin
:
toRpx
(
64
);
}
.list-box
{
border-radius
:
toRpx
(
16
);
...
...
@@ -110,27 +111,38 @@ export default {
display
:
flex
;
flex-wrap
:
wrap
;
margin-top
:
toRpx
(
40
);
gap
:
toRpx
(
48
);
.item
{
display
:
inline-flex
;
align-items
:
center
;
width
:
toRpx
(
412
);
box-sizing
:
border-box
;
font-size
:
toRpx
(
30
);
color
:
#333
;
border-radius
:
toRpx
(
16
);
box-shadow
:
0
toRpx
(
8
)
toRpx
(
24
)
0
#2c66f71
a
;
padding
:
toRpx
(
16
)
toRpx
(
32
);
margin-right
:
toRpx
(
50
);
//
margin-right
:
toRpx
(
50
);
margin-bottom
:
toRpx
(
30
);
&:nth-child(5n)
{
margin-right
:
0
;
}
.text
{
width
:
toRpx
(
160
);
margin-left
:
toRpx
(
15
);
//
width
:
toRpx
(
160
);
}
&
-img
{
width
:
toRpx
(
96
);
height
:
toRpx
(
96
);
//
margin-left
:
toRpx
(
20
);
}
.red-dot
{
background-color
:
#F24724
;
width
:
toRpx
(
16
);
height
:
toRpx
(
16
);
border-radius
:
50%
;
margin-left
:
toRpx
(
8
);
}
}
}
}
...
...
components/HomeFrame/components/LeftSide.vue
View file @
966e154
...
...
@@ -32,7 +32,7 @@
</view>
<!-- 客服弹框 -->
<!-- <kf-box ref="kfRef" /> -->
<message-pop
ref=
"kfRef"
:messageData=
"messageData"
></message-pop>
<message-pop
ref=
"kfRef"
:
type=
"messageType"
:
messageData=
"messageData"
></message-pop>
<!-- 设置弹框 -->
<setting-box
ref=
"settingRef"
@
stopAudio=
"$emit('stopAudio')"
/>
</view>
...
...
@@ -85,7 +85,8 @@ export default {
trackId
:
0
,
trackInterval
:
null
,
collectTrack
:
false
,
hasPerson
:
false
hasPerson
:
false
,
messageType
:
'study'
}
},
watch
:
{
...
...
@@ -208,6 +209,7 @@ export default {
}
})
},
// 获取话术未读列表
async
getMessage
()
{
console
.
log
(
'获取话术'
,
uni
.
$storage
.
get
(
"userInfo"
))
const
{
sceneType
,
uuid
}
=
uni
.
$storage
.
get
(
"userInfo"
)
...
...
@@ -217,9 +219,11 @@ export default {
})
if
(
res
.
total
)
{
this
.
messageData
=
res
this
.
messageType
=
'attendance'
this
.
$refs
.
kfRef
.
open
()
}
},
// 消息中心未读总数
async
getMessageCount
()
{
const
{
sceneType
}
=
uni
.
$storage
.
get
(
"userInfo"
)
const
res
=
await
uni
.
$api
.
commonApi
.
getMessageCount
({
...
...
@@ -230,6 +234,8 @@ export default {
this
.
messageTotal
=
res
},
openPop
()
{
// this.messageType = 'attendance'
// this.$refs.kfRef.open()
uni
.
navigateTo
({
url
:
`/pages/common/messageList`
})
...
...
components/HomeFrame/components/MessagePop.vue
View file @
966e154
<
template
>
<uni-popup
ref=
"popup"
type=
"bottom"
border-radius=
"16px"
:mask-click=
"false"
>
<view
class=
"kf-box"
>
<image
class=
"message-bg"
:src=
"require('@//assets/images/common/message-bg.webp')"
></image>
<view
class=
"text text-first"
>
本周优秀话术推送
</view>
<view
class=
"text"
>
你有
{{
messageData
.
total
}}
条消息待查看
</view>
<view
class=
"btn"
@
click=
"toMessage"
>
去查看
</view>
<template
v-if=
"type=='attendance'"
>
<image
class=
"message-bg"
:src=
"require('@//assets/images/common/message-bg.webp')"
></image>
<view
class=
"text text-first"
>
本周优秀话术推送
</view>
<view
class=
"text"
>
你有
{{
messageData
.
total
}}
条消息待查看
</view>
<view
class=
"btn"
@
click=
"toMessage"
>
去查看
</view>
</
template
>
<!-- 当前有 3 个学习任务待完成,请及时处理。
坚持学习助您能力提升! -->
<
template
v-else-if=
"type=='study'"
>
<image
class=
"message-bg"
:src=
"require('@//assets/images/common/study-center-bg.webp')"
></image>
<view
class=
"text text-first study-title"
>
学习提醒
</view>
<view
class=
"text study-text"
>
当前有
{{
messageData
.
total
}}
个学习任务待完成,请及时处理。
</view>
<view
class=
"text study-text"
>
坚持学习助您能力提升!
</view>
<view
class=
"btn study-btn"
@
click=
"jumpStudyCenter"
>
去查看
</view>
</
template
>
</view>
</uni-popup>
...
...
@@ -14,7 +25,8 @@
export
default
{
name
:
'MessagePop'
,
props
:
{
messageData
:
Object
messageData
:
Object
,
type
:
String
,
},
data
()
{
return
{
...
...
@@ -36,6 +48,9 @@ export default {
const
{
messageData
}
=
this
this
.
showPage
(
'MessageDetail'
,
{...
messageData
,
type
:
'read'
})
this
.
close
()
},
jumpStudyCenter
()
{
this
.
close
()
}
}
}
...
...
@@ -56,6 +71,7 @@ export default {
height
:
toRpx
(
346
);
border-radius
:
toRpx
(
48
);
}
.text
{
text-align
:
center
;
color
:
#333333
;
...
...
@@ -64,6 +80,14 @@ export default {
&.text-first
{
margin-top
:
toRpx
(
40
);
}
&
.study-text
{
line-height
:
toRpx
(
48
);
}
&
.study-title
{
font-weight
:
500
;
font-size
:
toRpx
(
40
);
margin-top
:
toRpx
(
30
);
}
}
.btn
{
margin
:
toRpx
(
70
)
auto
;
...
...
@@ -78,6 +102,9 @@ export default {
font-weight
:
500
;
text-align
:
center
;
line-height
:
toRpx
(
80
);
&.study-btn
{
margin
:
toRpx
(
48
)
auto
;
}
}
}
</
style
>
\ No newline at end of file
pages/common/messageList.vue
View file @
966e154
...
...
@@ -61,6 +61,15 @@
<
view
class
=
"message-content warning-content"
><
view
>
你有以下接待记录判定为话术违规
<
/view>{{ item.warningContent
}}
<
/view
>
<
/template
>
<
template
v
-
else
-
if
=
"firstIndex == 3"
>
<
view
class
=
"message-header"
>
<
view
:
class
=
"['dot', item.status == 1 ? '' : 'red']"
><
/view
>
<
view
class
=
"message-type"
>
AI
导师消息
<
/view
>
<
view
class
=
"message-time"
>
{{
item
.
pushTime
}}
<
/view
>
<
/view
>
<
view
class
=
"message-content warning-content"
><
view
>
您有新的消息【
{{
item
.
sopTaskDetailInfoDTO
?
item
.
sopTaskDetailInfoDTO
.
checkDate
:
''
}}
+
战败复盘报告】
AI
导师来帮你进行战败复盘了,请点击查看
<
/view
>
<
/view
>
<
/template
>
<
/view
>
<
/template
>
<
template
v
-
else
>
...
...
@@ -92,15 +101,17 @@ export default {
typeList
:
[
{
tabName
:
'系统通知'
,
num
:
()
=>
''
}
,
{
tabName
:
'优秀话术'
,
num
:
()
=>
''
}
,
{
tabName
:
'预警通知'
,
num
:
()
=>
''
}
{
tabName
:
'预警通知'
,
num
:
()
=>
''
}
,
{
tabName
:
'AI导师'
,
num
:
()
=>
''
}
],
CONTRNT_TYPE
:
CONTRNT_TYPE
,
firstIndex
:
0
,
firstLeft
:
[
'first'
,
'second'
,
'three'
],
firstClass
:
[
'first-nav'
,
'second-nav'
,
'second-nav'
],
firstLeft
:
[
'first'
,
'second'
,
'three'
,
'four'
],
firstClass
:
[
'first-nav'
,
'second-nav'
,
'second-nav'
,
'second-nav'
],
systemList
:
[],
messageList
:
[],
earlyWarnList
:
[],
aiTutor
:
[],
nothing
:
false
,
total
:
0
,
pageNum
:
PAGE_NUM
,
...
...
@@ -115,7 +126,8 @@ export default {
const
listMap
=
{
0
:
this
.
systemList
,
1
:
this
.
messageList
,
2
:
this
.
earlyWarnList
2
:
this
.
earlyWarnList
,
3
:
this
.
aiTutor
}
;
if
(
this
.
firstIndex
in
listMap
)
{
return
listMap
[
this
.
firstIndex
];
...
...
@@ -138,7 +150,7 @@ export default {
case
2
:
return
'scroll-list'
;
default
:
return
''
;
return
'
scroll-list
'
;
}
}
}
,
...
...
@@ -489,7 +501,9 @@ export default {
.three {
left: toRpx(756);
}
.four {
left: toRpx(1162);
}
.text {
position: relative;
text-align: center;
...
...
@@ -629,7 +643,7 @@ export default {
.nothing {
width: 100%;
flex-direction: column;
margin-top: toRpx(
112
);
margin-top: toRpx(
230
);
font-size: toRpx(28);
color: #999999;
...
...
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