diff --git a/package.json b/package.json index ccf5355..fb66a73 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "quill-mention": "^6.0.2", "vconsole": "^3.15.1", "vue": "^3.3.8", - "vue-i18n": "^9.6.5" + "vue-i18n": "11.0.0-rc.1" }, "devDependencies": { "@dcloudio/types": "^3.4.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 26ae4d6..591bdda 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -93,8 +93,8 @@ importers: specifier: ^3.3.8 version: 3.4.35(typescript@5.5.4) vue-i18n: - specifier: ^9.6.5 - version: 9.13.1(vue@3.4.35(typescript@5.5.4)) + specifier: 11.0.0-rc.1 + version: 11.0.0-rc.1(vue@3.4.35(typescript@5.5.4)) devDependencies: '@dcloudio/types': specifier: ^3.4.7 @@ -1391,26 +1391,26 @@ packages: '@iconify/utils@2.1.32': resolution: {integrity: sha512-LeifFZPPKu28O3AEDpYJNdEbvS4/ojAPyIW+pF/vUpJTYnbTiXUHkCh0bwgFRzKvdpb8H4Fbfd/742++MF4fPQ==} + '@intlify/core-base@11.0.0-rc.1': + resolution: {integrity: sha512-fnfZoa9pb1dKM3L1UkDUGLLrPFQ2BK98x4/fMqwS/fktUor34vQR/itPtfv652ZTplenXXLCEYjUYTGfDZgMTQ==} + engines: {node: '>= 16'} + '@intlify/core-base@9.1.9': resolution: {integrity: sha512-x5T0p/Ja0S8hs5xs+ImKyYckVkL4CzcEXykVYYV6rcbXxJTe2o58IquSqX9bdncVKbRZP7GlBU1EcRaQEEJ+vw==} engines: {node: '>= 10'} - '@intlify/core-base@9.13.1': - resolution: {integrity: sha512-+bcQRkJO9pcX8d0gel9ZNfrzU22sZFSA0WVhfXrf5jdJOS24a+Bp8pozuS9sBI9Hk/tGz83pgKfmqcn/Ci7/8w==} - engines: {node: '>= 16'} - '@intlify/devtools-if@9.1.9': resolution: {integrity: sha512-oKSMKjttG3Ut/1UGEZjSdghuP3fwA15zpDPcjkf/1FjlOIm6uIBGMNS5jXzsZy593u+P/YcnrZD6cD3IVFz9vQ==} engines: {node: '>= 10'} + '@intlify/message-compiler@11.0.0-rc.1': + resolution: {integrity: sha512-TGw2uBfuTFTegZf/BHtUQBEKxl7Q/dVGLoqRIdw8lFsp9g/53sYn5iD+0HxIzdYjbWL6BTJMXCPUHp9PxDTRPw==} + engines: {node: '>= 16'} + '@intlify/message-compiler@9.1.9': resolution: {integrity: sha512-6YgCMF46Xd0IH2hMRLCssZI3gFG4aywidoWQ3QP4RGYQXQYYfFC54DxhSgfIPpVoPLQ+4AD29eoYmhiHZ+qLFQ==} engines: {node: '>= 10'} - '@intlify/message-compiler@9.13.1': - resolution: {integrity: sha512-SKsVa4ajYGBVm7sHMXd5qX70O2XXjm55zdZB3VeMFCvQyvLew/dLvq3MqnaIsTMF1VkkOb9Ttr6tHcMlyPDL9w==} - engines: {node: '>= 16'} - '@intlify/message-resolver@9.1.9': resolution: {integrity: sha512-Lx/DBpigeK0sz2BBbzv5mu9/dAlt98HxwbG7xLawC3O2xMF9MNWU5FtOziwYG6TDIjNq0O/3ZbOJAxwITIWXEA==} engines: {node: '>= 10'} @@ -1419,14 +1419,14 @@ packages: resolution: {integrity: sha512-XgPw8+UlHCiie3fI41HPVa/VDJb3/aSH7bLhY1hJvlvNV713PFtb4p4Jo+rlE0gAoMsMCGcsiT982fImolSltg==} engines: {node: '>= 10'} + '@intlify/shared@11.0.0-rc.1': + resolution: {integrity: sha512-8tR1xe7ZEbkabTuE/tNhzpolygUn9OaYp9yuYAF4MgDNZg06C3Qny80bes2/e9/Wm3aVkPUlCw6WgU7mQd0yEg==} + engines: {node: '>= 16'} + '@intlify/shared@9.1.9': resolution: {integrity: sha512-xKGM1d0EAxdDFCWedcYXOm6V5Pfw/TMudd6/qCdEb4tv0hk9EKeg7lwQF1azE0dP2phvx0yXxrt7UQK+IZjNdw==} engines: {node: '>= 10'} - '@intlify/shared@9.13.1': - resolution: {integrity: sha512-u3b6BKGhE6j/JeRU6C/RL2FgyJfy6LakbtfeVF8fJXURpZZTzfh3e05J0bu0XPw447Q6/WUp3C4ajv4TMS4YsQ==} - engines: {node: '>= 16'} - '@intlify/vue-devtools@9.1.9': resolution: {integrity: sha512-YPehH9uL4vZcGXky4Ev5qQIITnHKIvsD2GKGXgqf+05osMUI6WSEQHaN9USRa318Rs8RyyPCiDfmA0hRu3k7og==} engines: {node: '>= 10'} @@ -4819,8 +4819,8 @@ packages: '@vue/composition-api': optional: true - vue-i18n@9.13.1: - resolution: {integrity: sha512-mh0GIxx0wPtPlcB1q4k277y0iKgo25xmDPWioVVYanjPufDBpvu5ySTjP5wOrSvlYQ2m1xI+CFhGdauv/61uQg==} + vue-i18n@11.0.0-rc.1: + resolution: {integrity: sha512-qbdCbA537HEdr2yXQ4ec/OMDsoHjod1DwnWbrf+l4Cu/O7CYTCKsOyITUm3RmrCJgRnoVycuR6i/JWdNTJvD5g==} engines: {node: '>= 16'} peerDependencies: vue: ^3.0.0 @@ -6730,6 +6730,11 @@ snapshots: transitivePeerDependencies: - supports-color + '@intlify/core-base@11.0.0-rc.1': + dependencies: + '@intlify/message-compiler': 11.0.0-rc.1 + '@intlify/shared': 11.0.0-rc.1 + '@intlify/core-base@9.1.9': dependencies: '@intlify/devtools-if': 9.1.9 @@ -6739,26 +6744,21 @@ snapshots: '@intlify/shared': 9.1.9 '@intlify/vue-devtools': 9.1.9 - '@intlify/core-base@9.13.1': - dependencies: - '@intlify/message-compiler': 9.13.1 - '@intlify/shared': 9.13.1 - '@intlify/devtools-if@9.1.9': dependencies: '@intlify/shared': 9.1.9 + '@intlify/message-compiler@11.0.0-rc.1': + dependencies: + '@intlify/shared': 11.0.0-rc.1 + source-map-js: 1.2.0 + '@intlify/message-compiler@9.1.9': dependencies: '@intlify/message-resolver': 9.1.9 '@intlify/shared': 9.1.9 source-map: 0.6.1 - '@intlify/message-compiler@9.13.1': - dependencies: - '@intlify/shared': 9.13.1 - source-map-js: 1.2.0 - '@intlify/message-resolver@9.1.9': {} '@intlify/runtime@9.1.9': @@ -6767,9 +6767,9 @@ snapshots: '@intlify/message-resolver': 9.1.9 '@intlify/shared': 9.1.9 - '@intlify/shared@9.1.9': {} + '@intlify/shared@11.0.0-rc.1': {} - '@intlify/shared@9.13.1': {} + '@intlify/shared@9.1.9': {} '@intlify/vue-devtools@9.1.9': dependencies: @@ -10890,10 +10890,10 @@ snapshots: dependencies: vue: 3.4.35(typescript@5.5.4) - vue-i18n@9.13.1(vue@3.4.35(typescript@5.5.4)): + vue-i18n@11.0.0-rc.1(vue@3.4.35(typescript@5.5.4)): dependencies: - '@intlify/core-base': 9.13.1 - '@intlify/shared': 9.13.1 + '@intlify/core-base': 11.0.0-rc.1 + '@intlify/shared': 11.0.0-rc.1 '@vue/devtools-api': 6.6.3 vue: 3.4.35(typescript@5.5.4) diff --git a/src/App.vue b/src/App.vue index 1d8d768..b29303b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -18,6 +18,7 @@ init() diff --git a/src/components/custom-input/custom-input.vue b/src/components/custom-input/custom-input.vue new file mode 100644 index 0000000..f7ad30e --- /dev/null +++ b/src/components/custom-input/custom-input.vue @@ -0,0 +1,58 @@ + + + diff --git a/src/pages.json b/src/pages.json index 85b7a57..9853e87 100644 --- a/src/pages.json +++ b/src/pages.json @@ -1,7 +1,7 @@ { - "easycom":{ + "easycom": { "autoscan": true, - "custom":{ + "custom": { "^tm-(.*)": "@/tmui/components/tm-$1/tm-$1.vue" } }, @@ -11,7 +11,7 @@ "type": "page", "style": { "navigationStyle": "custom", - "enablePullDownRefresh":false + "enablePullDownRefresh": false } }, { @@ -19,7 +19,7 @@ "type": "page", "style": { "navigationStyle": "custom", - "enablePullDownRefresh":false + "enablePullDownRefresh": false } }, { @@ -27,7 +27,7 @@ "type": "page", "style": { "navigationStyle": "custom", - "enablePullDownRefresh":false + "enablePullDownRefresh": false } }, { @@ -35,7 +35,7 @@ "type": "page", "style": { "navigationStyle": "custom", - "enablePullDownRefresh":false + "enablePullDownRefresh": false } }, { @@ -59,7 +59,7 @@ "type": "page", "style": { "navigationStyle": "custom", - "enablePullDownRefresh":false + "enablePullDownRefresh": false } }, { @@ -67,23 +67,116 @@ "type": "page", "style": { "navigationStyle": "custom", - "enablePullDownRefresh":false + "enablePullDownRefresh": false } }, { "path": "pages/login/index", "type": "page", "style": {} + }, + { + "path": "pages/search/index", + "type": "page", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/search/moreResult/moreResult", + "type": "page", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/search/moreResult/moreResultDetail", + "type": "page", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/search/searchByCondition/index", + "type": "page", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/chatSettings/index", + "type": "page", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/chatSettings/groupManage/manageNotice", + "type": "page", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/chatSettings/groupManage/editGroupName", + "type": "page", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/chatSettings/groupManage/editAvatar", + "type": "page", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/chatSettings/groupManage/manageGroupMembers", + "type": "page", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/chatSettings/groupManage/manageGroupSilence", + "type": "page", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/chatSettings/groupManage/selectMembers", + "type": "page", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/chatSettings/groupManage/manageGroupAdmin", + "type": "page", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": false + } } - - ], "globalStyle": { "backgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF", "navigationBarTextstyle": "black", - "navigationBarTitleText":"" - + "navigationBarTitleText": "" }, "subPackages": [] } diff --git a/src/pages/chatSettings/components/groupMembersList.vue b/src/pages/chatSettings/components/groupMembersList.vue new file mode 100644 index 0000000..244f784 --- /dev/null +++ b/src/pages/chatSettings/components/groupMembersList.vue @@ -0,0 +1,117 @@ + + + diff --git a/src/pages/chatSettings/components/select-member-item.vue b/src/pages/chatSettings/components/select-member-item.vue new file mode 100644 index 0000000..4d62b0c --- /dev/null +++ b/src/pages/chatSettings/components/select-member-item.vue @@ -0,0 +1,142 @@ + + + diff --git a/src/pages/chatSettings/components/settingFormItem.vue b/src/pages/chatSettings/components/settingFormItem.vue new file mode 100644 index 0000000..bfdc164 --- /dev/null +++ b/src/pages/chatSettings/components/settingFormItem.vue @@ -0,0 +1,118 @@ + + + diff --git a/src/pages/chatSettings/groupManage/editAvatar.vue b/src/pages/chatSettings/groupManage/editAvatar.vue new file mode 100644 index 0000000..724ae2e --- /dev/null +++ b/src/pages/chatSettings/groupManage/editAvatar.vue @@ -0,0 +1,95 @@ + + + diff --git a/src/pages/chatSettings/groupManage/editGroupName.vue b/src/pages/chatSettings/groupManage/editGroupName.vue new file mode 100644 index 0000000..451ca22 --- /dev/null +++ b/src/pages/chatSettings/groupManage/editGroupName.vue @@ -0,0 +1,127 @@ + + + diff --git a/src/pages/chatSettings/groupManage/manageGroupAdmin.vue b/src/pages/chatSettings/groupManage/manageGroupAdmin.vue new file mode 100644 index 0000000..fad8097 --- /dev/null +++ b/src/pages/chatSettings/groupManage/manageGroupAdmin.vue @@ -0,0 +1,106 @@ + + + diff --git a/src/pages/chatSettings/groupManage/manageGroupMembers.vue b/src/pages/chatSettings/groupManage/manageGroupMembers.vue new file mode 100644 index 0000000..235a77d --- /dev/null +++ b/src/pages/chatSettings/groupManage/manageGroupMembers.vue @@ -0,0 +1,58 @@ + + + diff --git a/src/pages/chatSettings/groupManage/manageGroupSilence.vue b/src/pages/chatSettings/groupManage/manageGroupSilence.vue new file mode 100644 index 0000000..760d6b9 --- /dev/null +++ b/src/pages/chatSettings/groupManage/manageGroupSilence.vue @@ -0,0 +1,129 @@ + + + diff --git a/src/pages/chatSettings/groupManage/manageNotice.vue b/src/pages/chatSettings/groupManage/manageNotice.vue new file mode 100644 index 0000000..b0a5fc1 --- /dev/null +++ b/src/pages/chatSettings/groupManage/manageNotice.vue @@ -0,0 +1,141 @@ + + + diff --git a/src/pages/chatSettings/groupManage/selectMembers.vue b/src/pages/chatSettings/groupManage/selectMembers.vue new file mode 100644 index 0000000..64dc79b --- /dev/null +++ b/src/pages/chatSettings/groupManage/selectMembers.vue @@ -0,0 +1,401 @@ + + + diff --git a/src/pages/chatSettings/index.vue b/src/pages/chatSettings/index.vue new file mode 100644 index 0000000..1401025 --- /dev/null +++ b/src/pages/chatSettings/index.vue @@ -0,0 +1,639 @@ + + + diff --git a/src/pages/dialog/index.vue b/src/pages/dialog/index.vue index c779c98..32feed7 100644 --- a/src/pages/dialog/index.vue +++ b/src/pages/dialog/index.vue @@ -8,7 +8,7 @@ @@ -228,8 +228,7 @@ import zu6053 from "@/static/image/chatList/zu6053@2x.png" import deepBubble from "@/components/deep-bubble/deep-bubble.vue" import {isRevoke } from './menu' import useConfirm from '@/components/x-confirm/useConfirm.js' - - +import { onLoad as uniOnload } from '@dcloudio/uni-app' Quill.register('formats/emoji', EmojiBlot) @@ -260,6 +259,13 @@ const state = ref({ isOpenFilePanel: false, showWin: false, onfocusItem: null, + sessionId: '' +}) + +uniOnload((options) => { + if (options.sessionId) { + state.sessionId = options.sessionId + } }) const handleEmojiPanel = () => { @@ -680,6 +686,13 @@ const initData = async () => { zpagingRef.value?.complete(records.value) } +//点击跳转到聊天设置页面 +const toChatSettingsPage = () => { + uni.navigateTo({ + url: '/pages/chatSettings/index?groupId=' + talkParams?.receiver_id + '&sessionId=' + state.sessionId + }) +} + onMounted(async () => { initData() }) diff --git a/src/pages/index/components/chatItem.vue b/src/pages/index/components/chatItem.vue index 66729fa..3f9d6f9 100644 --- a/src/pages/index/components/chatItem.vue +++ b/src/pages/index/components/chatItem.vue @@ -139,7 +139,7 @@ const cellClick = () => { }); } uni.navigateTo({ - url: "/pages/dialog/index", + url: '/pages/dialog/index?sessionId=' + props.data.id, }); }; diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 796ddfd..6d99f83 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -57,7 +57,7 @@
-
+
{ }); }; +const toSearchPage = () => { + uni.navigateTo({ + url: "/pages/search/index", + }); +}; + watch( () => talkStore, (newValue, oldValue) => { diff --git a/src/pages/search/components/highLightText.vue b/src/pages/search/components/highLightText.vue new file mode 100644 index 0000000..2839885 --- /dev/null +++ b/src/pages/search/components/highLightText.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/src/pages/search/components/searchItem.vue b/src/pages/search/components/searchItem.vue new file mode 100644 index 0000000..d1ca369 --- /dev/null +++ b/src/pages/search/components/searchItem.vue @@ -0,0 +1,331 @@ + + + diff --git a/src/pages/search/components/searchList.vue b/src/pages/search/components/searchList.vue new file mode 100644 index 0000000..cc086fb --- /dev/null +++ b/src/pages/search/components/searchList.vue @@ -0,0 +1,419 @@ + + + diff --git a/src/pages/search/index.vue b/src/pages/search/index.vue new file mode 100644 index 0000000..d0c6c13 --- /dev/null +++ b/src/pages/search/index.vue @@ -0,0 +1,50 @@ + + + diff --git a/src/pages/search/moreResult/moreResult.vue b/src/pages/search/moreResult/moreResult.vue new file mode 100644 index 0000000..d946698 --- /dev/null +++ b/src/pages/search/moreResult/moreResult.vue @@ -0,0 +1,97 @@ + + + diff --git a/src/pages/search/moreResult/moreResultDetail.vue b/src/pages/search/moreResult/moreResultDetail.vue new file mode 100644 index 0000000..163b444 --- /dev/null +++ b/src/pages/search/moreResult/moreResultDetail.vue @@ -0,0 +1,71 @@ + + + diff --git a/src/pages/search/searchByCondition/index.vue b/src/pages/search/searchByCondition/index.vue new file mode 100644 index 0000000..2c2b351 --- /dev/null +++ b/src/pages/search/searchByCondition/index.vue @@ -0,0 +1,241 @@ + + + diff --git a/src/static/css/color.scss b/src/static/css/color.scss index 17e5143..e650383 100644 --- a/src/static/css/color.scss +++ b/src/static/css/color.scss @@ -1 +1,4 @@ -$theme-primary: #46299D; +$theme-primary: #46299d; +$theme-text: #191919; +$theme-hint-text: #999999; +$theme-border-color: #f8f8f8; diff --git a/src/static/css/font.scss b/src/static/css/font.scss new file mode 100644 index 0000000..313323c --- /dev/null +++ b/src/static/css/font.scss @@ -0,0 +1,3 @@ +.font-regular { + font-weight: 400; +} diff --git a/src/static/image/chatSettings/add-btn.png b/src/static/image/chatSettings/add-btn.png new file mode 100644 index 0000000..1c1574f Binary files /dev/null and b/src/static/image/chatSettings/add-btn.png differ diff --git a/src/static/image/chatSettings/app-icon.png b/src/static/image/chatSettings/app-icon.png new file mode 100644 index 0000000..3612681 Binary files /dev/null and b/src/static/image/chatSettings/app-icon.png differ diff --git a/src/static/image/chatSettings/clear-btn.png b/src/static/image/chatSettings/clear-btn.png new file mode 100644 index 0000000..e756eb8 Binary files /dev/null and b/src/static/image/chatSettings/clear-btn.png differ diff --git a/src/static/image/chatSettings/edit-btn.png b/src/static/image/chatSettings/edit-btn.png new file mode 100644 index 0000000..58d371c Binary files /dev/null and b/src/static/image/chatSettings/edit-btn.png differ diff --git a/src/static/image/chatSettings/pointer.png b/src/static/image/chatSettings/pointer.png new file mode 100644 index 0000000..c026df4 Binary files /dev/null and b/src/static/image/chatSettings/pointer.png differ diff --git a/src/static/image/chatSettings/recordSearchTypeDate.png b/src/static/image/chatSettings/recordSearchTypeDate.png new file mode 100644 index 0000000..747cc79 Binary files /dev/null and b/src/static/image/chatSettings/recordSearchTypeDate.png differ diff --git a/src/static/image/chatSettings/recordSearchTypeFiles.png b/src/static/image/chatSettings/recordSearchTypeFiles.png new file mode 100644 index 0000000..a0d60a5 Binary files /dev/null and b/src/static/image/chatSettings/recordSearchTypeFiles.png differ diff --git a/src/static/image/chatSettings/recordSearchTypeGroupMembers.png b/src/static/image/chatSettings/recordSearchTypeGroupMembers.png new file mode 100644 index 0000000..ab31147 Binary files /dev/null and b/src/static/image/chatSettings/recordSearchTypeGroupMembers.png differ diff --git a/src/static/image/chatSettings/recordSearchTypeImgAndVideo.png b/src/static/image/chatSettings/recordSearchTypeImgAndVideo.png new file mode 100644 index 0000000..0c63bf3 Binary files /dev/null and b/src/static/image/chatSettings/recordSearchTypeImgAndVideo.png differ diff --git a/src/static/image/chatSettings/recordSearchTypeLink.png b/src/static/image/chatSettings/recordSearchTypeLink.png new file mode 100644 index 0000000..4182cb1 Binary files /dev/null and b/src/static/image/chatSettings/recordSearchTypeLink.png differ diff --git a/src/static/image/search/down-pointer.png b/src/static/image/search/down-pointer.png new file mode 100644 index 0000000..6f6b2cf Binary files /dev/null and b/src/static/image/search/down-pointer.png differ diff --git a/src/static/image/search/search-item-pointer.png b/src/static/image/search/search-item-pointer.png new file mode 100644 index 0000000..c026df4 Binary files /dev/null and b/src/static/image/search/search-item-pointer.png differ diff --git a/src/static/image/search/search-no-data.png b/src/static/image/search/search-no-data.png new file mode 100644 index 0000000..af19a6e Binary files /dev/null and b/src/static/image/search/search-no-data.png differ diff --git a/src/store/index.js b/src/store/index.js index 5314f47..1ff7e1a 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -7,3 +7,4 @@ export * from '@/store/modules/editor-draft' export * from '@/store/modules/uploads' export * from '@/store/modules/dialogueList' // export * from '@/store/modules/note' +export * from '@/store/modules/group' diff --git a/src/store/modules/dialogue.js b/src/store/modules/dialogue.js index aba9696..1b60160 100644 --- a/src/store/modules/dialogue.js +++ b/src/store/modules/dialogue.js @@ -3,7 +3,7 @@ import { ServeRemoveRecords, ServeRevokeRecords, ServePublishMessage, - ServeCollectEmoticon + ServeCollectEmoticon, } from '@/api/chat/index' import { ServeGetGroupMembers } from '@/api/group/index' import { useEditorStore } from './editor' @@ -22,7 +22,7 @@ export const useDialogueStore = defineStore('dialogue', { talk: { username: '', talk_type: 0, // 对话来源[1:私聊;2:群聊] - receiver_id: 0 + receiver_id: 0, }, // 好友是否正在输入文字 @@ -55,20 +55,26 @@ export const useDialogueStore = defineStore('dialogue', { talk_type: 1, // 对话类型 receiver_id: 0, // 接收者ID read_sequence: 0, // 当前已读的最后一条记录 - records: [] - } + records: [], + }, }, // 转发消息类型 forwardType: 1, // 合并转发消息 - forwardMessages: [] + forwardMessages: [], } }, getters: { // 多选列表 selectItems: (state) => state.records.filter((item) => item.isCheck), // 当前对话是否是群聊 - isGroupTalk: (state) => state.talk.talk_type === 2 + isGroupTalk: (state) => state.talk.talk_type === 2, + //获取被禁言的成员列表 + getSilenceMember: (state) => + state.members.filter((item) => item.is_mute === 1), + //获取群管理员 + getAdminList: (state) => + state.members.filter((item) => item.leader === 1), }, actions: { // 更新在线状态 @@ -82,7 +88,7 @@ export const useDialogueStore = defineStore('dialogue', { this.talk = { username: data.remark || data.name, talk_type: data.talk_type, - receiver_id: data.receiver_id + receiver_id: data.receiver_id, } this.index_name = `${data.talk_type}_${data.receiver_id}` @@ -99,7 +105,7 @@ export const useDialogueStore = defineStore('dialogue', { // 更新提及列表 async updateGroupMembers() { let { code, data } = await ServeGetGroupMembers({ - group_id: this.talk.receiver_id + group_id: this.talk.receiver_id, }) if (code != 200) return @@ -112,7 +118,8 @@ export const useDialogueStore = defineStore('dialogue', { leader: o.leader, remark: o.remark, online: false, - value: o.nickname + value: o.nickname, + key: o.key })) }, @@ -191,7 +198,7 @@ export const useDialogueStore = defineStore('dialogue', { ServeRemoveRecords({ talk_type: this.talk.talk_type, receiver_id: this.talk.receiver_id, - msg_ids: msgIds + msg_ids: msgIds, }).then((res) => { if (res.code == 200) { this.batchDelDialogueRecord(msgIds) @@ -219,9 +226,9 @@ export const useDialogueStore = defineStore('dialogue', { type: 'forward', receiver: { talk_type: this.talk.talk_type, - receiver_id: this.talk.receiver_id + receiver_id: this.talk.receiver_id, }, - ...options + ...options, } ServePublishMessage(data).then((res) => { @@ -247,6 +254,6 @@ export const useDialogueStore = defineStore('dialogue', { // 设置合并转发消息 setForwardMessages(messages) { this.forwardMessages = messages - } - } + }, + }, }) diff --git a/src/store/modules/group.js b/src/store/modules/group.js new file mode 100644 index 0000000..cdc657d --- /dev/null +++ b/src/store/modules/group.js @@ -0,0 +1,47 @@ +import { defineStore } from 'pinia' +import { + ServeGroupDetail, + ServeGetGroupMembers, + ServeGetGroupNotices, +} from '@/api/group/index' +import { useDialogueStore } from '@/store' + +export const useGroupStore = defineStore('group', { + state: () => { + return { + groupInfo: '', //群聊信息 + memberList: [], //群成员列表 + groupNotice: [], //群公告 + } + }, + getters: { + //获取群聊信息 + getGroupInfo: (state) => state.groupInfo, + //获取群公告 + getGroupNotice: (state) => state.groupNotice, + }, + actions: { + //获取群聊信息 + async ServeGroupDetail() { + const dialogueStore = useDialogueStore() + let { code, data } = await ServeGroupDetail({ + group_id: dialogueStore.talk.receiver_id, + }) + if (code == 200) { + console.log(data) + this.groupInfo = data + } + }, + //群公告查询 + async ServeGetGroupNotices() { + const dialogueStore = useDialogueStore() + let { code, data } = await ServeGetGroupNotices({ + group_id: dialogueStore.talk.receiver_id, + }) + if (code == 200) { + this.groupNotice = data.items + } else { + } + }, + }, +}) diff --git a/src/store/modules/talk.js b/src/store/modules/talk.js index c50203e..1db3ac7 100644 --- a/src/store/modules/talk.js +++ b/src/store/modules/talk.js @@ -18,6 +18,10 @@ export const useTalkStore = defineStore('talk', { topItems: (state) => { return state.items.filter((item) => item.is_top == 1) }, + // 过滤所有免打扰对话列表 + disturbItems: (state) => { + return state.items.filter((item) => item.is_disturb == 1) + }, // 对话列表 talkItems: (state) => { diff --git a/src/uni_modules/tmui/components/tm-calendar-view/month-day.vue b/src/uni_modules/tmui/components/tm-calendar-view/month-day.vue index a86f0c8..7533f44 100644 --- a/src/uni_modules/tmui/components/tm-calendar-view/month-day.vue +++ b/src/uni_modules/tmui/components/tm-calendar-view/month-day.vue @@ -1,82 +1,149 @@ diff --git a/src/uni_modules/tmui/components/tm-calendar-view/tm-calendar-view.vue b/src/uni_modules/tmui/components/tm-calendar-view/tm-calendar-view.vue index 02b9d28..230572c 100644 --- a/src/uni_modules/tmui/components/tm-calendar-view/tm-calendar-view.vue +++ b/src/uni_modules/tmui/components/tm-calendar-view/tm-calendar-view.vue @@ -1,137 +1,139 @@ diff --git a/src/uni_modules/tmui/components/tm-time-picker/tm-time-picker.vue b/src/uni_modules/tmui/components/tm-time-picker/tm-time-picker.vue index 18beac2..bc42457 100644 --- a/src/uni_modules/tmui/components/tm-time-picker/tm-time-picker.vue +++ b/src/uni_modules/tmui/components/tm-time-picker/tm-time-picker.vue @@ -123,7 +123,8 @@ const props = defineProps({ day: true, hour: false, minute: false, - second: false + second: false, + am_pm: true } } }, diff --git a/src/uni_modules/tmui/components/tm-time-view/interface.ts b/src/uni_modules/tmui/components/tm-time-view/interface.ts index fedd600..3599dda 100644 --- a/src/uni_modules/tmui/components/tm-time-view/interface.ts +++ b/src/uni_modules/tmui/components/tm-time-view/interface.ts @@ -5,6 +5,7 @@ export interface showDetail { hour: boolean, minute: boolean, second: boolean, + am_pm: boolean } export enum timeDetailType { year = "year", @@ -25,4 +26,4 @@ export interface timeArrayType { hour: Array, minute: Array, second: Array, -} \ No newline at end of file +} diff --git a/src/uni_modules/tmui/components/tm-time-view/tm-time-view.vue b/src/uni_modules/tmui/components/tm-time-view/tm-time-view.vue index a68c94d..ddb4729 100644 --- a/src/uni_modules/tmui/components/tm-time-view/tm-time-view.vue +++ b/src/uni_modules/tmui/components/tm-time-view/tm-time-view.vue @@ -1,11 +1,14 @@