123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- import {
- axios
- } from '@/utils/request.js'
-
- // 发送邮箱验证码
- export function Api_getEmailCode(data) {
- return axios.post(`/api/sms_mail` , data )
- }
- // 发送手机验证码
- export function Api_getSmsSend(data) {
- return axios.post(`/api/sms_send` , data)
- }
- // 登陆页- 登陆
- export function Api_userLogin(data) {
- return axios.post(`/api/user/login` , data )
- }
- // 获得个人信息
- export function Api_getUserInfo() {
- return axios.get(`/api/user/info` )
- }
- // 提交注册
- export function Api_submitRegister(data) {
- return axios.post(`/api/user/register` , data)
- }
- // 轮播图/公告列表/新闻列表
- export function Api_getNewsList(data) {
- return axios.post(`/api/news/list` , data )
- }
- // 文章详情
- export function Api_getNewDetail(data) {
- return axios.post(`/api/news/detail` , data )
- }
- // 0-2 注册-01-获得国家区号
- export function Api_getAreaCode() {
- return axios.post(`/api/area_code`)
- }
- // 03 行情列表/首页推荐
- export function Api_getQuotationNew() {
- return axios.get(`/api/currency/quotation_new`)
- }
- // 账户详情
- export function Api_getAccountInfo() {
- return axios.post(`/api/wallet/list`)
- }
- // 用户帐单
- export function Api_getUserBill(data) {
- return axios.post(`/api/wallet/legal_log` , data)
- }
- // 账户 - 划转
- export function Api_setChangeAccount(data) {
- return axios.post(`/api/wallet/change` , data)
- }
- // 币种列表
- export function Api_getBiTypeList() {
- return axios.get(`/api/wallet/flashAgainstList`)
- }
- // 闪况记录
- export function Api_getFlashRecord() {
- return axios.get(`/api/wallet/myFlashAgainstList`)
- }
- // 提交兑换
- export function Api_getSubmit(data) {
- return axios.post(`/api/wallet/flashAgainst` , data)
- }
- // 7-2-3、7-2-4 充值
- export function Api_getTopUp(data) {
- return axios.post(`/api/wallet/get_in_address` , data)
- }
- // 修改密码
- export function Api_setPassword(data) {
- return axios.post(`/api/user/forget` , data)
- }
- // 地址列表
- export function Api_getAddress(data) {
- return axios.post(`/api/wallet/get_address` , data)
- }
- // 增加提现地址
- export function Api_addAddress(data) {
- return axios.post(`/api/wallet/addaddress` , data)
- }
- // 删除提现地址
- export function Api_delAddress(data) {
- return axios.post(`/api/wallet/deladdress` , data)
- }
- // 划转记录
- export function Api_getWalletHzhistory() {
- return axios.get(`/api/wallet/hzhistory`)
- }
- // 下单页信息:当前持仓、张数、逐仓倍数
- export function Api_getLeverDeal(data) {
- return axios.post(`/api/lever/deal` , data)
- }
- // 合约下单
- export function Api_setSubmitLever(data) {
- return axios.post(`/api/lever/submit` , data)
- }
- // 平仓
- export function Api_setCloseLever(data) {
- return axios.post(`/api/lever/close` , data)
- }
- // 设置止盈止损
- export function Api_setLeverStop(data) {
- return axios.post(`/api/lever/setstop` , data)
- }
- // 全部平仓
- export function Api_setBatchClose(data) {
- return axios.post(`/api/lever/batch_close` , data)
- }
- // 持仓记录
- export function Api_getRegister(data) {
- return axios.post(`/api/lever/my_trade` , data)
- }
- // 提币-01-余额查询
- export function Api_getWalletCurrency(data) {
- return axios.post(`/api/wallet/get_info` , data)
- }
- // 7-2-6 提币-02-提交
- export function Api_setWalletOut(data) {
- return axios.post(`/api/wallet/out` , data)
- }
- // 7-2-6 绑定邮箱
- export function Api_setBindEmail(data) {
- return axios.post(`/api/safe/email` , data)
- }
- // 7-2-6 绑定手机
- export function Api_setBindMobile(data) {
- return axios.post(`/api/safe/mobile` , data)
- }
- // 设置/修改支付密码
- export function Api_setUpdatePassword(data) {
- return axios.post(`/api/safe/update_password` , data)
- }
- // 身份验证
- export function Api_identityVerify (data) {
- return axios.post(`/api/user/real_name` , data)
- }
- // 设置google验证码
- export function Api_getGoogle () {
- return axios.get(`/api/user/get_google`)
- }
- // 设置google验证码
- export function Api_checkGoogle (code) {
- return axios.post(`/api/user/check_google`, code)
- }
- // K线数初始化数据
- export function Api_newTimeshar (code) {
- return axios.get(`/api/currency/new_timeshar`, code)
- }
- // // 根据手机号登录
- // export function goAuthLogin_Api(data) {
- // return axios.post(`/auth/c/doMiniLoginByPhone` , data )
- // }
- // // 小程序根据用户(企业)ID登录
- // export function goEnterpriseId_Api(data) {
- // return axios.post(`/auth/c/doMiniLoginById` , data)
- // }
- // // 获取手机号
- // export function getWxPhone_Api(data) {
- // return axios.post(`/auth/c/getWxPhone` , data )
- // }
- // // 根据扫描发票返回信息获取发票信息
- // export function getCodeInvoice_Api(data) {
- // return axios.post(`/biz/c/get/invoice/info` , data )
- // }
- // // 获取发票信息表分页
- // export function getInvoicePage_Api(data) {
- // return axios.get(`/biz/c/invoice/page` , data )
- // }
- // // 确定录入
- // export function confirmEntry_Api(data) {
- // return axios.post(`/biz/c/confirm/entry` , data )
- // }
- // // 获取发票信息表详情
- // export function getInvoiceDetail_Api(data) {
- // return axios.get(`/biz/c/invoice/detail` , data )
- // }
- // // 删除发票
- // export function delInvoice_Api(data) {
- // return axios.post(`/biz/c/invoice/delete` , data )
- // }
- // // 发票导出
- // export function exportInvoice_Api(data) {
- // return axios.get(`/biz/c/invoice/export` , data , {responseType: 'arraybuffer', Blob : true} )
- // }
- // // 获取C端用户详情
- // export function getUserDetail_Api(data) {
- // return axios.get(`/client/c/user/detail` , data)
- // }
- // //更新用户信息
- // export function setUserInfo_Api(data) {
- // return axios.post(`/client/c/update/user` , data)
- // }
|