diff --git a/src/project/baidu/AppAiInput/AppAiInput.vue b/src/project/baidu/AppAiInput/AppAiInput.vue deleted file mode 100644 index c0f1f4b3..00000000 --- a/src/project/baidu/AppAiInput/AppAiInput.vue +++ /dev/null @@ -1,189 +0,0 @@ - - - - - diff --git a/src/project/baidu/AppAiInput/formConfirm.vue b/src/project/baidu/AppAiInput/formConfirm.vue deleted file mode 100644 index 4bd36b2a..00000000 --- a/src/project/baidu/AppAiInput/formConfirm.vue +++ /dev/null @@ -1,258 +0,0 @@ - - - - - diff --git a/src/project/baidu/AppAiInput/formEdit.vue b/src/project/baidu/AppAiInput/formEdit.vue deleted file mode 100644 index 541c261b..00000000 --- a/src/project/baidu/AppAiInput/formEdit.vue +++ /dev/null @@ -1,287 +0,0 @@ - - - - - diff --git a/src/project/baidu/AppAiInput/img/arrow-right.png b/src/project/baidu/AppAiInput/img/arrow-right.png deleted file mode 100644 index d426a22f..00000000 Binary files a/src/project/baidu/AppAiInput/img/arrow-right.png and /dev/null differ diff --git a/src/project/baidu/AppAiInput/img/edit.png b/src/project/baidu/AppAiInput/img/edit.png deleted file mode 100644 index a476f9fc..00000000 Binary files a/src/project/baidu/AppAiInput/img/edit.png and /dev/null differ diff --git a/src/project/baidu/AppAiInput/img/microphone.png b/src/project/baidu/AppAiInput/img/microphone.png deleted file mode 100644 index 8d7f4eb2..00000000 Binary files a/src/project/baidu/AppAiInput/img/microphone.png and /dev/null differ diff --git a/src/project/baidu/AppVillageHead/AppVillageHead.vue b/src/project/baidu/AppTourismStrategy/AiAuestions.vue similarity index 78% rename from src/project/baidu/AppVillageHead/AppVillageHead.vue rename to src/project/baidu/AppTourismStrategy/AiAuestions.vue index dabe2e6f..096c42ad 100644 --- a/src/project/baidu/AppVillageHead/AppVillageHead.vue +++ b/src/project/baidu/AppTourismStrategy/AiAuestions.vue @@ -1,6 +1,16 @@ @@ -129,8 +59,8 @@ import 'recorder-core/src/engine/mp3-engine' const innerAudioContext = uni.createInnerAudioContext(); innerAudioContext.autoplay = true; export default { - name: 'AppVillageHead', - appName: '村长coplite', + name: 'AiAuestions', + appName: 'Ai助手', data() { return { recorder: null, @@ -160,17 +90,20 @@ export default { ...mapState(['user']), }, onLoad() { - this.scrollHeight = uni.getSystemInfoSync().windowHeight - this.getHistoryList() + // this.scrollHeight = uni.getSystemInfoSync().windowHeight + // this.getHistoryList() // var res = ["http://test87ftp.cunwuyun.cn/20240109/filename-20240109111547.mp3;0678a73c50b74bdcb8398e14ffbb35e5"] // this.voiceUrl = res[0].split(';')[0] // this.voiceId = res[0].split(';')[1] // this.sendVoice() }, onShow() { - document.title = '村长copilot' + document.title = 'AI助手' }, methods: { + back() { + uni.navigateBack() + }, startRecord() { this.isStart = true this.recorder = Recorder({ @@ -231,7 +164,7 @@ export default { }, sendMsg() { this.$loading() - this.$http.post("/app/appaigccopilotinfo/add", {content: this.content, appType: 1}).then(res => { + this.$http.post("/app/appaigccopilotinfo/add2", {content: this.content, appType: 1}, {withoutToken: true}).then(res => { if(res.code == 0) { this.content = '' this.messageList.push(res.data[0]) @@ -247,7 +180,7 @@ export default { }, sendVoice() { this.$loading() - this.$http.post("/app/appaigccopilotinfo/add", {sdkFileUrl: this.voiceUrl, fileId: this.voiceId, appType: 1}).then(res => { + this.$http.post("/app/appaigccopilotinfo/add2", {sdkFileUrl: this.voiceUrl, fileId: this.voiceId, appType: 1}, {withoutToken: true}).then(res => { if(res.code == 0) { this.voiceUrl = '' this.voiceId = '' @@ -340,7 +273,7 @@ export default { diff --git a/src/project/baidu/AppTourismStrategy/Detail.vue b/src/project/baidu/AppTourismStrategy/Detail.vue new file mode 100644 index 00000000..f0e3e28f --- /dev/null +++ b/src/project/baidu/AppTourismStrategy/Detail.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/src/project/baidu/AppTourismStrategy/img/qa-icon.png b/src/project/baidu/AppTourismStrategy/img/qa-icon.png new file mode 100644 index 00000000..8214a94a Binary files /dev/null and b/src/project/baidu/AppTourismStrategy/img/qa-icon.png differ