Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3cb1b005
authored
Dec 03, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u
parent
214700eb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
components/chat-room.vue
components/message-item/pay-message.vue
components/message-list.vue
components/message.vue
components/chat-room.vue
View file @
3cb1b005
...
...
@@ -13,7 +13,10 @@
>
{{
getCurrentInputingPeople
}}
正在输入
</div>
<messages
class=
"flex-fill"
/>
<messages
class=
"flex-fill"
@
open-pay-message=
"openPayMessage"
/>
<slot
name=
"chat-right-panel"
></slot>
</div>
<div
...
...
@@ -163,6 +166,10 @@
((
this
.
refBottom
as
HTMLElement
).
style
.
height
=
this
.
chatBox
.
clientHeight
-
this
.
refTop
.
clientHeight
+
"px"
);
}
private
openPayMessage
(
id
:
number
)
{
this
.
$emit
(
"open-pay-message"
,
id
);
}
}
</
script
>
...
...
components/message-item/pay-message.vue
View file @
3cb1b005
...
...
@@ -96,7 +96,7 @@
}
private
view
()
{
this
.
$emit
(
"
view
-pay-message"
,
this
.
payData
.
paymentId
);
this
.
$emit
(
"
open
-pay-message"
,
this
.
payData
.
paymentId
);
}
}
</
script
>
...
...
@@ -107,6 +107,7 @@
width
:
248px
;
height
:
106px
;
color
:
#fff
;
cursor
:
pointer
;
&.default,
&.balance-unpay
{
...
...
components/message-list.vue
View file @
3cb1b005
...
...
@@ -24,6 +24,7 @@
:shape=
"shape"
@
open=
"open"
@
withdraw=
"refresh"
@
open-pay-message=
"openPayMessage"
/>
</div>
</
template
>
...
...
@@ -395,6 +396,10 @@
private
refresh
()
{
this
.
fetchNewMsg
();
}
private
openPayMessage
(
id
:
number
)
{
this
.
$emit
(
"open-pay-message"
,
id
);
}
}
</
script
>
...
...
components/message.vue
View file @
3cb1b005
...
...
@@ -68,6 +68,7 @@
v-if=
"messageComponent"
v-model=
"data"
@
open=
"openFile"
@
open-pay-message=
"openPayMessage"
/>
<avatar
v-if=
"!isQuestionAnswerMessage && !isWithdrawMessage"
...
...
@@ -506,6 +507,10 @@
private
closeKeywordPopover
()
{
document
.
body
.
click
();
}
private
openPayMessage
(
id
:
number
)
{
this
.
$emit
(
"open-pay-message"
,
id
);
}
}
</
script
>
...
...
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