Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
R
revised-version-h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孟庆瑞
revised-version-h5
Commits
28665836
Commit
28665836
authored
Sep 12, 2024
by
jiaoyahui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接接口
parent
2354540c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
846 additions
and
358 deletions
+846
-358
test.js
src/api/test.js
+44
-36
request.js
src/utils/request.js
+1
-1
index.vue
src/views/record/index.vue
+270
-224
index.vue
src/views/strategy/index.vue
+355
-36
index.vue
src/views/strategyversion/index.vue
+176
-61
No files found.
src/api/test.js
View file @
28665836
...
@@ -7,53 +7,61 @@ import http from '../utils/http'
...
@@ -7,53 +7,61 @@ import http from '../utils/http'
// get请求
// get请求
const
testApi
=
{
const
testApi
=
{
getListAPI
(
params
)
{
getListAPI
(
params
)
{
return
http
.
get
(
'/api/joke/list'
,
params
)
return
http
.
get
(
'/api/joke/list'
,
params
)
},
},
postFormAPI
(
params
)
{
postFormAPI
(
params
)
{
return
http
.
post
(
'/api/user/reg'
,
params
)
return
http
.
post
(
'/api/user/reg'
,
params
)
},
},
//策略列表/invest/admin/pc/smart/product/{id}
//策略列表/invest/admin/pc/smart/product/{id}
getstrge
(
params
)
{
getstrge
(
params
)
{
return
http
.
post
(
'/invest/admin/pc/smart/product-list'
,
params
)
return
http
.
post
(
'/invest/admin/pc/smart/product-list'
,
params
)
},
},
//策略详情
//策略详情
// getproduct_strge(params,id) {
// getproduct_strge(params,id) {
// return http.get('/invest/admin/pc/smart/product/2', params)
// return http.get('/invest/admin/pc/smart/product/2', params)
// },
// },
//今日入选
//今日持仓
getselectedToday
(
params
)
{
getselectedToday
(
params
)
{
return
http
.
post
(
'/invest/admin/pc/smart/selectedToday
'
,
params
)
return
http
.
post
(
'/invest/admin/pc/smart/stockInfo
'
,
params
)
},
},
//历史战绩
//历史战绩
historicalRecord
(
params
)
{
historicalRecord
(
params
)
{
return
http
.
post
(
'/invest/admin/pc/smart/historicalRecord'
,
params
)
return
http
.
post
(
'/invest/admin/pc/smart/historicalRecord'
,
params
)
},
},
//历史战绩
//历史战绩
pageStockProfitLogList
(
params
)
{
pageStockProfitLogList
(
params
)
{
return
http
.
post
(
'/invest/admin/pc/smart/pageStockProfitLogList'
,
params
)
return
http
.
post
(
'/invest/admin/pc/smart/pageStockProfitLogList'
,
params
)
},
},
//AI账户首页收益接口
//AI账户首页收益接口
followaccount
(
data
){
followaccount
(
data
)
{
return
http
.
post
(
'/invest/admin/pc/followaccount/queryFollowAccountNewYields'
,
data
)
return
http
.
post
(
'/invest/admin/pc/followaccount/queryFollowAccountNewYields'
,
data
)
},
},
//跟投产品详情
//跟投产品详情
productDetail
(
data
){
productDetail
(
data
)
{
return
http
.
post
(
'/newcrm/open/vip/product/detail'
,
data
)
return
http
.
post
(
'/newcrm/open/vip/product/detail'
,
data
)
},
},
//兑换产品
//兑换产品
exchangeProduct
(
data
){
exchangeProduct
(
data
)
{
return
http
.
post
(
'/open/vip/product/exchange/product'
,
data
)
return
http
.
post
(
'/open/vip/product/exchange/product'
,
data
)
},
},
//异动点评列表
//异动点评列表
queryFollowAccountReviews
(
data
){
queryFollowAccountReviews
(
data
)
{
return
http
.
post
(
'/invest/admin/pc/followaccount/queryFollowAccountReviews'
,
data
)
return
http
.
post
(
'/invest/admin/pc/followaccount/queryFollowAccountReviews'
,
data
)
},
//解锁订阅
newcrmqueryproduct
(
data
)
{
return
http
.
post
(
'/newcrm/open/vip/product/exchange/product'
,
data
)
},
//产品周期
detail
(
data
)
{
return
http
.
post
(
'/newcrm/open/vip/product/detail'
,
data
)
},
},
};
};
...
...
src/utils/request.js
View file @
28665836
...
@@ -20,7 +20,7 @@ service.interceptors.request.use(config => {
...
@@ -20,7 +20,7 @@ service.interceptors.request.use(config => {
config
.
data
=
JSON
.
stringify
(
config
.
data
);
//数据转化,也可以使用qs转换
config
.
data
=
JSON
.
stringify
(
config
.
data
);
//数据转化,也可以使用qs转换
config
.
headers
=
{
config
.
headers
=
{
'Content-Type'
:
'application/json'
,
//配置请求头
'Content-Type'
:
'application/json'
,
//配置请求头
'Authorization'
:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE3MjY
1Mzk4MjksInN1YiI6IjQ4MjY2NiIsImlhdCI6MTcyNTkzNTAyOX0.DMmSGiAtf4h_mu8mtjUz-f67efeYz4sedzJNaoFnkFicBuAdZM_6fjuAhl5OCum77lrFSMORtc_qst3l06MjL
Q'
'Authorization'
:
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE3MjY
2NTY2NjUsInN1YiI6IjQ4MjY2NiIsImlhdCI6MTcyNjA1MTg2NX0.obv2AOw311MIF_Wx9ese0IS4BhE3CY3hEy7NFi17VovEc24hpQw-i8_ZaftK6NKd_AY0Q0bfU62I-wEGGiNx_
Q'
}
}
//如有需要:注意使用token的时候需要引入cookie方法或者用本地localStorage等方法,推荐js-cookie
//如有需要:注意使用token的时候需要引入cookie方法或者用本地localStorage等方法,推荐js-cookie
//const token = getCookie('名称');//这里取token之前,你肯定需要先拿到token,存一下
//const token = getCookie('名称');//这里取token之前,你肯定需要先拿到token,存一下
...
...
src/views/record/index.vue
View file @
28665836
This diff is collapsed.
Click to expand it.
src/views/strategy/index.vue
View file @
28665836
This diff is collapsed.
Click to expand it.
src/views/strategyversion/index.vue
View file @
28665836
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment