123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <template>
- <TUIGroupManage class="setting" :conversation="conversation" :userInfo="userInfo" />
- </template>
- <script lang="ts">
- import TUIGroupManage from "./manage-components/manage.vue";
- import { defineComponent, reactive, toRefs, computed } from 'vue';
- import { onUnload } from "@dcloudio/uni-app";
- import store from '../../TUICore/store';
- import { TUIGroupServer } from '../../TUICore/server'
- const TUIConversation = defineComponent({
- name: "TUIConversation",
- components: {
- TUIGroupManage,
- },
- setup(props) {
- const timStore = store.state.timStore;
- uni.$TUIKit.TUIGroupServer = new TUIGroupServer();
- const data: any = reactive({
- conversation: computed(() => timStore.conversation),
- userInfo: {
- isGroup: false,
- list: [],
- },
- });
- onUnload(() => {
- uni.$TUIKit.TUIGroupServer.destroyed();
- });
- return {
- ...toRefs(data),
- };
- },
- });
- export default TUIConversation;
- </script>
- <style lang="scss" scoped>
- .title-container {
- width: 100%;
- display: flex;
- justify-content: center;
- padding: 34px 0px 0px;
- font-size: 17px;
- }
- .icon-container {
- width: 66px;
- display: flex;
- justify-content: center;
- padding: 34px 0 0 0;
- .add-icon-image {
- width: 24px;
- height: 24px;
- }
- &.right-icon-container {
- position: relative;
- left: 20px;
- }
- }
- .chat-container {
- display: flex;
- align-items: center;
- margin-bottom: 16px;
- color: #444444;
- .item-icon {
- display: inline-block;
- width: 21px;
- height: 21px;
- margin-right: 12px;
- }
- }
- </style>
|