From cc627ec45ad7c3a0fe3e1c79442b6e1b2c816d2a Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Sun, 24 Nov 2024 17:09:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96(=E4=BD=BF=E7=94=A8vscode=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-uniapp/App.vue | 783 ++++----- im-uniapp/common/date.js | 18 +- im-uniapp/common/enums.js | 52 +- im-uniapp/common/messageType.js | 24 +- im-uniapp/common/recorder-h5.js | 8 +- im-uniapp/common/request.js | 4 +- im-uniapp/common/wssocket.js | 10 +- im-uniapp/components/bar/arrow-bar.vue | 55 +- im-uniapp/components/bar/bar-group.vue | 12 +- im-uniapp/components/bar/btn-bar.vue | 102 +- im-uniapp/components/bar/switch-bar.vue | 86 +- .../components/chat-at-box/chat-at-box.vue | 239 ++- .../chat-group-readed/chat-group-readed.vue | 173 +- im-uniapp/components/chat-item/chat-item.vue | 263 +-- .../chat-message-item/chat-message-item.vue | 685 ++++---- .../components/chat-record/chat-record.vue | 372 ++-- .../components/file-upload/file-upload.vue | 187 +- .../components/friend-item/friend-item.vue | 97 +- .../components/group-item/group-item.vue | 79 +- .../group-member-selector.vue | 223 +-- .../group-rtc-join/group-rtc-join.vue | 105 +- .../components/head-image/head-image.vue | 182 +- .../components/image-upload/image-upload.vue | 151 +- im-uniapp/components/loading/loading.vue | 84 +- im-uniapp/components/nav-bar/nav-bar.vue | 9 +- im-uniapp/components/pop-menu/pop-menu.vue | 188 +- im-uniapp/main.js | 17 +- im-uniapp/manifest.json | 167 +- im-uniapp/package.json | 2 +- im-uniapp/pages.json | 103 +- im-uniapp/pages/chat/chat-box.vue | 1528 +++++++++-------- im-uniapp/pages/chat/chat-group-video.vue | 230 +-- im-uniapp/pages/chat/chat-private-video.vue | 169 +- im-uniapp/pages/chat/chat.vue | 227 ++- im-uniapp/pages/common/user-info.vue | 300 ++-- im-uniapp/pages/friend/friend-add.vue | 163 +- im-uniapp/pages/friend/friend.vue | 228 +-- im-uniapp/pages/group/group-edit.vue | 271 +-- im-uniapp/pages/group/group-info.vue | 401 +++-- im-uniapp/pages/group/group-invite.vue | 257 ++- im-uniapp/pages/group/group-member.vue | 238 +-- im-uniapp/pages/group/group.vue | 79 +- im-uniapp/pages/login/login.vue | 136 +- im-uniapp/pages/mine/mine-edit.vue | 128 +- im-uniapp/pages/mine/mine-password.vue | 165 +- im-uniapp/pages/mine/mine.vue | 236 ++- im-uniapp/pages/register/register.vue | 198 +-- im-uniapp/store/chatStore.js | 32 +- im-uniapp/store/userStore.js | 2 +- im-uniapp/vite.config.js | 2 - im-web/src/view/Login.vue | 1 - 51 files changed, 4741 insertions(+), 4730 deletions(-) diff --git a/im-uniapp/App.vue b/im-uniapp/App.vue index b594875..f92ea61 100644 --- a/im-uniapp/App.vue +++ b/im-uniapp/App.vue @@ -1,429 +1,430 @@ \ No newline at end of file diff --git a/im-uniapp/common/date.js b/im-uniapp/common/date.js index bba3e43..cd4fc17 100644 --- a/im-uniapp/common/date.js +++ b/im-uniapp/common/date.js @@ -5,23 +5,23 @@ let toTimeText = (timeStamp, simple) => { var timeText = ''; if (timeDiff <= 60000) { //一分钟内 timeText = '刚刚'; - } else if (timeDiff > 60000 && timeDiff < 3600000) { + } else if (timeDiff > 60000 && timeDiff < 3600000) { //1小时内 timeText = Math.floor(timeDiff / 60000) + '分钟前'; - } else if (timeDiff >= 3600000 && timeDiff < 86400000 && !isYestday(dateTime)) { + } else if (timeDiff >= 3600000 && timeDiff < 86400000 && !isYestday(dateTime)) { //今日 timeText = formatDateTime(dateTime).substr(11, 5); - } else if (isYestday(dateTime)) { + } else if (isYestday(dateTime)) { //昨天 - timeText = '昨天' + formatDateTime(dateTime).substr(11, 5); - } else if (isYear(dateTime)) { + timeText = '昨天' + formatDateTime(dateTime).substr(11, 5); + } else if (isYear(dateTime)) { //今年 timeText = formatDateTime(dateTime).substr(5, simple ? 5 : 14); - } else { + } else { //不属于今年 timeText = formatDateTime(dateTime); - if(simple){ - timeText = timeText.substr(2,8); + if (simple) { + timeText = timeText.substr(2, 8); } } return timeText; @@ -58,7 +58,7 @@ let formatDateTime = (date) => { } -export{ +export { toTimeText, isYestday, isYear, diff --git a/im-uniapp/common/enums.js b/im-uniapp/common/enums.js index d6f0c53..08510be 100644 --- a/im-uniapp/common/enums.js +++ b/im-uniapp/common/enums.js @@ -2,18 +2,18 @@ const MESSAGE_TYPE = { TEXT: 0, IMAGE: 1, - FILE:2, - AUDIO:3, - VIDEO:4, - RECALL:10, - READED:11, - RECEIPT:12, - TIP_TIME:20, - TIP_TEXT:21, - LOADING:30, - ACT_RT_VOICE:40, - ACT_RT_VIDEO:41, - USER_BANNED:50, + FILE: 2, + AUDIO: 3, + VIDEO: 4, + RECALL: 10, + READED: 11, + RECEIPT: 12, + TIP_TIME: 20, + TIP_TEXT: 21, + LOADING: 30, + ACT_RT_VOICE: 40, + ACT_RT_VIDEO: 41, + USER_BANNED: 50, RTC_CALL_VOICE: 100, RTC_CALL_VIDEO: 101, RTC_ACCEPT: 102, @@ -22,18 +22,18 @@ const MESSAGE_TYPE = { RTC_FAILED: 105, RTC_HANDUP: 106, RTC_CANDIDATE: 107, - RTC_GROUP_SETUP:200, - RTC_GROUP_ACCEPT:201, - RTC_GROUP_REJECT:202, - RTC_GROUP_FAILED:203, - RTC_GROUP_CANCEL:204, - RTC_GROUP_QUIT:205, - RTC_GROUP_INVITE:206, - RTC_GROUP_JOIN:207, - RTC_GROUP_OFFER:208, - RTC_GROUP_ANSWER:209, - RTC_GROUP_CANDIDATE:210, - RTC_GROUP_DEVICE:211 + RTC_GROUP_SETUP: 200, + RTC_GROUP_ACCEPT: 201, + RTC_GROUP_REJECT: 202, + RTC_GROUP_FAILED: 203, + RTC_GROUP_CANCEL: 204, + RTC_GROUP_QUIT: 205, + RTC_GROUP_INVITE: 206, + RTC_GROUP_JOIN: 207, + RTC_GROUP_OFFER: 208, + RTC_GROUP_ANSWER: 209, + RTC_GROUP_CANDIDATE: 210, + RTC_GROUP_DEVICE: 211 } const USER_STATE = { @@ -50,8 +50,8 @@ const TERMINAL_TYPE = { const MESSAGE_STATUS = { UNSEND: 0, SENDED: 1, - RECALL:2, - READED:3 + RECALL: 2, + READED: 3 } export { diff --git a/im-uniapp/common/messageType.js b/im-uniapp/common/messageType.js index 99d1c00..f6b1caf 100644 --- a/im-uniapp/common/messageType.js +++ b/im-uniapp/common/messageType.js @@ -1,32 +1,32 @@ // 是否普通消息 -let isNormal = function(type){ - return type>=0 && type < 10; +let isNormal = function (type) { + return type >= 0 && type < 10; } // 是否状态消息 -let isStatus = function(type){ - return type>=10 && type < 20; +let isStatus = function (type) { + return type >= 10 && type < 20; } // 是否提示消息 -let isTip = function(type){ - return type>=20 && type < 30; +let isTip = function (type) { + return type >= 20 && type < 30; } // 操作交互类消息 -let isAction = function(type){ - return type>=40 && type < 50; +let isAction = function (type) { + return type >= 40 && type < 50; } // 单人通话信令 -let isRtcPrivate = function(type){ - return type>=100 && type < 200; +let isRtcPrivate = function (type) { + return type >= 100 && type < 200; } // 多人通话信令 -let isRtcGroup = function(type){ - return type>=200 && type < 300; +let isRtcGroup = function (type) { + return type >= 200 && type < 300; } diff --git a/im-uniapp/common/recorder-h5.js b/im-uniapp/common/recorder-h5.js index b174081..fdf828d 100644 --- a/im-uniapp/common/recorder-h5.js +++ b/im-uniapp/common/recorder-h5.js @@ -3,7 +3,7 @@ import UNI_APP from '@/.env.js'; let rc = null; let start = () => { - if(rc != null){ + if (rc != null) { close(); } rc = new Recorder(); @@ -22,7 +22,7 @@ let close = () => { let upload = () => { return new Promise((resolve, reject) => { const wavBlob = rc.getWAVBlob(); - const newbolb = new Blob([wavBlob], { type: 'audio/wav'}) + const newbolb = new Blob([wavBlob], { type: 'audio/wav' }) const name = new Date().getDate() + '.wav'; const file = new File([newbolb], name) uni.uploadFile({ @@ -34,10 +34,10 @@ let upload = () => { name: 'file', success: (res) => { let r = JSON.parse(res.data); - if(r.code != 200){ + if (r.code != 200) { console.log(res) reject(r.message); - }else { + } else { const data = { duration: parseInt(rc.duration), url: r.data diff --git a/im-uniapp/common/request.js b/im-uniapp/common/request.js index 1360497..46775e0 100644 --- a/im-uniapp/common/request.js +++ b/im-uniapp/common/request.js @@ -11,7 +11,7 @@ const request = (options) => { if (loginInfo) { header.accessToken = loginInfo.accessToken; } - return new Promise(function(resolve, reject) { + return new Promise(function (resolve, reject) { uni.request({ url: UNI_APP.BASE_URL + options.url, method: options.method || 'GET', @@ -72,7 +72,7 @@ const request = (options) => { const reqRefreshToken = (loginInfo) => { - return new Promise(function(resolve, reject) { + return new Promise(function (resolve, reject) { uni.request({ method: 'PUT', url: UNI_APP.BASE_URL + '/refreshToken', diff --git a/im-uniapp/common/wssocket.js b/im-uniapp/common/wssocket.js index d7cce1a..144c746 100644 --- a/im-uniapp/common/wssocket.js +++ b/im-uniapp/common/wssocket.js @@ -55,7 +55,7 @@ let init = () => { console.log(e) isConnect = false; // APP 应用切出超过一定时间(约1分钟)会触发报错,此处回调给应用进行重连 - closeCallBack && closeCallBack({code: 1006}); + closeCallBack && closeCallBack({ code: 1006 }); }) }; @@ -92,7 +92,7 @@ let reconnect = (wsurl, accessToken) => { let timeDiff = new Date().getTime() - lastConnectTime.getTime() let delay = timeDiff < 10000 ? 10000 - timeDiff : 0; rec && clearTimeout(rec); - rec = setTimeout(function() { + rec = setTimeout(function () { connect(wsurl, accessToken); }, delay); }; @@ -119,7 +119,7 @@ let close = (code) => { var heartCheck = { timeout: 10000, //每段时间发送一次心跳包 这里设置为30s timeoutObj: null, //延时发送消息对象(启动心跳新建这个对象,收到消息后重置对象) - start: function() { + start: function () { if (isConnect) { console.log('发送WebSocket心跳') let heartBeat = { @@ -134,9 +134,9 @@ var heartCheck = { }) } }, - reset: function() { + reset: function () { clearTimeout(this.timeoutObj); - this.timeoutObj = setTimeout(function() { + this.timeoutObj = setTimeout(function () { heartCheck.start(); }, this.timeout); } diff --git a/im-uniapp/components/bar/arrow-bar.vue b/im-uniapp/components/bar/arrow-bar.vue index 7523785..97e6dfb 100644 --- a/im-uniapp/components/bar/arrow-bar.vue +++ b/im-uniapp/components/bar/arrow-bar.vue @@ -1,39 +1,40 @@ \ No newline at end of file diff --git a/im-uniapp/components/bar/bar-group.vue b/im-uniapp/components/bar/bar-group.vue index e4e7cbb..570965f 100644 --- a/im-uniapp/components/bar/bar-group.vue +++ b/im-uniapp/components/bar/bar-group.vue @@ -5,13 +5,13 @@ \ No newline at end of file diff --git a/im-uniapp/components/bar/btn-bar.vue b/im-uniapp/components/bar/btn-bar.vue index df18045..cc9408c 100644 --- a/im-uniapp/components/bar/btn-bar.vue +++ b/im-uniapp/components/bar/btn-bar.vue @@ -1,66 +1,68 @@ \ No newline at end of file diff --git a/im-uniapp/components/bar/switch-bar.vue b/im-uniapp/components/bar/switch-bar.vue index 44a50b5..3616229 100644 --- a/im-uniapp/components/bar/switch-bar.vue +++ b/im-uniapp/components/bar/switch-bar.vue @@ -1,61 +1,61 @@ \ No newline at end of file diff --git a/im-uniapp/components/chat-at-box/chat-at-box.vue b/im-uniapp/components/chat-at-box/chat-at-box.vue index 0273268..ad1a9ed 100644 --- a/im-uniapp/components/chat-at-box/chat-at-box.vue +++ b/im-uniapp/components/chat-at-box/chat-at-box.vue @@ -4,12 +4,12 @@ 选择要提醒的人 - - + - + @@ -19,15 +19,14 @@ - - + + - {{ m.showNickName}} - - - + {{ m.showNickName }} + + + @@ -37,143 +36,143 @@ \ No newline at end of file diff --git a/im-uniapp/components/chat-group-readed/chat-group-readed.vue b/im-uniapp/components/chat-group-readed/chat-group-readed.vue index 3359d70..c47a309 100644 --- a/im-uniapp/components/chat-group-readed/chat-group-readed.vue +++ b/im-uniapp/components/chat-group-readed/chat-group-readed.vue @@ -2,7 +2,8 @@ - + @@ -11,7 +12,7 @@ - {{ m.aliasName}} + {{ m.aliasName }} @@ -22,7 +23,7 @@ - {{ m.aliasName}} + {{ m.aliasName }} @@ -33,99 +34,99 @@ - \ No newline at end of file diff --git a/im-uniapp/components/chat-item/chat-item.vue b/im-uniapp/components/chat-item/chat-item.vue index dfa6265..47131c8 100644 --- a/im-uniapp/components/chat-item/chat-item.vue +++ b/im-uniapp/components/chat-item/chat-item.vue @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/im-uniapp/components/chat-message-item/chat-message-item.vue b/im-uniapp/components/chat-message-item/chat-message-item.vue index 82733e1..a205a2c 100644 --- a/im-uniapp/components/chat-message-item/chat-message-item.vue +++ b/im-uniapp/components/chat-message-item/chat-message-item.vue @@ -1,26 +1,26 @@ \ No newline at end of file diff --git a/im-uniapp/components/chat-record/chat-record.vue b/im-uniapp/components/chat-record/chat-record.vue index 971e9f0..659d95f 100644 --- a/im-uniapp/components/chat-record/chat-record.vue +++ b/im-uniapp/components/chat-record/chat-record.vue @@ -1,8 +1,8 @@ \ No newline at end of file diff --git a/im-uniapp/components/file-upload/file-upload.vue b/im-uniapp/components/file-upload/file-upload.vue index 2f815ca..f204243 100644 --- a/im-uniapp/components/file-upload/file-upload.vue +++ b/im-uniapp/components/file-upload/file-upload.vue @@ -8,110 +8,109 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/im-uniapp/components/friend-item/friend-item.vue b/im-uniapp/components/friend-item/friend-item.vue index d58293c..cd6627a 100644 --- a/im-uniapp/components/friend-item/friend-item.vue +++ b/im-uniapp/components/friend-item/friend-item.vue @@ -2,75 +2,74 @@ - {{ friend.nickName}} + {{ friend.nickName }} - - + + diff --git a/im-uniapp/components/group-item/group-item.vue b/im-uniapp/components/group-item/group-item.vue index 80bfb98..14b4a63 100644 --- a/im-uniapp/components/group-item/group-item.vue +++ b/im-uniapp/components/group-item/group-item.vue @@ -1,59 +1,58 @@ diff --git a/im-uniapp/components/group-member-selector/group-member-selector.vue b/im-uniapp/components/group-member-selector/group-member-selector.vue index fc7bc32..ca87122 100644 --- a/im-uniapp/components/group-member-selector/group-member-selector.vue +++ b/im-uniapp/components/group-member-selector/group-member-selector.vue @@ -4,12 +4,12 @@ 选择成员 - - + - + @@ -23,7 +23,7 @@ - {{ m.showNickName}} + {{ m.showNickName }} @@ -37,137 +37,138 @@ \ No newline at end of file diff --git a/im-uniapp/components/group-rtc-join/group-rtc-join.vue b/im-uniapp/components/group-rtc-join/group-rtc-join.vue index 6b36b55..6ee2459 100644 --- a/im-uniapp/components/group-rtc-join/group-rtc-join.vue +++ b/im-uniapp/components/group-rtc-join/group-rtc-join.vue @@ -1,17 +1,16 @@ \ No newline at end of file diff --git a/im-uniapp/components/head-image/head-image.vue b/im-uniapp/components/head-image/head-image.vue index 5a12ed3..4bc68bf 100644 --- a/im-uniapp/components/head-image/head-image.vue +++ b/im-uniapp/components/head-image/head-image.vue @@ -1,9 +1,9 @@ \ No newline at end of file diff --git a/im-uniapp/components/image-upload/image-upload.vue b/im-uniapp/components/image-upload/image-upload.vue index de625c3..6cfe9e5 100644 --- a/im-uniapp/components/image-upload/image-upload.vue +++ b/im-uniapp/components/image-upload/image-upload.vue @@ -5,89 +5,88 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/im-uniapp/components/loading/loading.vue b/im-uniapp/components/loading/loading.vue index bc33f11..a56b8ea 100644 --- a/im-uniapp/components/loading/loading.vue +++ b/im-uniapp/components/loading/loading.vue @@ -6,59 +6,57 @@ \ No newline at end of file diff --git a/im-uniapp/components/nav-bar/nav-bar.vue b/im-uniapp/components/nav-bar/nav-bar.vue index d928939..b2fb631 100644 --- a/im-uniapp/components/nav-bar/nav-bar.vue +++ b/im-uniapp/components/nav-bar/nav-bar.vue @@ -11,9 +11,11 @@ - + - + @@ -85,8 +87,7 @@ export default { box-sizing: border-box; height: $im-nav-bar-height; - .title { - } + .title {} .back { position: absolute; diff --git a/im-uniapp/components/pop-menu/pop-menu.vue b/im-uniapp/components/pop-menu/pop-menu.vue index e9b2cb4..27a2fe0 100644 --- a/im-uniapp/components/pop-menu/pop-menu.vue +++ b/im-uniapp/components/pop-menu/pop-menu.vue @@ -5,117 +5,117 @@ - - - {{item.name}} + + {{ item.name }} \ No newline at end of file diff --git a/im-uniapp/main.js b/im-uniapp/main.js index b47b541..be8e65b 100644 --- a/im-uniapp/main.js +++ b/im-uniapp/main.js @@ -27,9 +27,6 @@ import * as recorder from './common/recorder-h5'; // #ifndef H5 import * as recorder from './common/recorder-app'; // #endif - - - export function createApp() { const app = createSSRApp(App) app.use(uviewPlus); @@ -46,15 +43,15 @@ export function createApp() { app.config.globalProperties.$date = date; app.config.globalProperties.$rc = recorder; // 初始化时再挂载store对象 - app.config.globalProperties.$mountStore = ()=>{ - app.config.globalProperties.chatStore = useChatStore(); - app.config.globalProperties.friendStore = useFriendStore(); - app.config.globalProperties.groupStore = useGroupStore(); - app.config.globalProperties.configStore = useConfigStore(); - app.config.globalProperties.userStore = useUserStore(); + app.config.globalProperties.$mountStore = () => { + app.config.globalProperties.chatStore = useChatStore(); + app.config.globalProperties.friendStore = useFriendStore(); + app.config.globalProperties.groupStore = useGroupStore(); + app.config.globalProperties.configStore = useConfigStore(); + app.config.globalProperties.userStore = useUserStore(); } return { app, - pinia + pinia } } diff --git a/im-uniapp/manifest.json b/im-uniapp/manifest.json index a0ed444..eb44f57 100644 --- a/im-uniapp/manifest.json +++ b/im-uniapp/manifest.json @@ -1,32 +1,32 @@ { - "name" : "盒子IM", - "appid" : "__UNI__69DD57A", - "description" : "", - "versionName" : "3.1.0", - "versionCode" : 3100, - "transformPx" : false, + "name": "盒子IM", + "appid": "__UNI__69DD57A", + "description": "", + "versionName": "3.1.0", + "versionCode": 3100, + "transformPx": false, /* 5+App特有相关 */ - "app-plus" : { - "usingComponents" : true, - "nvueStyleCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 + "app-plus": { + "usingComponents": true, + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 }, /* 模块配置 */ - "modules" : { - "Camera" : {}, - "Record" : {}, - "Bluetooth" : {} + "modules": { + "Camera": {}, + "Record": {}, + "Bluetooth": {} }, /* 应用发布信息 */ - "distribute" : { + "distribute": { /* android打包配置 */ - "android" : { - "permissions" : [ + "android": { + "permissions": [ "", "", "", @@ -45,87 +45,90 @@ "", "" ], - "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], - "minSdkVersion" : 21 + "abiFilters": [ + "armeabi-v7a", + "arm64-v8a", + "x86" + ], + "minSdkVersion": 21 }, /* ios打包配置 */ - "ios" : { - "dSYMs" : false, - "privacyDescription" : { - "NSMicrophoneUsageDescription" : "", - "NSCameraUsageDescription" : "" + "ios": { + "dSYMs": false, + "privacyDescription": { + "NSMicrophoneUsageDescription": "", + "NSCameraUsageDescription": "" }, - "idfa" : false + "idfa": false }, /* SDK配置 */ - "sdkConfigs" : { - "ad" : {}, - "speech" : {} + "sdkConfigs": { + "ad": {}, + "speech": {} }, - "icons" : { - "android" : { - "xhdpi" : "unpackage/res/icons/96x96.png", - "hdpi" : "unpackage/res/icons/72x72.png", - "xxhdpi" : "unpackage/res/icons/144x144.png", - "xxxhdpi" : "unpackage/res/icons/192x192.png" + "icons": { + "android": { + "xhdpi": "unpackage/res/icons/96x96.png", + "hdpi": "unpackage/res/icons/72x72.png", + "xxhdpi": "unpackage/res/icons/144x144.png", + "xxxhdpi": "unpackage/res/icons/192x192.png" }, - "ios" : { - "appstore" : "unpackage/res/icons/1024x1024.png", - "ipad" : { - "app" : "unpackage/res/icons/76x76.png", - "app@2x" : "unpackage/res/icons/152x152.png", - "notification" : "unpackage/res/icons/20x20.png", - "notification@2x" : "unpackage/res/icons/40x40.png", - "proapp@2x" : "unpackage/res/icons/167x167.png", - "settings" : "unpackage/res/icons/29x29.png", - "settings@2x" : "unpackage/res/icons/58x58.png", - "spotlight" : "unpackage/res/icons/40x40.png", - "spotlight@2x" : "unpackage/res/icons/80x80.png" + "ios": { + "appstore": "unpackage/res/icons/1024x1024.png", + "ipad": { + "app": "unpackage/res/icons/76x76.png", + "app@2x": "unpackage/res/icons/152x152.png", + "notification": "unpackage/res/icons/20x20.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "proapp@2x": "unpackage/res/icons/167x167.png", + "settings": "unpackage/res/icons/29x29.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "spotlight": "unpackage/res/icons/40x40.png", + "spotlight@2x": "unpackage/res/icons/80x80.png" }, - "iphone" : { - "app@2x" : "unpackage/res/icons/120x120.png", - "app@3x" : "unpackage/res/icons/180x180.png", - "notification@2x" : "unpackage/res/icons/40x40.png", - "notification@3x" : "unpackage/res/icons/60x60.png", - "settings@2x" : "unpackage/res/icons/58x58.png", - "settings@3x" : "unpackage/res/icons/87x87.png", - "spotlight@2x" : "unpackage/res/icons/80x80.png", - "spotlight@3x" : "unpackage/res/icons/120x120.png" + "iphone": { + "app@2x": "unpackage/res/icons/120x120.png", + "app@3x": "unpackage/res/icons/180x180.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "notification@3x": "unpackage/res/icons/60x60.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "settings@3x": "unpackage/res/icons/87x87.png", + "spotlight@2x": "unpackage/res/icons/80x80.png", + "spotlight@3x": "unpackage/res/icons/120x120.png" } } } } }, /* 快应用特有相关 */ - "quickapp" : {}, + "quickapp": {}, /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "wxda94f40bfad0262c", - "libVersion" : "latest", - "setting" : { - "urlCheck" : false + "mp-weixin": { + "appid": "wxda94f40bfad0262c", + "libVersion": "latest", + "setting": { + "urlCheck": false }, - "usingComponents" : true + "usingComponents": true }, - "mp-alipay" : { - "usingComponents" : true + "mp-alipay": { + "usingComponents": true }, - "mp-baidu" : { - "usingComponents" : true + "mp-baidu": { + "usingComponents": true }, - "mp-toutiao" : { - "usingComponents" : true + "mp-toutiao": { + "usingComponents": true }, - "uniStatistics" : { - "enable" : false + "uniStatistics": { + "enable": false }, - "vueVersion" : "3", - "h5" : { - "title" : "盒子IM", - "router" : { - "base" : "/h5/" + "vueVersion": "3", + "h5": { + "title": "盒子IM", + "router": { + "base": "/h5/" } } } -/* ios打包配置 *//* SDK配置 */ - +/* ios打包配置 */ /* SDK配置 */ \ No newline at end of file diff --git a/im-uniapp/package.json b/im-uniapp/package.json index f4368f4..2ada879 100644 --- a/im-uniapp/package.json +++ b/im-uniapp/package.json @@ -8,4 +8,4 @@ "pinyin-pro": "^3.23.1", "vconsole": "^3.15.1" } -} +} \ No newline at end of file diff --git a/im-uniapp/pages.json b/im-uniapp/pages.json index 1f9613c..c6c64f2 100644 --- a/im-uniapp/pages.json +++ b/im-uniapp/pages.json @@ -1,47 +1,64 @@ { "easycom": { - "autoscan": true, - "custom": { - "^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue", - "^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue", - "^u-([^-].*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue" - } + "autoscan": true, + "custom": { + "^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue", + "^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue", + "^u-([^-].*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue" + } + }, + "pages": [ + { + "path": "pages/login/login" + }, + { + "path": "pages/register/register" + }, + { + "path": "pages/chat/chat" + }, + { + "path": "pages/friend/friend" + }, + { + "path": "pages/group/group" + }, + { + "path": "pages/mine/mine" + }, + { + "path": "pages/common/user-info" + }, + { + "path": "pages/chat/chat-box" }, - "pages": [{ - "path": "pages/login/login" - }, { - "path" : "pages/register/register" - },{ - "path": "pages/chat/chat" - }, { - "path": "pages/friend/friend" - }, { - "path": "pages/group/group" - }, { - "path": "pages/mine/mine" - }, { - "path": "pages/common/user-info" - }, { - "path": "pages/chat/chat-box" - },{ - "path": "pages/chat/chat-private-video" - },{ - "path": "pages/chat/chat-group-video" - }, { - "path": "pages/friend/friend-add" - }, { - "path": "pages/group/group-info" - }, { - "path": "pages/group/group-edit" - }, { - "path": "pages/group/group-invite" - }, { - "path": "pages/group/group-member" - }, { - "path": "pages/mine/mine-edit" - },{ - "path": "pages/mine/mine-password" - } + { + "path": "pages/chat/chat-private-video" + }, + { + "path": "pages/chat/chat-group-video" + }, + { + "path": "pages/friend/friend-add" + }, + { + "path": "pages/group/group-info" + }, + { + "path": "pages/group/group-edit" + }, + { + "path": "pages/group/group-invite" + }, + { + "path": "pages/group/group-member" + }, + { + "path": "pages/mine/mine-edit" + }, + { + "path": "pages/mine/mine-password" + } ], "globalStyle": { "navigationStyle": "custom", @@ -53,12 +70,12 @@ "selectedColor": "#587ff0", "borderStyle": "black", "backgroundColor": "#ffffff", - "list": [{ + "list": [ + { "pagePath": "pages/chat/chat", "iconPath": "static/tarbar/chat.png", "selectedIconPath": "static/tarbar/chat_active.png", "text": "消息" - }, { "pagePath": "pages/friend/friend", diff --git a/im-uniapp/pages/chat/chat-box.vue b/im-uniapp/pages/chat/chat-box.vue index ab8c7e2..add8199 100644 --- a/im-uniapp/pages/chat/chat-box.vue +++ b/im-uniapp/pages/chat/chat-box.vue @@ -1,21 +1,21 @@ \ No newline at end of file diff --git a/im-uniapp/pages/chat/chat-private-video.vue b/im-uniapp/pages/chat/chat-private-video.vue index 60d217d..0677af7 100644 --- a/im-uniapp/pages/chat/chat-private-video.vue +++ b/im-uniapp/pages/chat/chat-private-video.vue @@ -3,101 +3,98 @@ \ No newline at end of file diff --git a/im-uniapp/pages/chat/chat.vue b/im-uniapp/pages/chat/chat.vue index 692bdc9..d019574 100644 --- a/im-uniapp/pages/chat/chat.vue +++ b/im-uniapp/pages/chat/chat.vue @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/im-uniapp/pages/common/user-info.vue b/im-uniapp/pages/common/user-info.vue index bd17dce..c226c63 100644 --- a/im-uniapp/pages/common/user-info.vue +++ b/im-uniapp/pages/common/user-info.vue @@ -9,17 +9,17 @@ - {{userInfo.userName}} + {{ userInfo.userName }} - - + + 昵称: - {{userInfo.nickName}} + {{ userInfo.nickName }} @@ -28,7 +28,7 @@ 签名: - {{userInfo.signature}} + {{ userInfo.signature }} @@ -45,174 +45,174 @@ \ No newline at end of file diff --git a/im-uniapp/pages/friend/friend-add.vue b/im-uniapp/pages/friend/friend-add.vue index 41e3988..15231f0 100644 --- a/im-uniapp/pages/friend/friend-add.vue +++ b/im-uniapp/pages/friend/friend-add.vue @@ -1,19 +1,19 @@ \ No newline at end of file diff --git a/im-uniapp/pages/friend/friend.vue b/im-uniapp/pages/friend/friend.vue index 46331b1..736674a 100644 --- a/im-uniapp/pages/friend/friend.vue +++ b/im-uniapp/pages/friend/friend.vue @@ -1,146 +1,150 @@ \ No newline at end of file diff --git a/im-uniapp/pages/mine/mine-edit.vue b/im-uniapp/pages/mine/mine-edit.vue index 08247a8..8fda220 100644 --- a/im-uniapp/pages/mine/mine-edit.vue +++ b/im-uniapp/pages/mine/mine-edit.vue @@ -1,81 +1,81 @@ diff --git a/im-uniapp/pages/mine/mine-password.vue b/im-uniapp/pages/mine/mine-password.vue index e66e267..a029d15 100644 --- a/im-uniapp/pages/mine/mine-password.vue +++ b/im-uniapp/pages/mine/mine-password.vue @@ -1,102 +1,101 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/im-uniapp/pages/mine/mine.vue b/im-uniapp/pages/mine/mine.vue index f8876aa..c863fda 100644 --- a/im-uniapp/pages/mine/mine.vue +++ b/im-uniapp/pages/mine/mine.vue @@ -1,45 +1,41 @@ diff --git a/im-uniapp/pages/register/register.vue b/im-uniapp/pages/register/register.vue index fb85e2e..2061ff8 100644 --- a/im-uniapp/pages/register/register.vue +++ b/im-uniapp/pages/register/register.vue @@ -16,128 +16,128 @@ -