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 @@
...
@@ -13,7 +13,10 @@
>
>
{{
getCurrentInputingPeople
}}
正在输入
{{
getCurrentInputingPeople
}}
正在输入
</div>
</div>
<messages
class=
"flex-fill"
/>
<messages
class=
"flex-fill"
@
open-pay-message=
"openPayMessage"
/>
<slot
name=
"chat-right-panel"
></slot>
<slot
name=
"chat-right-panel"
></slot>
</div>
</div>
<div
<div
...
@@ -163,6 +166,10 @@
...
@@ -163,6 +166,10 @@
((
this
.
refBottom
as
HTMLElement
).
style
.
height
=
((
this
.
refBottom
as
HTMLElement
).
style
.
height
=
this
.
chatBox
.
clientHeight
-
this
.
refTop
.
clientHeight
+
"px"
);
this
.
chatBox
.
clientHeight
-
this
.
refTop
.
clientHeight
+
"px"
);
}
}
private
openPayMessage
(
id
:
number
)
{
this
.
$emit
(
"open-pay-message"
,
id
);
}
}
}
</
script
>
</
script
>
...
...
components/message-item/pay-message.vue
View file @
3cb1b005
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
}
}
private
view
()
{
private
view
()
{
this
.
$emit
(
"
view
-pay-message"
,
this
.
payData
.
paymentId
);
this
.
$emit
(
"
open
-pay-message"
,
this
.
payData
.
paymentId
);
}
}
}
}
</
script
>
</
script
>
...
@@ -107,6 +107,7 @@
...
@@ -107,6 +107,7 @@
width
:
248px
;
width
:
248px
;
height
:
106px
;
height
:
106px
;
color
:
#fff
;
color
:
#fff
;
cursor
:
pointer
;
&.default,
&.default,
&.balance-unpay
{
&.balance-unpay
{
...
...
components/message-list.vue
View file @
3cb1b005
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
:shape=
"shape"
:shape=
"shape"
@
open=
"open"
@
open=
"open"
@
withdraw=
"refresh"
@
withdraw=
"refresh"
@
open-pay-message=
"openPayMessage"
/>
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -395,6 +396,10 @@
...
@@ -395,6 +396,10 @@
private
refresh
()
{
private
refresh
()
{
this
.
fetchNewMsg
();
this
.
fetchNewMsg
();
}
}
private
openPayMessage
(
id
:
number
)
{
this
.
$emit
(
"open-pay-message"
,
id
);
}
}
}
</
script
>
</
script
>
...
...
components/message.vue
View file @
3cb1b005
...
@@ -68,6 +68,7 @@
...
@@ -68,6 +68,7 @@
v-if=
"messageComponent"
v-if=
"messageComponent"
v-model=
"data"
v-model=
"data"
@
open=
"openFile"
@
open=
"openFile"
@
open-pay-message=
"openPayMessage"
/>
/>
<avatar
<avatar
v-if=
"!isQuestionAnswerMessage && !isWithdrawMessage"
v-if=
"!isQuestionAnswerMessage && !isWithdrawMessage"
...
@@ -506,6 +507,10 @@
...
@@ -506,6 +507,10 @@
private
closeKeywordPopover
()
{
private
closeKeywordPopover
()
{
document
.
body
.
click
();
document
.
body
.
click
();
}
}
private
openPayMessage
(
id
:
number
)
{
this
.
$emit
(
"open-pay-message"
,
id
);
}
}
}
</
script
>
</
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