Commit 09282eaa by Sixong.Zhu

u

parent f680aab8
Showing with 14 additions and 3 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,7 +106,8 @@ ...@@ -99,7 +106,8 @@
} }
private view() { private view() {
this.$emit("open-pay-message", this.payData.paymentId); this.isChatMember &&
this.$emit("open-pay-message", this.payData.paymentId);
} }
} }
</script> </script>
...@@ -110,7 +118,10 @@ ...@@ -110,7 +118,10 @@
width: 248px; width: 248px;
height: 106px; height: 106px;
color: #fff; color: #fff;
cursor: pointer;
&.click {
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