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
09282eaa
authored
Dec 03, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u
parent
f680aab8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
components/message-item/pay-message.vue
components/message-item/pay-message.vue
View file @
09282eaa
<
template
>
<div
class=
"pay-message d-flex flex-column"
:class=
"[messageClass,
{ 'user-side': !backend }]"
:class=
"[
messageClass,
{ 'user-side': !backend || !isChatMember, click: isChatMember },
]"
@click="view"
>
<div
class=
"d-flex align-items-center flex-fill pay-msg-body"
>
...
...
@@ -29,9 +32,13 @@
import
{
Component
}
from
"vue-property-decorator"
;
import
BaseMessage
from
"./index"
;
import
Chat
from
"@/customer-service/xim"
;
import
{
ChatStore
,
chatStore
}
from
"@/customer-service/store/model"
;
@
Component
({
components
:
{}
})
export
default
class
Index
extends
BaseMessage
{
@
chatStore
.
State
(
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_MEMBER
)
private
readonly
isChatMember
!
:
ChatStore
.
STATE_CHAT_CURRENT_IS_CHAT_MEMBER
;
protected
backend
=
Chat
.
isBackend
();
private
get
payData
()
{
...
...
@@ -99,7 +106,8 @@
}
private
view
()
{
this
.
$emit
(
"open-pay-message"
,
this
.
payData
.
paymentId
);
this
.
isChatMember
&&
this
.
$emit
(
"open-pay-message"
,
this
.
payData
.
paymentId
);
}
}
</
script
>
...
...
@@ -110,7 +118,10 @@
width
:
248px
;
height
:
106px
;
color
:
#fff
;
cursor
:
pointer
;
&.click
{
cursor
:
pointer
;
}
&
.user-side
{
border-radius
:
0
10px
10px
10px
;
...
...
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