diff --git a/manifest.json b/manifest.json index 2bcfb3c..9621d88 100644 --- a/manifest.json +++ b/manifest.json @@ -1,116 +1,116 @@ { - "name": "萃星智能AI", - "appid": "__UNI__5BDEDB4", - "description": "", - "versionName": "1.0.1", - "versionCode": 100, - "transformPx": false, - /* 5+App特有相关 */ - "app-plus": { - "usingComponents": true, - "nvueStyleCompiler": "uni-app", - "compilerVersion": 3, - "splashscreen": { - "alwaysShowBeforeRender": true, - "waiting": true, - "autoclose": true, - "delay": 0 - }, - "compatible": { - "ignoreVersion": true - }, - /* 模块配置 */ - "modules": { - "Record": {} - }, - /* 应用发布信息 */ - "distribute": { - /* android打包配置 */ - "android": { - "permissions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"] - }, - /* ios打包配置 */ - "ios": { - "dSYMs": false - }, - /* SDK配置 */ - "sdkConfigs": { - "ad": {} - }, - "icons": { - "android": { - "hdpi": "unpackage/res/icons/72x72.png", - "xhdpi": "unpackage/res/icons/96x96.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" - }, - "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": {}, - /* 小程序特有相关 */ - "mp-weixin": { - "appid": "wxb86917d1487922b9", - "setting": { - "urlCheck": false, - "postcss": true, - "minified": true - }, - "usingComponents": true - }, - "mp-alipay": { - "usingComponents": true - }, - "mp-baidu": { - "usingComponents": true - }, - "mp-toutiao": { - "usingComponents": true - }, - "uniStatistics": { - "enable": false - }, - "vueVersion": "2" -} \ No newline at end of file + "name" : "萃星智能AI", + "appid" : "__UNI__5BDEDB4", + "description" : "", + "versionName" : "1.0.1", + "versionCode" : 100, + "transformPx" : false, + /* 5+App特有相关 */ + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 + }, + "compatible" : { + "ignoreVersion" : true + }, + /* 模块配置 */ + "modules" : { + "Record" : {} + }, + /* 应用发布信息 */ + "distribute" : { + /* android打包配置 */ + "android" : { + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ] + }, + /* ios打包配置 */ + "ios" : { + "dSYMs" : false + }, + /* SDK配置 */ + "sdkConfigs" : { + "ad" : {} + }, + "icons" : { + "android" : { + "hdpi" : "unpackage/res/icons/72x72.png", + "xhdpi" : "unpackage/res/icons/96x96.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" + }, + "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" : {}, + /* 小程序特有相关 */ + "mp-weixin" : { + "appid" : "wxb86917d1487922b9", + "setting" : { + "urlCheck" : false, + "postcss" : true, + "minified" : true + }, + "usingComponents" : true + }, + "mp-alipay" : { + "usingComponents" : true + }, + "mp-baidu" : { + "usingComponents" : true + }, + "mp-toutiao" : { + "usingComponents" : true + }, + "uniStatistics" : { + "enable" : false + }, + "vueVersion" : "2" +} diff --git a/pages/index/chat/index.vue b/pages/index/chat/index.vue index 4ba0761..465ab69 100644 --- a/pages/index/chat/index.vue +++ b/pages/index/chat/index.vue @@ -66,24 +66,6 @@ - - - - - @@ -57,7 +61,6 @@ export default { onHistoryItemTap(text){ this.$emit('onHistoryItemTap',text) }, - onLongPressHistory(text) { uni.showModal({ title: "删除记录", @@ -80,6 +83,12 @@ export default { }, clearAllHistory(){ this.$emit('clearAllHistory') + }, + onSettingTap() { + uni.navigateTo({ + url: "/pages/setting/index", + }); + this.close(); } } }; @@ -139,15 +148,11 @@ export default { } .drawer-footer { - padding: 12px; + padding: 12px 20px; border-top: 1px solid #eeeeee; display: flex; align-items: center; - } - - .drawer-footer { - /* fixed height for calc above */ - height: 64px; + justify-content: space-between; } .user-icon { diff --git a/pages/index/search/index.vue b/pages/index/search/index.vue index 7c1d511..8a9232d 100644 --- a/pages/index/search/index.vue +++ b/pages/index/search/index.vue @@ -18,7 +18,9 @@ 🎙️ + @touchmove.stop="onMoveMic" @touchend.stop="onReleaseMic"> + + @@ -29,12 +31,11 @@ - + - 🎙️ {{ - willCancel ? "松开手指,取消发送" : "手指上滑,取消发送" - }} + willCancel ? "松开手指,取消发送" : "手指上滑,取消发送" + }} @@ -88,6 +89,9 @@ uni.createSelectorQuery().select(".dock").boundingClientRect((rect) => { self.searchHeight = Math.ceil(rect.height) }).exec(); + uni.createSelectorQuery().select(".record-box").boundingClientRect((rect) => { + console.log('rect',rect); + }).exec(); }, beforeDestroy() { if (this.recordSimTimer) { @@ -128,11 +132,11 @@ }, dialogInputConfirm() { this.$emit('changeShow',false) - if(!this.dialogText && !this.dialogText.trim()){ - uni.showToast({ - title: '内容不能为空', - icon: 'none' - }) + if(!this.dialogText || !this.dialogText.trim()){ + // uni.showToast({ + // title: '内容不能为空', + // icon: 'none' + // }) return; } let index = this.quickAskList.findIndex(item => item.quickAskText.trim() === this.dialogText.trim()); @@ -236,7 +240,8 @@ }) return } - this.$emit('changeShow',true) + this.$emit('changeShow',true); + this.$emit('startRecord') this.ensureRecorder(); this.isRecording = true; this.willCancel = false; @@ -364,7 +369,7 @@ width: 36px; height: 36px; border-radius: 18px; - background: #fff; + /* background: #4F46E5; */ display: flex; align-items: center; justify-content: center; @@ -403,7 +408,7 @@ display: flex; align-items: center; justify-content: center; - z-index: 9999; + z-index: 100005; } .record-box { @@ -414,7 +419,7 @@ display: flex; align-items: center; gap: 10px; - min-width: 220rpx; + min-width: 220rpx; } .record-text { @@ -427,7 +432,7 @@ right: 0; top: 0; bottom: 0; - background-color: rgba(0, 0, 0, 0.1); + background-color: rgba(0, 0, 0, .4); z-index: 100004; } diff --git a/pages/index/top/index.vue b/pages/index/top/index.vue index a8db934..320be52 100644 --- a/pages/index/top/index.vue +++ b/pages/index/top/index.vue @@ -1,5 +1,5 @@