Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1c77ba8e
authored
May 04, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review 微信的实现
parent
0ceddc9c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
4 deletions
+1
-4
src/views/mp/components/wx-msg/components/MsgEvent.vue
+0
-2
src/views/mp/components/wx-msg/components/MsgList.vue
+1
-2
No files found.
src/views/mp/components/wx-msg/components/MsgEvent.vue
View file @
1c77ba8e
...
@@ -47,5 +47,3 @@ const props = defineProps<{
...
@@ -47,5 +47,3 @@ const props = defineProps<{
const
item
=
ref
(
props
.
item
)
const
item
=
ref
(
props
.
item
)
</
script
>
</
script
>
<
style
scoped
></
style
>
src/views/mp/components/wx-msg/components/MsgList.vue
View file @
1c77ba8e
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
class=
"avue-comment__body"
class=
"avue-comment__body"
:style=
"item.sendFrom === SendFrom.MpBot ? 'background: #6BED72;' : ''"
:style=
"item.sendFrom === SendFrom.MpBot ? 'background: #6BED72;' : ''"
>
>
<!-- 【事件】区域 -->
<!-- 【事件】区域
TODO 芋艿:是不是把拆个 Message 出来,里面包括 MsgEvent + 各种其它消息,分开有点不够整体
-->
<MsgEvent
v-if=
"item.type === MsgType.Event"
:item=
"item"
/>
<MsgEvent
v-if=
"item.type === MsgType.Event"
:item=
"item"
/>
<!-- 【消息】区域 -->
<!-- 【消息】区域 -->
<div
v-else-if=
"item.type === MsgType.Text"
>
{{
item
.
content
}}
</div>
<div
v-else-if=
"item.type === MsgType.Text"
>
{{
item
.
content
}}
</div>
...
@@ -68,7 +68,6 @@
...
@@ -68,7 +68,6 @@
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
setup
lang=
"ts"
name=
"MsgList"
>
<
script
setup
lang=
"ts"
name=
"MsgList"
>
import
WxVideoPlayer
from
'@/views/mp/components/wx-video-play'
import
WxVideoPlayer
from
'@/views/mp/components/wx-video-play'
import
WxVoicePlayer
from
'@/views/mp/components/wx-voice-play'
import
WxVoicePlayer
from
'@/views/mp/components/wx-voice-play'
...
...
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