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 @@
+
+
+
+
+
+
![]()
+
+ {{
+ memberItem.nickname.length >= 2
+ ? memberItem.nickname.slice(-2)
+ : memberItem.nickname
+ }}
+
+
+
+
+ {{ $t('group.identify.admin') }}
+
+
+
+
+ {{ memberItem.nickname }}
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
![]()
+
+ {{ imgText }}
+
+
+
+ {{ nameText }}
+
+
+
+
+
+ {{ $t('chatSettings.btn.undoSilence') }}
+
+
+ {{ $t('silence.tag.hasDone') }}
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+ {{ $t('chat.settings.editAvatar') }}
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+

+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+ {{ $t('chat.settings.editGroupName') }}
+
+
+
+
+
+
+
![]()
+
+
+
+ {{ $t('chat.settings.groupName') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+ {{ $t('chat.settings.groupAdmin') }}
+
+
+
+
+
+
+ {{ $t('chat.settings.groupAdmin') }}
+
+
+

+
+ {{ $t('chat.manage.addAdmin') }}
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+ {{ $t('chat.settings.groupMember') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+ {{ $t('chat.settings.groupGag') }}
+
+
+
+
+
+
+ {{ $t('chat.manage.silenceMember') }}
+
+
+

+
+ {{ $t('chat.manage.addSilenceMember') }}
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+
+
+
+
+
+ {{ $t('chat.settings.groupNotice') }}
+
+
+
+
+
+ {{ $t('button.text.done') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+ {{ $t('chat.manage.addSilenceMember') }}
+
+
+ {{ $t('chat.manage.addAdmin') }}
+
+
+ {{ $t('search.condition.member') }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ alphabetItem }}
+
+
+
+
+
+
+ {{ alphabetItem.key }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+ {{ $t('index.chat.settings') }}
+
+
+
+
+
+
+
+
![]()
+
+
+
+ {{ groupName }}
+
+ {{ '(' + groupNum + ')' }}
+
+
+
+
+ {{ groupType }}
+
+
+
+
+

+
+
+
+
+
+
+
+
+
![]()
+
{{ item.value }}
+
+
+
+
+
+
+
+
+ {{ $t('chat.settings.clearChatRecord') }}
+
+
+
+
+ {{ $t('group.disband.btn') }}
+
+
+
+
+ {{ $t('group.quit.btn') }}
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+ {{ part.text }}
+
+ {{ part.text }}
+
+
+
+
+
+
+
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 @@
+
+
+
+
![]()
+
+ {{ imgText }}
+
+
+
+
+
+
+
+ {{ '(' + groupNum + ')' }}
+
+
+
+
+ {{ resultType }}
+
+
+
+
+ {{ chatRecordCreatedAt }}
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ getResultKeysValue(searchResultKey) }}
+
+
+
+
+
+ {{ getHasMoreResult(searchResultKey) }}
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+ {{ state.pageTitle }}
+
+
+
+
+
+
+
+
+ {{ state.selectedMonth }}
+
+

+
+
+
+
+
+
+
+
+
+
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 @@
-
-
+
+
- {{item + showSuffix['year']}}
+
+ {{ item + showSuffix['year'] }}
+
-
@@ -38,7 +41,6 @@
class="flex itemcel flex-row flex-row-center-center"
:class="[colIndex[1] == index ? '' : 'UnitemSelected']"
>
-
- {{item + 1 + showSuffix['month']}}
+
+ {{ item + 1 + showSuffix['month'] }}
+
-
@@ -59,7 +62,6 @@
class="flex itemcel flex-row flex-row-center-center"
:class="[colIndex[2] == index ? '' : 'UnitemSelected']"
>
-
- {{item + showSuffix['date']}}
+
+ {{ item + showSuffix['date'] }}
+
@@ -79,7 +83,6 @@
class="flex itemcel flex-row flex-row-center-center"
:class="[colIndex[3] == index ? '' : 'UnitemSelected']"
>
-
- {{item + showSuffix['hour']}}
+
+ {{ item + showSuffix['hour'] }}
+
@@ -99,7 +104,6 @@
class="flex itemcel flex-row flex-row-center-center"
:class="[colIndex[4] == index ? '' : 'UnitemSelected']"
>
-
- {{item + showSuffix['minute']}}
+
+ {{ item + showSuffix['minute'] }}
+
@@ -119,7 +125,6 @@
class="flex itemcel flex-row flex-row-center-center"
:class="[colIndex[5] == index ? '' : 'UnitemSelected']"
>
-
- {{item + showSuffix['second']}}
+
+ {{ item + showSuffix['second'] }}
+
@@ -136,19 +143,24 @@
-
+
-
- {{item}}
+
+ {{ item }}
+
@@ -177,7 +189,7 @@
* 时间选择
* @description 嵌入在页面的时间选择器。
*/
-import { useTmpiniaStore } from "../../tool/lib/tmpinia";
+import { useTmpiniaStore } from '../../tool/lib/tmpinia'
import {
computed,
PropType,
@@ -189,44 +201,44 @@ import {
watch,
onUpdated,
Ref,
-} from "vue";
-import { showDetail, coltimeData, timeDetailType } from "./interface";
-import * as dayjs from "../../tool/dayjs/esm";
-import { propsOpts } from "./props";
+} from 'vue'
+import { showDetail, coltimeData, timeDetailType } from './interface'
+import * as dayjs from '../../tool/dayjs/esm'
+import { propsOpts } from './props'
import {
rangeTimeArray,
getNowbyIndex,
getIndexNowbydate,
checkNowDateisBetween,
-} from "./time";
-import TmText from "../tm-text/tm-text.vue";
-import TmIcon from "../tm-icon/tm-icon.vue";
+} from './time'
+import TmText from '../tm-text/tm-text.vue'
+import TmIcon from '../tm-icon/tm-icon.vue'
// #ifdef APP-PLUS-NVUE
-const dom = uni.requireNativePlugin("dom");
+const dom = uni.requireNativePlugin('dom')
// #endif
-const proxy = getCurrentInstance()?.proxy ?? null;
-const store = useTmpiniaStore();
-const emits = defineEmits(["update:modelValue", "update:modelStr", "change"]);
-const tmTimeViewName = "tmTimeViewName";
-const DayJs = dayjs.default;
-const props = defineProps({ ...propsOpts });
+const proxy = getCurrentInstance()?.proxy ?? null
+const store = useTmpiniaStore()
+const emits = defineEmits(['update:modelValue', 'update:modelStr', 'change'])
+const tmTimeViewName = 'tmTimeViewName'
+const DayJs = dayjs.default
+const props = defineProps({ ...propsOpts })
const _nowtime = ref(
- DayJs(checkNowDateisBetween(props.defaultValue, props.start, props.end))
-);
-const _nowtimeValue = computed(() => _nowtime.value.format());
+ DayJs(checkNowDateisBetween(props.defaultValue, props.start, props.end)),
+)
+const _nowtimeValue = computed(() => _nowtime.value.format())
-const show = ref(true);
+const show = ref(true)
const _startTime = computed(() => {
return DayJs(props.start).isValid()
? DayJs(props.start).format()
- : DayJs().subtract(3, "year").format();
-});
+ : DayJs().subtract(3, 'year').format()
+})
const _endTime = computed(() => {
return DayJs(props.end).isValid()
? DayJs(props.end).format()
- : DayJs().add(1, "year").format();
-});
+ : DayJs().add(1, 'year').format()
+})
const showCol = computed(() => {
return {
year: props.showDetail?.year ?? true,
@@ -235,24 +247,25 @@ const showCol = computed(() => {
hour: props.showDetail?.hour ?? false,
minute: props.showDetail?.minute ?? false,
second: props.showDetail?.second ?? false,
- };
-});
+ am_pm: props.showDetail?.am_pm ?? true,
+ }
+})
const trueCount = computed(() => {
- return Object.values(showCol.value).filter(value => value === true).length;
-});
+ return Object.values(showCol.value).filter((value) => value === true).length
+})
const showSuffix = computed(() => {
return {
- year: props.showSuffix?.year ?? "年",
- month: props.showSuffix?.month ?? "月",
- hour: props.showSuffix?.hour ?? "时",
- minute: props.showSuffix?.minute ?? "分",
- second: props.showSuffix?.second ?? "秒",
- date: props.showSuffix?.day ?? "日",
- };
-});
-const isDark = computed(() => store.tmStore.dark);
-let colIndex: Ref> = ref([0, 0, 0, 0, 0, 0]);
-let ampmIndex: Ref> = ref([0]);
+ year: props.showSuffix?.year ?? '年',
+ month: props.showSuffix?.month ?? '月',
+ hour: props.showSuffix?.hour ?? '时',
+ minute: props.showSuffix?.minute ?? '分',
+ second: props.showSuffix?.second ?? '秒',
+ date: props.showSuffix?.day ?? '日',
+ }
+})
+const isDark = computed(() => store.tmStore.dark)
+let colIndex: Ref> = ref([0, 0, 0, 0, 0, 0])
+let ampmIndex: Ref> = ref([0])
const _col = ref({
year: [] as Array,
month: [] as Array,
@@ -260,129 +273,144 @@ const _col = ref({
hour: [] as Array,
minute: [] as Array,
second: [] as Array,
-});
+})
-let timid = NaN;
-const maskWidth = ref(0);
+let timid = NaN
+const maskWidth = ref(0)
const maskHeight = computed(() => {
- return (uni.upx2px(props.height) - 50) / 2;
-});
+ return (uni.upx2px(props.height) - 50) / 2
+})
const maskStyle = computed(() => {
let str_white =
- "background-image:linear-gradient(rgba(255,255,255,0.95),rgba(255,255,255,0.6)),linear-gradient(rgba(255,255,255,0.6),rgba(255,255,255,0.95))";
+ 'background-image:linear-gradient(rgba(255,255,255,0.95),rgba(255,255,255,0.6)),linear-gradient(rgba(255,255,255,0.6),rgba(255,255,255,0.95))'
let str_black =
- "background-image:linear-gradient(rgba(17, 17, 17, 1.0),rgba(106, 106, 106, 0.2)),linear-gradient(rgba(106, 106, 106, 0.2),rgba(17, 17, 17, 1.0))";
+ 'background-image:linear-gradient(rgba(17, 17, 17, 1.0),rgba(106, 106, 106, 0.2)),linear-gradient(rgba(106, 106, 106, 0.2),rgba(17, 17, 17, 1.0))'
// #ifdef APP-NVUE
str_black =
- "background-image: linear-gradient(to bottom,rgba(30, 30, 30, 0.9),rgba(104, 104, 104, 0.6))";
+ 'background-image: linear-gradient(to bottom,rgba(30, 30, 30, 0.9),rgba(104, 104, 104, 0.6))'
// #endif
if (!isDark.value) {
- return str_white;
+ return str_white
}
- return str_black;
-});
+ return str_black
+})
_col.value = rangeTimeArray(
_nowtimeValue.value,
_startTime.value,
_endTime.value,
- showCol.value
-);
-function change1(data){
- console.log('data',data)
+ showCol.value,
+)
+function change1(data) {
+ console.log('data', data)
}
function colchange(e: any) {
-
- let changedate = getNowbyIndex(_col.value, e.detail.value, showCol.value, _startTime.value,_endTime.value);
- let testDate = checkNowDateisBetween(changedate, _startTime.value,_endTime.value)
-
-
+ let changedate = getNowbyIndex(
+ _col.value,
+ e.detail.value,
+ showCol.value,
+ _startTime.value,
+ _endTime.value,
+ )
+ let testDate = checkNowDateisBetween(
+ changedate,
+ _startTime.value,
+ _endTime.value,
+ )
let testRang = rangeTimeArray(
- testDate,
- _startTime.value,
- _endTime.value,
- showCol.value
- );
-
-
-
-
- _nowtime.value = DayJs(testDate);
- colIndex.value = getIndexNowbydate(testRang, _nowtime.value, showCol.value);
- emits("update:modelValue", _nowtime.value.format("YYYY/MM/DD HH:mm:ss"));
- emits("update:modelStr", _nowtime.value.format(props.format));
- emits("change", _nowtime.value.format(props.format));
-
- _col.value= testRang;
+ testDate,
+ _startTime.value,
+ _endTime.value,
+ showCol.value,
+ )
+ _nowtime.value = DayJs(testDate)
+ colIndex.value = getIndexNowbydate(testRang, _nowtime.value, showCol.value)
+ emits('update:modelValue', _nowtime.value.format('YYYY/MM/DD HH:mm:ss'))
+ emits('update:modelStr', _nowtime.value.format(props.format))
+ emits('change', _nowtime.value.format(props.format))
+ _col.value = testRang
}
watch(
() => props.modelValue,
() => {
- if (!DayJs(props.modelValue).isValid()) return;
- let deattime = DayJs(checkNowDateisBetween(props.modelValue, props.start, props.end));
+ if (!DayJs(props.modelValue).isValid()) return
+ let deattime = DayJs(
+ checkNowDateisBetween(props.modelValue, props.start, props.end),
+ )
- if (DayJs(deattime).isSame(_nowtime.value)) return;
- _nowtime.value = deattime;
- emits("update:modelStr", _nowtime.value.format(props.format));
+ if (DayJs(deattime).isSame(_nowtime.value)) return
+ _nowtime.value = deattime
+ emits('update:modelStr', _nowtime.value.format(props.format))
// #ifdef APP-NVUE
_col.value = rangeTimeArray(
deattime,
_startTime.value,
_endTime.value,
- showCol.value
- );
- show.value = false;
- colIndex.value = getIndexNowbydate(_col.value, _nowtime.value, showCol.value);
+ showCol.value,
+ )
+ show.value = false
+ colIndex.value = getIndexNowbydate(
+ _col.value,
+ _nowtime.value,
+ showCol.value,
+ )
nextTick(() => {
/**这力着重解释下,uni sdk从3.6.8开始,在nvue下直接对picker view赋值value,页面不会有任何变化,必须刷新下页面才可以显示正确
* 其它平台没有这问题
*/
- show.value = true;
- });
+ show.value = true
+ })
// #endif
// #ifndef APP-NVUE
_col.value = rangeTimeArray(
deattime,
_startTime.value,
_endTime.value,
- showCol.value
- );
- colIndex.value = getIndexNowbydate(_col.value, _nowtime.value, showCol.value);
+ showCol.value,
+ )
+ colIndex.value = getIndexNowbydate(
+ _col.value,
+ _nowtime.value,
+ showCol.value,
+ )
// #endif
- }
-);
+ },
+)
function nvuegetClientRect() {
nextTick(function () {
// #ifdef APP-PLUS-NVUE
dom.getComponentRect(proxy.$refs.picker, function (res) {
if (res?.size) {
- maskWidth.value = res.size.width;
+ maskWidth.value = res.size.width
if (res.size.width == 0) {
- nvuegetClientRect();
+ nvuegetClientRect()
}
}
- });
+ })
// #endif
- });
+ })
}
onMounted(() => {
- nvuegetClientRect();
+ nvuegetClientRect()
nextTick(() => {
- emits("update:modelValue", _nowtime.value.format("YYYY/MM/DD HH:mm:ss"));
- emits("update:modelStr", _nowtime.value.format(props.format));
- colIndex.value = getIndexNowbydate(_col.value, _nowtime.value, showCol.value);
- });
-});
+ emits('update:modelValue', _nowtime.value.format('YYYY/MM/DD HH:mm:ss'))
+ emits('update:modelStr', _nowtime.value.format(props.format))
+ colIndex.value = getIndexNowbydate(
+ _col.value,
+ _nowtime.value,
+ showCol.value,
+ )
+ })
+})
-
-onUpdated(() => nvuegetClientRect());
+onUpdated(() => nvuegetClientRect())
// defineExpose({tmTimeViewName,setNowtime})
@@ -397,7 +425,11 @@ onUpdated(() => nvuegetClientRect());
}
.bottom {
- background-image: linear-gradient(to top, rgba(17, 17, 17, 1), rgba(36, 36, 36, 0.6));
+ background-image: linear-gradient(
+ to top,
+ rgba(17, 17, 17, 1),
+ rgba(36, 36, 36, 0.6)
+ );
}
.itemcel {
diff --git a/src/uni_modules/tmui/locale/zh-Hans.json b/src/uni_modules/tmui/locale/zh-Hans.json
index c7cfb54..5055012 100644
--- a/src/uni_modules/tmui/locale/zh-Hans.json
+++ b/src/uni_modules/tmui/locale/zh-Hans.json
@@ -1,76 +1,120 @@
{
- "language": "简体-中国",
- "index.search.subtext": "全端兼容vue3 TypeScript pinia组件库",
- "index.search.tips": "组件中文/英文名称",
- "index.search.btntext": "搜索组件",
- "index.com.navtitle": "TMUI 全平台组件库",
- "index.com.title": "分类导航",
- "index.com.tongyong": "通用组件",
- "index.com.tongyongSub": "高频常用组件",
- "index.com.row": "布局组件",
- "index.com.rowSub": "布局排版",
- "index.com.show": "展示组件",
- "index.com.showSub": "常见数据展示",
- "index.com.form": "表单录入",
- "index.com.formSub": "数据提交类",
- "index.com.fd": "反馈类型",
- "index.com.fdSub": "提示弹层类组件",
- "index.com.nav": "导航类型",
- "index.com.navSub": "分页导航类",
- "index.com.yewu": "业务型组件",
- "index.com.yewuSub": "优惠券导购类",
- "index.com.other": "其它",
- "index.com.otherSub": "功能型组件",
- "index.com.tubiao": "图表组件",
- "index.com.tubiaoSub": "Echarts 5.3.2",
- "index.com.render": "tmCv",
- "index.com.renderSub": "canvas动画渲染",
- "index.com.pag": "PAG",
- "index.com.pagSub": "腾讯pag动画",
- "index.com.bottom": "TMUI3.0",
- "index.com.setLocal": "设置语言",
- "index.com.autoDark": "暗黑跟随系统",
- "index.com.love": "TMUI用户中心",
- "index.com.loveSub": "看广告赚积分",
- "index.com.themetext": "动态切换主题,默认主题见文档",
- "index.com.themeGreen": "小黄",
- "index.com.themeBlue": "蓝色",
- "index.com.themeRed": "红色",
- "index.com.themeDefault": "默认",
- "index.com.themeCustText": "自定",
- "message.load.text": "加载中",
- "message.error.text": "操作错误",
- "message.info.text": "提示信息",
- "message.warn.text": "警告信息",
- "message.quest.text": "似乎有问题",
- "message.success.text": "操作成功",
- "message.disabled.text": "禁止操作",
- "message.wait.text": "请稍候..",
- "index.mine.logOut":"退出登录",
- "index.mine.help":"帮助中心",
- "index.mine.settings":"设置与隐私",
- "index.mine.addressBook":"通讯录",
- "index.mine.card":"我的名片",
- "index.mine.information":"个人信息认证",
- "index.mine.refresh":"刷新缓存",
- "index.mine.clickRefresh":"点击清理缓存",
- "index.mine.basic":"基本信息",
- "index.mine.company":"公司别",
- "index.mine.department":"部门",
- "index.mine.post":"岗位",
- "index.mine.manager":"主管",
- "index.mine.phone":"手机号",
- "index.mine.entry":"入职时间",
- "index.mine.unable":"无法上传照片",
- "index.mine.face":"扫脸失败",
- "index.mine.recentPhoto":"个人近照",
- "userAgreement":"用户服务协议",
- "privacyPolicy":"隐私政策",
- "index.mine.cancellation":"注销账号",
- "ok":"确定",
- "message.customerService.text":"请拨打客服电话",
- "message.action.text":"进行注销操作",
- "index.mine.upload":"点击上传",
- "index.mine.reUpload":"重新上传",
- "index.mine.loading":"载入中"
+ "language": "简体-中国",
+ "index.search.subtext": "全端兼容vue3 TypeScript pinia组件库",
+ "index.search.tips": "组件中文/英文名称",
+ "index.search.btntext": "搜索组件",
+ "index.com.navtitle": "TMUI 全平台组件库",
+ "index.com.title": "分类导航",
+ "index.com.tongyong": "通用组件",
+ "index.com.tongyongSub": "高频常用组件",
+ "index.com.row": "布局组件",
+ "index.com.rowSub": "布局排版",
+ "index.com.show": "展示组件",
+ "index.com.showSub": "常见数据展示",
+ "index.com.form": "表单录入",
+ "index.com.formSub": "数据提交类",
+ "index.com.fd": "反馈类型",
+ "index.com.fdSub": "提示弹层类组件",
+ "index.com.nav": "导航类型",
+ "index.com.navSub": "分页导航类",
+ "index.com.yewu": "业务型组件",
+ "index.com.yewuSub": "优惠券导购类",
+ "index.com.other": "其它",
+ "index.com.otherSub": "功能型组件",
+ "index.com.tubiao": "图表组件",
+ "index.com.tubiaoSub": "Echarts 5.3.2",
+ "index.com.render": "tmCv",
+ "index.com.renderSub": "canvas动画渲染",
+ "index.com.pag": "PAG",
+ "index.com.pagSub": "腾讯pag动画",
+ "index.com.bottom": "TMUI3.0",
+ "index.com.setLocal": "设置语言",
+ "index.com.autoDark": "暗黑跟随系统",
+ "index.com.love": "TMUI用户中心",
+ "index.com.loveSub": "看广告赚积分",
+ "index.com.themetext": "动态切换主题,默认主题见文档",
+ "index.com.themeGreen": "小黄",
+ "index.com.themeBlue": "蓝色",
+ "index.com.themeRed": "红色",
+ "index.com.themeDefault": "默认",
+ "index.com.themeCustText": "自定",
+ "message.load.text": "加载中",
+ "message.error.text": "操作错误",
+ "message.info.text": "提示信息",
+ "message.warn.text": "警告信息",
+ "message.quest.text": "似乎有问题",
+ "message.success.text": "操作成功",
+ "message.disabled.text": "禁止操作",
+ "message.wait.text": "请稍候..",
+ "index.mine.logOut": "退出登录",
+ "index.mine.help": "帮助中心",
+ "index.mine.settings": "设置与隐私",
+ "index.mine.addressBook": "通讯录",
+ "index.mine.card": "我的名片",
+ "index.mine.information": "个人信息认证",
+ "index.mine.refresh": "刷新缓存",
+ "index.mine.clickRefresh": "点击清理缓存",
+ "index.mine.basic": "基本信息",
+ "index.mine.company": "公司别",
+ "index.mine.department": "部门",
+ "index.mine.post": "岗位",
+ "index.mine.manager": "主管",
+ "index.mine.phone": "手机号",
+ "index.mine.entry": "入职时间",
+ "index.mine.unable": "无法上传照片",
+ "index.mine.face": "扫脸失败",
+ "index.mine.recentPhoto": "个人近照",
+ "userAgreement": "用户服务协议",
+ "privacyPolicy": "隐私政策",
+ "index.mine.cancellation": "注销账号",
+ "ok": "确定",
+ "message.customerService.text": "请拨打客服电话",
+ "message.action.text": "进行注销操作",
+ "index.mine.upload": "点击上传",
+ "index.mine.reUpload": "重新上传",
+ "index.mine.loading": "载入中",
+ "cancel": "取消",
+ "search.hint": "检索您要查找的内容吧~",
+ "search.chat.count": "条相关聊天记录",
+ "index.mine.project": "项目",
+ "chat.type.group": "群聊",
+ "chat.type.record": "聊天记录",
+ "search.result.include": "包含:",
+ "has_more": "更多",
+ "index.type.company": "公司",
+ "search.result.relevant": "相关",
+ "index.chat.settings": "聊天设置",
+ "chat.settings.clearChatRecord": "清空聊天记录",
+ "chat.settings.groupName": "群名称",
+ "chat.settings.groupNotice": "群公告",
+ "chat.settings.groupType": "群类型",
+ "chat.settings.topSession": "置顶会话",
+ "chat.settings.messageNoDisturb": "消息免打扰",
+ "chat.settings.groupGag": "群内禁言",
+ "chat.settings.groupAdmin": "群管理员",
+ "chat.settings.groupMember": "群成员",
+ "search.chat.record": "搜索聊天记录",
+ "record.searchType.date": "日期",
+ "record.searchType.imgAndVideo": "图片及视频",
+ "record.searchType.files": "文件",
+ "record.searchType.link": "链接",
+ "group.identify.admin": "管理员",
+ "group.disband.btn": "解散该群",
+ "group.quit.btn": "退出群聊",
+ "search.condition.date": "按日期查找",
+ "search.condition.date_pickerTitle": "请选择聊天日期",
+ "button.text.done": "完成",
+ "input.placeholder.enter": "请输入...",
+ "chat.settings.editGroupName": "修改群名称",
+ "edit.groupName.placeholder": "请输入群名称(1~20个字)",
+ "chat.settings.editAvatar": "修改头像",
+ "button.text.edit": "修改",
+ "chat.manage.silenceMember": "被禁言的成员",
+ "chat.manage.silenceAll": "全员禁言",
+ "chat.manage.silenceAllHint": "开启后,只允许群管理员发言",
+ "chat.manage.addSilenceMember": "添加禁言成员",
+ "chatSettings.btn.undoSilence": "解禁",
+ "silence.tag.hasDone": "已禁言",
+ "chat.manage.addAdmin": "添加管理员",
+ "search.condition.member": "按群成员查找"
}