Commit 6d69ec58 by liwk

commit

1 parent 65c4ae65
......@@ -4,5 +4,8 @@ export const orderApi = {
getBalanceList(data = {}) {
return request(data, 'dj.api.get.equity.order.balance.list.get')
},
/** 获取订单列表*/
getOrderList(data = {}) {
return request(data, 'dj.api.get.equity.order.list.get')
},
}
\ No newline at end of file
......@@ -23,7 +23,6 @@ service.interceptors.response.use(
const { code } = dataAxios
// 有 code 代表这是一个后端接口 可以进行进一步的判断
if (code == -1) {
// Notify({ type: 'danger', message })
return dataAxios
}
switch (+code) {
......
......@@ -58,15 +58,13 @@ import RequestMethods from './request.methods'
let config = JSON.parse(window.localStorage.getItem('GLSX_OSS_EQUITY_CONFIG'))
const request = (params = {}, url, method = RequestMethods.POST, noSignAttr = []) => {
params.method = url.trimStart().trimEnd()
// params.source = 'h5'
params.source = 'glsx'
// params.source = 'glsx'
params.appKey = config.axios.sys.appKey
params.timestamp = new Date().getTime()
// params.timestamp = new Date().getTime()
// params.timestamp = new Date().format('yyyy-MM-dd hh:mm:ss')
params.v = '1.0.0'
params.format = 'json'
params.locale = 'zh_CN'
console.log(window.$config)
if (method == 'post') {
return axios({
method,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!