Commit 28665836 authored by jiaoyahui's avatar jiaoyahui

对接接口

parent 2354540c
...@@ -19,14 +19,14 @@ const testApi = { ...@@ -19,14 +19,14 @@ const testApi = {
}, },
//策略详情 //策略详情
// 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)
}, },
//历史战绩 //历史战绩
...@@ -40,21 +40,29 @@ const testApi = { ...@@ -40,21 +40,29 @@ const testApi = {
}, },
//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)
},
}; };
export default testApi export default testApi
...@@ -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.eyJleHAiOjE3MjY1Mzk4MjksInN1YiI6IjQ4MjY2NiIsImlhdCI6MTcyNTkzNTAyOX0.DMmSGiAtf4h_mu8mtjUz-f67efeYz4sedzJNaoFnkFicBuAdZM_6fjuAhl5OCum77lrFSMORtc_qst3l06MjLQ' 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE3MjY2NTY2NjUsInN1YiI6IjQ4MjY2NiIsImlhdCI6MTcyNjA1MTg2NX0.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,存一下
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment