Commit 01dc9ffb by Sixong.Zhu

u

parent 74e17fb0
Showing with 9 additions and 1 deletions
<template> <template>
<div <div
class="pay-message d-flex flex-column" class="pay-message d-flex flex-column"
:class="messageClass" :class="[messageClass, { 'user-side': !backend }]"
@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">
...@@ -28,9 +28,12 @@ ...@@ -28,9 +28,12 @@
import { PayMessageBody } from "@/customer-service/xim/models/chat"; import { PayMessageBody } from "@/customer-service/xim/models/chat";
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";
@Component({ components: {} }) @Component({ components: {} })
export default class Index extends BaseMessage { export default class Index extends BaseMessage {
protected backend = Chat.isBackend();
private get payData() { private get payData() {
return this.messageBody.msg as PayMessageBody; return this.messageBody.msg as PayMessageBody;
} }
...@@ -108,6 +111,10 @@ ...@@ -108,6 +111,10 @@
height: 106px; height: 106px;
color: #fff; color: #fff;
&.user-side {
border-radius: 0 10px 10px 10px;
}
&.default, &.default,
&.balance-unpay { &.balance-unpay {
background: linear-gradient(180deg, #f95b3c 0%, #f94623 100%); background: linear-gradient(180deg, #f95b3c 0%, #f94623 100%);
...@@ -148,6 +155,7 @@ ...@@ -148,6 +155,7 @@
height: 40px; height: 40px;
display: inline-block; display: inline-block;
margin-right: 20px; margin-right: 20px;
background-repeat: no-repeat;
&.icon-1 { &.icon-1 {
background-image: url("./pay-status-1.svg"); background-image: url("./pay-status-1.svg");
......
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