Browse Source
Merge branch 'milestone-20251031-简版功能开发' of http://39.101.133.168:8807/qimaohong/deepChartVueApp into songjie/feature-20251023161635-首页
zhaowenkang/feature-20251028181547-行情页面
Merge branch 'milestone-20251031-简版功能开发' of http://39.101.133.168:8807/qimaohong/deepChartVueApp into songjie/feature-20251023161635-首页
zhaowenkang/feature-20251028181547-行情页面
14 changed files with 1195 additions and 841 deletions
-
100api/deepExploration/deepExploration.js
-
3api/tcpConnection.js
-
281components/deepExploration_header.vue
-
79pages/deepExploration/MainForceActions.vue
-
149pages/deepExploration/deepExploration.vue
-
2pages/deepMate/deepMate.vue
-
5pages/setting/account.vue
-
6pages/start/Registration/Registration.vue
-
7pages/start/login/login.vue
-
2pages/start/recoverPassword/recoverPassword.vue
-
2pages/start/select/select.vue
-
1stores/index.js
-
44stores/modules/deepExploration.js
-
11utils/http.js
@ -1 +1,101 @@ |
|||||
import { http } from '@/utils/http.js' |
import { http } from '@/utils/http.js' |
||||
|
|
||||
|
|
||||
|
//主力追踪意图
|
||||
|
export const getModel1First = (data) => { |
||||
|
return http({ |
||||
|
method: 'POST', |
||||
|
url: '/api/coze/trackingFirst', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//主力追踪意图
|
||||
|
export const getModel1Second = (data) => { |
||||
|
return http({ |
||||
|
method: 'POST', |
||||
|
url: '/api/coze/trackingSecond', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
//主力追踪意图
|
||||
|
export const getModel2First = (data) => { |
||||
|
return http({ |
||||
|
method: 'POST', |
||||
|
url: '/api/coze/radarFirst', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//主力追踪意图
|
||||
|
export const getModel2Second = (data) => { |
||||
|
return http({ |
||||
|
method: 'POST', |
||||
|
url: '/api/coze/radarSecond', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//主力追踪意图
|
||||
|
export const getModel3First = (data) => { |
||||
|
return http({ |
||||
|
method: 'POST', |
||||
|
url: '/api/coze/decodingFirst', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//主力追踪意图
|
||||
|
export const getModel3Second = (data) => { |
||||
|
return http({ |
||||
|
method: 'POST', |
||||
|
url: '/api/coze/decodingSecond', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//主力追踪意图
|
||||
|
export const getModel4First = (data) => { |
||||
|
return http({ |
||||
|
method: 'POST', |
||||
|
url: '/api/coze/fundsFirst', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//主力追踪意图
|
||||
|
export const getModel4Second = (data) => { |
||||
|
return http({ |
||||
|
method: 'POST', |
||||
|
url: '/api/coze/fundsSecond', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
//历史记录列表
|
||||
|
export const RecordListApi = (data) => { |
||||
|
return http({ |
||||
|
method: 'POST', |
||||
|
url: '/api/coze/mainForceList', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
//历史记录详情
|
||||
|
export const RecordInfoApi = (data) => { |
||||
|
return http({ |
||||
|
method: 'POST', |
||||
|
url: '/api/coze/clickRecord', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
@ -0,0 +1,44 @@ |
|||||
|
import { defineStore } from 'pinia' |
||||
|
import { ref } from 'vue' |
||||
|
|
||||
|
// 定义 Store
|
||||
|
export const useDeepExplorationStore = defineStore( |
||||
|
'deepExploration', |
||||
|
() => { |
||||
|
// 会员信息
|
||||
|
const deepExplorationInfo = ref() |
||||
|
|
||||
|
// 保存会员信息,登录时使用
|
||||
|
const setDeepExplorationInfo = (val) => { |
||||
|
deepExplorationInfo.value = val |
||||
|
} |
||||
|
|
||||
|
// 清理会员信息,退出时使用
|
||||
|
const clearDeepExplorationInfo = () => { |
||||
|
deepExplorationInfo.value = undefined |
||||
|
} |
||||
|
|
||||
|
// 记得 return
|
||||
|
return { |
||||
|
deepExplorationInfo, |
||||
|
setDeepExplorationInfo, |
||||
|
clearDeepExplorationInfo, |
||||
|
} |
||||
|
}, |
||||
|
// TODO: 持久化
|
||||
|
{ |
||||
|
// 网页端持久化
|
||||
|
// persist: true,
|
||||
|
// 小程序端持久化
|
||||
|
persist: { |
||||
|
storage: { |
||||
|
getItem(key) { |
||||
|
return uni.getStorageSync(key) |
||||
|
}, |
||||
|
setItem(key, value) { |
||||
|
uni.setStorageSync(key, value) |
||||
|
}, |
||||
|
}, |
||||
|
}, |
||||
|
}, |
||||
|
) |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue