Commit 09282eaa by Sixong.Zhu

u

parent f680aab8
Showing with 12 additions and 1 deletions
<template> <template>
<div <div
class="pay-message d-flex flex-column" class="pay-message d-flex flex-column"
:class="[messageClass, { 'user-side': !backend }]" :class="[
messageClass,
{ 'user-side': !backend || !isChatMember, click: isChatMember },
]"
@click="view" @click="view"
> >
<div class="d-flex align-items-center flex-fill pay-msg-body"> <div class="d-flex align-items-center flex-fill pay-msg-body">
...@@ -29,9 +32,13 @@ ...@@ -29,9 +32,13 @@
import { Component } from "vue-property-decorator"; import { Component } from "vue-property-decorator";
import BaseMessage from "./index"; import BaseMessage from "./index";
import Chat from "@/customer-service/xim"; import Chat from "@/customer-service/xim";
import { ChatStore, chatStore } from "@/customer-service/store/model";
@Component({ components: {} }) @Component({ components: {} })
export default class Index extends BaseMessage { 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(); protected backend = Chat.isBackend();
private get payData() { private get payData() {
...@@ -99,6 +106,7 @@ ...@@ -99,6 +106,7 @@
} }
private view() { private view() {
this.isChatMember &&
this.$emit("open-pay-message", this.payData.paymentId); this.$emit("open-pay-message", this.payData.paymentId);
} }
} }
...@@ -110,7 +118,10 @@ ...@@ -110,7 +118,10 @@
width: 248px; width: 248px;
height: 106px; height: 106px;
color: #fff; color: #fff;
&.click {
cursor: pointer; cursor: pointer;
}
&.user-side { &.user-side {
border-radius: 0 10px 10px 10px; border-radius: 0 10px 10px 10px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment