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 82b6921f
authored
Apr 11, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
消息中心未读统计、话术添加字段
1 parent
d230a858
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
26 deletions
components/HomeFrame/components/LeftSide.vue
components/HomeFrame/components/Message/MessageDetail.vue
pages/common/messageDetail.vue
pages/common/messageList.vue
components/HomeFrame/components/LeftSide.vue
View file @
82b6921
...
...
@@ -76,10 +76,15 @@ export default {
return
this
.
$store
.
state
.
audio
.
perRecordNumber
}
},
inject
:
[
'showPage'
],
mounted
()
{
created
()
{
// 监听自定义事件
uni
.
$on
(
'pageBack'
,
()
=>
{
console
.
log
(
'pageBack'
)
this
.
getMessageInfo
();
});
this
.
getMessageInfo
()
},
inject
:
[
'showPage'
],
methods
:
{
changeIndex
(
index
)
{
if
(
this
.
tabIndex
==
index
)
return
;
...
...
components/HomeFrame/components/Message/MessageDetail.vue
View file @
82b6921
<
template
>
<view
class=
"detail-box"
>
<view
class=
"nav-bar"
>
<view
v-if=
"type == 'view' && messageInfo.status == 1"
class=
"back"
@
click=
"backPage"
>
<
!--
<
view
v-if=
"type == 'view' && messageInfo.status == 1"
class=
"back"
@
click=
"backPage"
>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
</view>
</view>
-->
<view
class=
"title"
>
消息
</view>
</view>
<view
class=
"weekly-tips"
>
...
...
@@ -16,14 +16,14 @@
</
template
>
</view>
</view>
<
template
v-if=
"type == 'read'"
>
<
!-- <template v-if="type == 'read'"> --
>
<scroll-view
scroll-y
class=
"outstanding-tip-list"
>
<view
:class=
"['outstanding-tip-item', onlyOneLength ? 'long' : 'short']"
v-for=
"(item, index) in recordDetailList"
:key=
"item.id"
>
<view
class=
"tip-header"
>
<view
class=
"tip-rank"
>
{{
onlyOneLength
?
''
:
`NO.${index + 1
}
`
}}
优秀话术
-
{{
item
.
class
Name
}}
<
/view
>
<view
class=
"tip-rank"
>
{{ onlyOneLength ? '' : `NO.${index + 1}` }} 优秀话术-{{ item.
sceneLabel
Name }}
</view>
<view
class=
"tip-time"
>
{{ item.time }}
</view>
<
view
class
=
"tip-tags"
>
{{
item
.
class
Name
}}
<
/view
>
<view
v-if=
"item.excellentLabelName"
class=
"tip-tags"
>
{{ item.excellentLabel
Name }}
</view>
</view>
<view
class=
"tip-content"
>
{{ item.polishContent }}
...
...
@@ -31,13 +31,13 @@
</view>
</scroll-view>
<view
class=
"detail-footer"
>
<
view
class
=
"tips"
>
以上内容请认真阅读,至少读完
{{
MOCKDATA
.
timer
}}
分钟,如未按照要求阅读完内容,今日无法使用
pad
接待
<
/view
>
<view
class=
"tips"
>
以上内容请认真阅读,至少读完{{
countTime
}}分钟,如未按照要求阅读完内容,今日无法使用pad接待
</view>
<view
:class=
"['btn', !countFlag ? '' : 'blue']"
@
click=
"handleCompleted"
>
已完成阅读 {{ !countFlag ?
`${countdown}s` :
'' }}
</view>
</view>
<
/template
>
<
template
v
-
else
-
if
=
"type == 'view'"
>
<
!-- </template> --
>
<
!-- <
template v-else-if="type == 'view'">
<view :class="['outstanding-tip-item', messageInfo.status == 1 ? 'single' : 'read' ]">
<view class="tip-header">
<view class="tip-rank">优秀话术-{{ messageInfo.className }}</view>
...
...
@@ -49,12 +49,12 @@
</view>
</view>
<view class="detail-footer" v-if="messageInfo.status == 0">
<
view
class
=
"tips"
>
以上内容请认真阅读,至少读完
{{
MOCKDATA
.
timer
}}
分钟,如未按照要求阅读完内容,今日无法使用
pad
接待
<
/view
>
<view class="tips">以上内容请认真阅读,至少读完{{
countTime
}}分钟,如未按照要求阅读完内容,今日无法使用pad接待</view>
<view :class="['btn', !countFlag ? '' : 'blue']" @click="handleCompleted">已完成阅读 {{ !countFlag ?
`${countdown}s` :
'' }}</view>
</view>
<
/template
>
</template>
-->
</view>
</view>
</template>
...
...
@@ -75,7 +75,8 @@ export default {
tagIndex
:
''
,
enterTime
:
''
,
isProcessing
:
false
,
MOCKDATA
:
{
}
MOCKDATA
:
{},
countTime
:
0
}
},
props
:
{
...
...
@@ -92,8 +93,8 @@ export default {
created
()
{
// 获取mock配置的时间
this
.
MOCKDATA
=
uni
.
$storage
.
get
(
'mock_data'
)
const
_
countTime
=
this
.
MOCKDATA
.
timer
||
countTimer
this
.
countdown
=
_
countTime
*
60
-
1
this
.
countTime
=
this
.
MOCKDATA
.
timer
||
countTimer
this
.
countdown
=
this
.
countTime
*
60
-
1
},
mounted
()
{
// 开始倒计时
...
...
pages/common/messageDetail.vue
View file @
82b6921
...
...
@@ -4,21 +4,21 @@
<view
v-if=
"messageInfo.status == 1"
class=
"back"
@
click=
"backPage(null)"
>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
</view>
<view
class=
"title"
>
优秀话术-
{{
messageInfo
.
class
Name
}}
</view>
<view
class=
"title"
>
优秀话术-
{{
messageInfo
.
sceneLabel
Name
}}
</view>
</view>
<view
class=
"weekly-tips"
>
<view
:class=
"['outstanding-tip-item', messageInfo.status == 1 ? 'single' : 'read']"
>
<view
class=
"tip-header"
>
<!--
<view
class=
"tip-rank"
>
优秀话术-
{{
messageInfo
.
className
}}
</view>
-->
<view
class=
"tip-time"
>
{{
messageInfo
.
time
}}
</view>
<view
class=
"tip-tags"
>
{{
messageInfo
.
class
Name
}}
</view>
<view
v-if=
"messageInfo.excellentLabelName"
class=
"tip-tags"
>
{{
messageInfo
.
excellentLabel
Name
}}
</view>
</view>
<view
class=
"tip-content"
>
{{
messageInfo
.
polishContent
}}
</view>
</view>
<view
class=
"detail-footer"
v-if=
"messageInfo.status == 0"
>
<view
class=
"tips"
>
以上内容请认真阅读,至少读完
{{
MOCKDATA
.
timer
}}
分钟,如未按照要求阅读完内容,今日无法使用pad接待
</view>
<view
class=
"tips"
>
以上内容请认真阅读,至少读完
{{
countTime
}}
分钟,如未按照要求阅读完内容,今日无法使用pad接待
</view>
<view
:class=
"['btn', !countFlag ? '' : 'blue']"
@
click=
"handleCompleted"
>
已完成阅读
{{
!
countFlag
?
`${countdown
}
s`
:
''
}}
<
/view
>
...
...
@@ -28,7 +28,7 @@
<
/template
>
<
script
>
let
timer
=
null
let
countTimer
=
1
let
countTimer
=
3
import
dayjs
from
'dayjs'
export
default
{
name
:
'MessageDetail'
,
...
...
@@ -42,9 +42,8 @@ export default {
tagIndex
:
''
,
enterTime
:
''
,
isProcessing
:
false
,
MOCKDATA
:
{
timer
:
3
}
MOCKDATA
:
{
}
,
countTime
:
0
}
}
,
computed
:
{
...
...
@@ -55,8 +54,8 @@ export default {
created
()
{
// 获取mock配置的时间
this
.
MOCKDATA
=
uni
.
$storage
.
get
(
'mock_data'
)
const
_
countTime
=
this
.
MOCKDATA
.
timer
||
countTimer
this
.
countdown
=
_
countTime
*
60
-
1
this
.
countTime
=
this
.
MOCKDATA
.
timer
||
countTimer
this
.
countdown
=
this
.
countTime
*
60
-
1
}
,
onLoad
(
options
)
{
console
.
log
(
options
)
...
...
pages/common/messageList.vue
View file @
82b6921
...
...
@@ -43,9 +43,9 @@
<
template
v
-
else
-
if
=
"firstIndex == 1"
>
<
view
class
=
"message-header"
>
<
view
:
class
=
"['dot', item.status == 1 ? '' : 'red']"
><
/view
>
<
view
class
=
"message-type"
>
优秀话术
-
{{
item
.
class
Name
}}
<
/view
>
<
view
class
=
"message-type"
>
优秀话术
-
{{
item
.
sceneLabel
Name
}}
<
/view
>
<
view
class
=
"message-time"
>
{{
item
.
time
}}
<
/view
>
<
view
class
=
"message-tag"
>
{{
item
.
class
Name
}}
<
/view
>
<
view
v
-
if
=
"item.excellentLabelName"
class
=
"message-tag"
>
{{
item
.
excellentLabel
Name
}}
<
/view
>
<
/view
>
<
view
class
=
"message-content"
>
{{
item
.
polishContent
}}
<
/view
>
<
/template
>
...
...
@@ -175,6 +175,7 @@ export default {
}
}
,
back
()
{
uni
.
$emit
(
'pageBack'
)
uni
.
navigateBack
({
delta
:
1
,
animationType
:
'pop-out'
,
...
...
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