| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <template>
- <div class="chat-info" :class="{ isLeft: isLeft }">
- <div class="chat-time">今天12:10</div>
- <div class="chat-content">
- <div class="chat-message">你好,这个藏品怎么支付?</div>
- <img src="../assets/png_moren.png" alt="" class="icon" />
- </div>
- </div>
- </template>
- <script>
- export default {
- props: {
- info: {
- type: Object,
- default: () => {
- return {}
- }
- },
- isLeft: {
- type: Boolean,
- default: false
- }
- }
- }
- </script>
- <style lang="less" scoped>
- .chat-info {
- padding: 16px;
- &.isLeft {
- .chat-content {
- flex-direction: row-reverse;
- .chat-message {
- background: var(--ion-text-color);
- border-radius: 2px 12px 12px 12px;
- color: #000000;
- }
- }
- }
- }
- .chat-time {
- font-size: 12px;
- color: #878d99;
- line-height: 17px;
- text-align: center;
- margin-bottom: 10px;
- }
- .chat-content {
- .f();
- justify-content: flex-end;
- .icon {
- width: 36px;
- height: 36px;
- box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.04);
- border-radius: 4px;
- }
- .chat-message {
- background: #000000;
- border-radius: 12px 2px 12px 12px;
- font-size: 16px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: var(--ion-text-color);
- line-height: 26px;
- padding: 10px;
- margin: 0 8px;
- }
- }
- </style>
|