From ee3e1bab5996b626d0a8948a8925a672265bd4c7 Mon Sep 17 00:00:00 2001
From: Ethereal <3432649580@qq.com>
Date: Tue, 28 Oct 2025 10:51:39 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E5=8E=86=E5=8F=B2=E8=AE=B0?=
=?UTF-8?q?=E5=BD=95=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/deepMate/deepMate.js | 16 +++++++---
pages.json | 7 -----
pages/deepMate/deepMate.vue | 2 +-
pages/deepMate/scroll/scroll.vue | 63 ----------------------------------------
utils/http.js | 7 +++--
5 files changed, 17 insertions(+), 78 deletions(-)
delete mode 100644 pages/deepMate/scroll/scroll.vue
diff --git a/api/deepMate/deepMate.js b/api/deepMate/deepMate.js
index 1f07d1f..7eabd99 100644
--- a/api/deepMate/deepMate.js
+++ b/api/deepMate/deepMate.js
@@ -20,7 +20,7 @@ export const getData = () => {
export const postIntent = (data) => {
return http({
method: 'POST',
- url: '/testApi/api/deepMate/dmFirst',
+ url: '/api/deepMate/dmFirst',
data
})
}
@@ -34,7 +34,7 @@ export const postIntent = (data) => {
export const postStock = (data) => {
return http({
method: 'POST',
- url: '/testApi/api/coze/decodingSecond',
+ url: '/api/coze/decodingSecond',
data
})
}
@@ -47,14 +47,22 @@ export const postStock = (data) => {
export const postHistory = (data) => {
return http({
method: 'POST',
- url: '/history',
+ url: '/api/deepMate/dmList',
data
})
}
/**
- *
+ * 历史记录详情
*/
+export const postHistoryDetail = (data) => {
+ return http({
+ method: 'POST',
+ url: '/api/deepMate/clickRecord',
+ data
+ })
+}
+
diff --git a/pages.json b/pages.json
index be5a306..100dc2a 100644
--- a/pages.json
+++ b/pages.json
@@ -148,13 +148,6 @@
"navigationStyle": "custom",
"titleNView": false
}
- },
- {
- "path" : "pages/deepMate/scroll/scroll",
- "style" :
- {
- "navigationBarTitleText" : ""
- }
}
],
"globalStyle": {
diff --git a/pages/deepMate/deepMate.vue b/pages/deepMate/deepMate.vue
index c2199ef..297e790 100644
--- a/pages/deepMate/deepMate.vue
+++ b/pages/deepMate/deepMate.vue
@@ -203,7 +203,7 @@
const { safeAreaInsets } = uni.getSystemInfoSync();
import { ref, computed, onMounted, onUnmounted, watch, nextTick } from "vue";
-import footerBar from "../../components/footerBar-cn";
+import footerBar from "../../components/footerBar";
import marked from "marked"; // 引入 marked 库
import { onPageScroll } from "@dcloudio/uni-app";
import { postStock, postIntent } from "../../api/deepMate/deepMate";
diff --git a/pages/deepMate/scroll/scroll.vue b/pages/deepMate/scroll/scroll.vue
deleted file mode 100644
index fdde18b..0000000
--- a/pages/deepMate/scroll/scroll.vue
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
-
- {{ item }}
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/utils/http.js b/utils/http.js
index e8e9473..0772696 100644
--- a/utils/http.js
+++ b/utils/http.js
@@ -1,6 +1,6 @@
import { useUserStore } from "../stores/modules/userInfo/"
-const baseURL = "https://hwjb.homilychart.com"
+const baseURL = "https://hwjb.homilychart.com/testApi"
const httpInterceptor = {
@@ -33,12 +33,13 @@ const httpInterceptor = {
// 标准头与文档头同时设置,确保兼容
'content-type': 'application/json',
'version': '1',
- 'client': client
+ 'client': client,
+ 'token': '790750702588f1ea79f24dc56ccd5d8a'
}
//4 添加token
const memberStore = useUserStore()
// const token = memberStore.userInfo?.token
- const token = '6d818cda701590750245ce69393f2c32'
+ const token = '790750702588f1ea79f24dc56ccd5d8a'
if (token) {
options.header.Authorization = token
}