zhb 3 mēneši atpakaļ
vecāks
revīzija
7bc6f7d472
14 mainītis faili ar 2683 papildinājumiem un 2 dzēšanām
  1. 414 0
      service/activity.js
  2. 21 0
      service/country.js
  3. 345 0
      service/custom.js
  4. 20 0
      service/demo.js
  5. 275 0
      service/documentary.js
  6. 53 0
      service/draw.js
  7. 160 0
      service/financial.js
  8. 596 0
      service/ib.js
  9. 94 0
      service/login.js
  10. 115 0
      service/news.js
  11. 140 0
      service/personal.js
  12. 108 0
      service/shop.js
  13. 337 0
      service/ucard.js
  14. 5 2
      utils/request.js

+ 414 - 0
service/activity.js

@@ -0,0 +1,414 @@
+import Service from '../lib/service'
+
+class ActivityService extends Service {
+  constructor () {
+    super()
+  }
+
+  //客户申请活动需要用到的数据
+  async ActivityInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/info", params);
+    return res
+  }
+
+  //推广活动列表
+  async ActivityExtensionIist (params = {}) {
+    let res = await this.postAll("Host80","/web/activity/list", params);
+    return res
+  }
+
+  //查看客户申请列表
+  async ActivityApplyList (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/list", params);
+    return res
+  }
+
+  //申请活动
+  async ActivityApply (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/apply", params);
+    return res
+  }
+
+  //单个活动详情
+  async ActivitySingle (params = {}) {
+    let res = await this.postAll("Host80","/web/activity/single", params);
+    return res
+  }
+
+  //活动完成申请
+  async ActivityComplete (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/apply/complete", params);
+    return res
+  }
+
+  //20赠金活动
+  async ActivityPercentageGiveInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/percentage/give/info", params);
+    return res
+  }
+
+  //20赠金活动返现
+  async ActivityPercentageGiveApply (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/percentage/give/apply", params);
+    return res
+  }
+
+
+  
+
+  //2023迎新活动数据
+  async Activity23HundredInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/info", params);
+    return res
+  }
+
+  //2023迎新活动申请
+  async Activity23HundredApply (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/apply/activity", params);
+    return res
+  }
+
+  //2023迎新活动转换
+  async Activity23HundredTransform (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/transform/apply", params);
+    return res
+  }
+
+  //2023迎新活动变现
+  async Activity23HundredRealization (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/realization/apply", params);
+    return res
+  }
+
+  //2023迎新活动账户
+  async Activity23Login (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/login", params);
+    return res
+  }
+
+
+  //2023匠鑫活动数据
+  async Activity23JiangxinInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/agent/info", params);
+    return res
+  }
+
+  //2023匠鑫活动申请
+  async Activity23JiangxinApply (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/agent/apply/activity", params);
+    return res
+  }
+
+  //2023匠鑫活动变现
+  async Activity23JiangxinRealization (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/agent/realization/apply", params);
+    return res
+  }
+
+  //2023匠鑫活动账户
+  async Activity23JxLogin (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/agent/login", params);
+    return res
+  }
+
+  //2023匠鑫活动数据/vip
+  async Activity23JiangxinInfoVip (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/agent/vip/info", params);
+    return res
+  }
+
+  //2023匠鑫活动申请/vip
+  async Activity23JiangxinApplyVip (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/agent/vip/apply/activity", params);
+    return res
+  }
+
+  //2023匠鑫活动变现/vip
+  async Activity23JiangxinRealizationVip (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/agent/vip/realization/apply", params);
+    return res
+  }
+
+  //2023匠鑫活动账户/vip
+  async Activity23JxLoginVip (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/agent/vip/login", params);
+    return res
+  }
+
+
+  //2023年中赠金活动-10
+  async Activity23nianzhongInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/midyear/ten/percent/give/info", params);
+    return res
+  }
+  //2023年中赠金活动-20
+  async Activity23nianzhongTwoInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/two/percent/give/info", params);
+    return res
+  }
+  //2023年中赠金活动-20查询login
+  async Activity23nianzhongTwoLogin (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/two/percent/give/login/info", params);
+    return res
+  }
+
+  async ActivityRequiteInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/limited/requite/info", params);
+    return res
+  }
+
+
+  //交易大赛-1.code获取
+  async ActivityCptinfoGetCode (params = {}) {
+    let res = await this.postAll("Host80","/follow/cpt/info/getCode", params);
+    return res
+  }
+  //交易大赛-1.根据比赛code获取比赛信息
+  async ActivityCptinfoCode (params = {}) {
+    let res = await this.postAll("Host80","/follow/cpt/info/infoCode", params);
+    return res
+  }
+  //交易大赛-获取可参与比赛的账号(下拉)
+  async ActivityCptInfoLogins (params = {}) {
+    let res = await this.postAll("Host80","/follow/cpt/sign/logins", params);
+    return res
+  }
+  //交易大赛-报名比赛
+  async ActivityCptInfoAdd (params = {}) {
+    let res = await this.postAll("Host80","/follow/cpt/sign/add", params);
+    return res
+  }
+
+
+  //CWG 现金嘉年华
+  //当前任务
+  async ActivitYdepositRaffleAim (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/deposit/raffle/aim", params);
+    return res
+  }
+  //抽奖次数获取历史
+  async ActivitYdepositRaffleNumberRecord (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/deposit/raffle/custom/number/record/search/list", params);
+    return res
+  }
+  //任务列表
+  async ActivitYdepositRaffleTaskList (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/deposit/raffle/aim/list", params);
+    return res
+  }
+  //任务列表
+  async ActivitYdepositRaffleinfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/deposit/raffle/info", params);
+    return res
+  }
+
+   //任务列表
+   async ActivitYdepositRaffleUtaskList (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/ucoin/search/list", params);
+    return res
+  }
+
+  //完成任务
+  async UcoinComplete (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/ucoin/complete", params);
+    return res
+  }
+
+  //提现
+  async UcoinWithdraw (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/ucoin/withdraw", params);
+    return res
+  }
+
+  //取消
+  async UcoinCancel (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/ucoin/cancel", params);
+    return res
+  }
+
+  //查看任务进度
+  async UcoinProgress (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/ucoin/progress", params);
+    return res
+  }
+
+
+
+  
+  //CWG 赠送活动列表
+  //赠送活动列表
+  async ActivityExtensionGiveList (params = {}) {
+    let res = await this.postAll("Host80","/web/activity/give/list", params);
+    return res
+  }
+
+  //赠送活动列表-单个活动详情
+  async ActivityExtensionGiveSingle (params = {}) {
+    let res = await this.postAll("Host80","/web/activity/give/single", params);
+    return res
+  }
+
+  //赠送活动列表-查询login
+  async ActivityExtensionGiveLogin (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/give/login/info", params);
+    return res
+  }
+  //赠送活动列表-查询login提示
+  async ActivityExtensionGiveLoginJoin (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/give/login/join", params);
+    return res
+  }
+  //赠送活动参与检查
+  async ActivityGiveLoginParticipate (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/give/login/participate", params);
+    return res
+  }
+  //取消活动
+  async ActivityGiveCancel (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/give/cancel", params);
+    return res
+  }
+
+
+
+  
+
+  //24精英杯活动数据
+  async Activity24JYBInfoVip (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/elite/agent/vip/info", params);
+    return res
+  }
+
+  //24精英杯活动申请
+  async Activity24JYBApplyVip (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/elite/agent/vip/apply/activity", params);
+    return res
+  }
+
+  //24精英杯活动变现
+  async Activity24JYBRealizationVip (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/elite/agent/vip/realization/apply", params);
+    return res
+  }
+
+  //24精英杯活动账户
+  async Activity24JYBLoginVip (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/hundred/elite/agent/vip/login", params);
+    return res
+  }
+
+
+
+  //24无忧交易数据
+  async ActivityNoWorriesInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/no/worries/info", params);
+    return res
+  }
+
+  //24无忧交易申请
+  async ActivityNoWorriesApply (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/no/worries/apply/activity", params);
+    return res
+  }
+
+  //24无忧交易变现
+  async ActivityNoWorriesRealization (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/no/worries/realization/apply", params);
+    return res
+  }
+
+  //24无忧交易账户
+  async ActivityNoWorriesLogin (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/no/worries/login", params);
+    return res
+  }
+
+
+  //24新年庆典
+  async ActivityNewYear24 (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/interest/rate/info", params);
+    return res
+  }
+  //24新年庆典-领取
+  async ActivityNewYear24Receive (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/interest/rate/claim", params);
+    return res
+  }
+
+  //获取surplus活动入金金额数据
+  async ActivitySurplusDepositAmount (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/surplus/deposit/amount", params);
+    return res
+  }
+
+  async ActivityMonthlyDepositAmount (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/monthly/amount/level", params);
+    return res
+  }
+
+  //参加surplus活动
+  async ActivitySurplusAdd (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/surplus/add", params);
+    return res
+  }
+
+  async ActivityMonthlyAdd (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/monthly/add", params);
+    return res
+  }
+
+  //任务列表
+  async ActivitySurplusTaskList (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/surplus/search/list", params);
+    return res
+  }
+
+  async ActivityMonthlyTaskList (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/monthly/search/list", params);
+    return res
+  }
+
+  //恢复信用
+  async ActivitySurplusRecoverCredit (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/surplus/recover/creadit", params);
+    return res
+  }
+
+  //取消任务
+  async ActivitySurplusCancel (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/surplus/cancel", params);
+    return res
+  }
+
+  //取消月度任务
+  async ActivityMonthlyCancel (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/monthly/cancel", params);
+    return res
+  }
+
+  //获取月度任务礼品列表
+  async ActivityMonthlyGiveList (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/monthly/give/list", params);
+    return res
+  }
+
+  //月度任务礼物申请
+  async ActivityMonthlyGiveApply (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/monthly/give/apply", params);
+    return res
+  }
+
+  //获取活动显示信息
+  async ActivityShowsInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/shows/info", params);
+    return res
+  }
+
+  //获取活动显示信息
+  async getWebsdkLink (params = {}) {
+    let res = await this.postAll("Host04","/remittance/channel/getWebsdkLink", params);
+    return res
+  }
+}
+
+export default new ActivityService

+ 21 - 0
service/country.js

@@ -0,0 +1,21 @@
+import Service from '../lib/service'
+
+class CountryService extends Service {
+  constructor () {
+    super()
+  }
+
+  //获取国家列表
+  async Country (params = {}) {
+    let res = await this.postAll("Host80","/country/get", params);
+    return res
+  }
+
+  //获取国家列表
+  async CountryGet (params = {}) {
+    let res = await this.getAll("Host80","/country/get", params);
+    return res
+  }
+}
+
+export default new CountryService

+ 345 - 0
service/custom.js

@@ -0,0 +1,345 @@
+import Service from '../lib/service'
+
+class CustomService extends Service {
+  constructor () {
+    super()
+  }
+
+  //根据条件查看拒绝列表-用于下拉和选择展示推送消息
+  async PushMessageList (params = {}) {
+    let res = await this.postAll("Host80","/push/message/list", params);
+    return res
+  }
+
+  // 获取登录信息
+  async CustomLoginInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/info", params);
+    return res
+  }
+  //语言切换
+  async switchLanguage (params = {}) {
+    let res = await this.postAll("Host80","/custom/switch/lang", params);
+    return res
+  }
+
+  // 获取账户列表-全部
+  async CustomDropdown (params = {}) {
+    let res = await this.postAll("Host80","/account/dropdown", params);
+    return res
+  }
+
+  // 获取图表信息
+  async getChartInfo (params = {}) {
+    let res = await this.postAll("Host80","/index/chart/list", params);
+    return res
+  }
+
+  /*客户账户设置*/
+
+  //内转用到的数据(最大 最小内转量)
+  async transferInfo (params = {}) {
+    let res = await this.postAll("Host04","/transfer/info", params);
+    return res
+  }
+
+  //内转申请
+  async TransferApply (params = {}) {
+    let res = await this.postAll("Host04","/transfer/apply", params);
+    return res
+  }
+
+  //重置交易密码
+  async ResetDealPassword (params = {}) {
+    let res = await this.postAll("Host80","/account/settings/reset/deal/password", params);
+    return res
+  }
+
+  //重置交易密码-发送邮件
+  async ResetDealPasswordEmail (params = {}) {
+    let res = await this.postAll("Host80","/account/deal/password/reset/apply/send/email", params);
+    return res
+  }
+
+  //杠杆修改
+  async ChangeLeverageAdd (params = {}) {
+    let res = await this.postAll("Host80","/account/settings/change/leverage/add", params);
+    return res
+  }
+
+  //修改投资者密码
+  async ChangeInvestorOassword (params = {}) {
+    let res = await this.postAll("Host80","/account/settings/change/investor/password/add", params);
+    return res
+  }
+
+  //修改交易账户密码
+  async ChangeDealPassword (params = {}) {
+    let res = await this.postAll("Host80","/account/settings/change/deal/password/add", params);
+    return res
+  }
+
+  /*账户管理*/
+
+  //交易账户列表
+  async AccountList (params = {}) {
+    let res = await this.postAll("Host80","/account/list", params);
+    return res
+  }
+
+  //申请账户
+  async AccountApplyAdd (params = {}) {
+    let res = await this.postAll("Host80","/account/apply/add", params);
+    return res
+  }
+
+  //申请账户-dome
+  async AccountApplyAddDome (params = {}) {
+    let res = await this.postAll("Host80","/account/apply/demo/add", params);
+    return res
+  }
+
+  //账户申请时必要信息
+  async AccountApplyData (params = {}) {
+    let res = await this.postAll("Host80","/account/apply/data", params);
+    return res
+  }
+
+  //账户申请时必要信息-dome
+  async AccountApplyDataDome (params = {}) {
+    let res = await this.postAll("Host80","/account/apply/demo/data", params);
+    return res
+  }
+
+  //账户申请前判断类型权限
+  async excludeShowLogin (params = {}) {
+    let res = await this.postAll("Host80","/account/apply/exclude/show/login/type", params);
+    return res
+  }
+
+  /*客户银行信息*/
+
+  //客户银行卡列表
+  async CustomBankList (params = {}) {
+    let res = await this.postAll("Host80","/custom/bank/list", params);
+    return res
+  }
+
+  //删除银行卡信息
+  async CustomBankDelete (params = {}) {
+    let res = await this.postAll("Host80","/custom/bank/delete", params);
+    return res
+  }
+
+  // 修改银行卡信息
+  async CustomBankUpdate (params = {}) {
+    let res = await this.postAll("Host80","/custom/bank/update", params);
+    return res
+  }
+
+  // 添加银行卡信息
+  async CustomBankAdd (params = {}) {
+    let res = await this.postAll("Host80","/custom/bank/add", params);
+    return res
+  }
+
+  // 证件认证
+  async customBankCardVerify (params = {}) {
+    let res = await this.postAll("Host80","/custom/bank/card/verify", params);
+    return res
+  }
+
+  // 发送银行卡验证码
+  async customBankCardSendCode (params = {}) {
+    let res = await this.postAll("Host80","/custom/bank/card/send/code", params);
+    return res
+  }
+
+  /*客户*/
+
+  //客户修改信息
+  async CustomUpdateInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/update/info", params);
+    return res
+  }
+
+  //修改邮箱
+  async CustomUpdateEmail (params = {}) {
+    let res = await this.postAll("Host80","/custom/update/email", params);
+    return res
+  }
+
+  // 修改邮箱发送邮件
+  async CustomUpdateEmailSendCode (params = {}) {
+    let res = await this.postAll("Host80","/custom/update/email/send/code", params);
+    return res
+  }
+
+
+  /*客户文件*/
+
+  //客户文件列表
+  async CustomFileList (params = {}) {
+    let res = await this.postAll("Host80","/custom/file/list", params);
+    return res
+  }
+
+  //客户文件上传 - 已改为统一上传接口
+  // 注意:此方法现在主要用于兼容,实际文件上传已通过 Vue 组件中的统一上传工具处理
+  async CustomFileUpload (params = {}) {
+    // 如果传入了文件,使用统一上传逻辑
+    if (params.file) {
+      // 先调用原接口获取 uploadToken(需要传文件)
+      let formData = new FormData();
+      formData.append('file', params.file);
+      let tokenRes = await this.postAll("Host80","/custom/file/upload/{type}/{id}", formData);
+      if (tokenRes.code !== 200) {
+        return tokenRes;
+      }
+      
+      // 获取 uploadToken
+      let uploadToken = tokenRes.data?.uploadToken || tokenRes.uploadToken || tokenRes.data;
+      if (!uploadToken) {
+        return {
+          code: 400,
+          msg: 'Failed to get uploadToken'
+        };
+      }
+      
+      // 使用新接口上传
+      let uploadFormData = new FormData();
+      uploadFormData.append('file', params.file);
+      uploadFormData.append('uploadToken', uploadToken);
+      
+      let res = await this.postAll("Host05","/common/base/upload", uploadFormData);
+      return res
+    }
+    // 如果没有文件,返回错误
+    return {
+      code: 400,
+      msg: 'File is required'
+    }
+  }
+
+  //获取二维码
+  async CustomFileMobile (par = {}) {
+    let res = await this.getAll("Host80","/custom/file/mobile",par);
+    return res
+  }
+
+
+
+  /*客户申请记录列表*/
+
+  //客户申请记录列表/1新建账户/2杠杆申请/3内部转账/4活动申请
+  async CustomRecordAccount (params = {}) {
+    let res = await this.postAll("Host80","/custom/apply/list", params);
+    return res
+  }
+
+  /*用户通知设置*/
+
+  //获取用户通知设置列表
+  async customNoticeList (params = {}) {
+    let res = await this.postAll("Host80","/custom/notice/list", params);
+    return res
+  }
+
+  //用户设置保存
+  async customNoticeSave (params = {}) {
+    let res = await this.postAll("Host80","/custom/notice/save", params);
+    return res
+  }
+
+  //申请为ib
+  async customApplyIb (params = {}) {
+    let res = await this.postAll("Host80","/agent/apply/add", params);
+    return res
+  }
+
+  //申请为ib状态判断
+  async customApplyIbStatus (params = {}) {
+    let res = await this.postAll("Host80","/agent/apply/status", params);
+    return res
+  }
+
+
+  //根据条件查看拒绝列表-用于下拉和选择展示理由
+  async reasonsRefusalList (params = {}) {
+    let res = await this.postAll("Host80","/reasons/refusal/list", params);
+    return res
+  }
+
+
+  //首页活动推送弹窗
+  async webPopupList (params = {}) {
+    let res = await this.postAll("Host80","/web/popup/list", params);
+    return res
+  }
+
+
+
+  //钱包余历史
+  async walletHistoryList (params = {}) {
+    let res = await this.postAll("Host80","/custom/wallet/history/search/list", params);
+    return res
+  }
+  //钱包内转
+  async walletTransferApply (params = {}) {
+    let res = await this.postAll("Host04","/custom/transfer/apply", params);
+    return res
+  }
+
+
+  
+  //标准账户返现
+  async standardRebateList (params = {}) {
+    let res = await this.postAll("Host80","/trade/standard/rebate", params);
+    return res
+  }
+
+  //删除账户
+  async deleteAccountList (params = {}) {
+    let res = await this.postAll("Host80","/custom/login/delete/search/list", params);
+    return res
+  }
+  
+  //交易记录
+  async historyList (params = {}) {
+    let res = await this.postAll("Host80","/trade/histort/search/list", params);
+    return res
+  }
+
+  async getWebsdkLink (params = {}) {
+    let res = await this.postAll("Host04","/withdraw/getWebsdkLink", params);
+    return res
+  }
+
+  async getWebsdkLink1 (params = {}) {
+    let res = await this.postAll("Host04","/agent/withdraw/getWebsdkLink", params);
+    return res
+  }
+
+  async getWebsdkLink2 (params = {}) {
+    let res = await this.postAll("Host80","/custom/bank/getWebsdkLink", params);
+    return res
+  }
+
+  async DropdownlusActivityOptions (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/surplus/account/dropdown", params);
+    return res
+  }
+
+  //获取系统列表
+  async getSystemList (params = {}) {
+    let res = await this.postAll("Host80","/custom/system/config/all/list", params);
+    return res
+  }
+
+  //切换系统
+  async switchSystem (params = {}) {
+    let res = await this.postAll("Host80","/custom/system/config/choose", params);
+    return res
+  }
+}
+
+export default new CustomService

+ 20 - 0
service/demo.js

@@ -0,0 +1,20 @@
+import Service from '../lib/service'
+class AboutService extends Service{
+    constructor() {
+        super()
+    }
+    
+    async getTest() {
+        let result = await this.get("/")
+        //console.log("about service getTest", result)
+
+        return result
+    }
+
+    async postTest(params = {}) {
+        return await this.post("/", params)
+        //console.log("about service getTest", result)
+    }
+}
+
+export default new AboutService

+ 275 - 0
service/documentary.js

@@ -0,0 +1,275 @@
+import Service from '../lib/service'
+
+class DocumentaryService extends Service {
+  constructor () {
+    super()
+  }
+
+  // 获取账户列表-全部
+  async CustomDropdown (params = {}) {
+    let res = await this.postAll("Host80","/account/dropdown", params);
+    return res
+  }
+
+  // 获取申请信号源账户列表-全部
+  async CustomDropdownData (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/data", params);
+    return res
+  }
+
+  //账户对比信息
+  async followCustomDropdown (params = {}) {
+    let res = await this.postAll("Host87","/follow/account/dropdown", params);
+    return res
+  }
+
+  //根据条件查看拒绝列表-用于下拉和选择展示理由
+  async reasonsRefusalList (params = {}) {
+    let res = await this.postAll("Host80","/reasons/refusal/list", params);
+    return res
+  }
+
+  //获取国家列表
+  async Country (params = {}) {
+    let res = await this.postAll("Host80","/country/get", params);
+    return res
+  }
+
+  //查看钱包
+  async followWalletSingle (params = {}) {
+    let res = await this.postAll("Host87","/follow/wallet/single", params);
+    return res
+  }
+
+
+  //跟随者
+  //订阅需要信息-交易账户
+  async followDealSubscribeInfo (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/subscribe/info", params);
+    return res
+  }
+
+  //订阅
+  async followDealSubscriSubscribe (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/subscribe/subscribe", params);
+    return res
+  }
+
+  //客户跟单交易账户
+  async followDealSubscribeLoginList (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/subscribe/login/list", params);
+    return res
+  }
+
+  //跟随记录列表
+  async followDealSubscribeList (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/subscribe/list", params);
+    return res
+  }
+
+  //取消订阅
+  async followDealSubscribeUnsubscribe (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/subscribe/unsubscribe", params);
+    return res
+  }
+
+  //跟单设置
+  async followDealSubscribeUpdate (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/subscribe/update", params);
+    return res
+  }
+
+  //查看名下跟随记录
+  async followDealSubscribeDealList (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/subscribe/deal/list", params);
+    return res
+  }
+
+  //信号源
+  //申请成为信号源
+  async followDealApply (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/apply", params);
+    return res
+  }
+
+  //修改信号源
+  async followDealUpdate (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/update", params);
+    return res
+  }
+
+  //代理修改信号源
+  async followDealAgentUpdate (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/agent/update", params);
+    return res
+  }
+
+  //申请信号源记录
+  async followDealList (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/list", params);
+    return res
+  }
+
+  //信号源详情
+  async followDealSingle (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/single", params);
+    return res
+  }
+
+  //删除信号源
+  async followDealDelete (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/delete", params);
+    return res
+  }
+
+  //客户信号源交易账户
+  async followDealLoginList (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/login/list", params);
+    return res
+  }
+
+  //客户查看信号源列表
+  async followDealSearchList (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/signal/search/list", params);
+    return res
+  }
+
+  //获取单个信号源详细信息
+  async followDealSignalSearchSingle (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/signal/search/single", params);
+    return res
+  }
+
+  //代理查看信号源列表
+  async followDealAgentSearchList (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/agent/search/list", params);
+    return res
+  }
+
+  //跟单内转
+  //跟单内转-申请
+  async followTransferApply (params = {}) {
+    let res = await this.postAll("Host04","/follow/transfer/apply", params);
+    return res
+  }
+
+  //跟单内转-个人列表
+  async followTransferList (params = {}) {
+    let res = await this.postAll("Host04","/follow/transfer/list", params);
+    return res
+  }
+
+  //报表
+  //跟单分润记录
+  async followReportCommission (params = {}) {
+    let res = await this.postAll("Host87","/follow/report/period/commission", params);
+    return res
+  }
+
+  //统计数据
+  //总览
+  async followDailySummary (params = {}) {
+    let res = await this.postAll("Host87","/follow/daily/summary", params);
+    return res
+  }
+
+  //指标
+  async followDailyIndex (params = {}) {
+    let res = await this.postAll("Host87","/follow/daily/index", params);
+    return res
+  }
+
+  //折线图
+  async followDailyChartLine (params = {}) {
+    let res = await this.postAll("Host87","/follow/daily/chart/line", params);
+    return res
+  }
+
+  //品种柱状图
+  async followDailyChartSymbol (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/signal/plChart", params);
+    return res
+  }
+
+  //交易订单
+  async followOrderRecordList (params = {}) {
+    let res = await this.postAll("Host87","/follow/order/record/list", params);
+    return res
+  }
+
+  //订阅总览
+  async followDealSubscribeSummary (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/subscribe/summary", params);
+    return res
+  }
+
+  //个人数据
+  async followDealCard (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/card", params);
+    return res
+  }
+
+  //统计数据
+  //信号源数据
+  async followDailyDeal (params = {}) {
+    let res = await this.postAll("Host87","/follow/daily/deal", params);
+    return res
+  }
+
+  //账户对比信息
+  async followDailyCompare (params = {}) {
+    let res = await this.postAll("Host87","/follow/daily/compare", params);
+    return res
+  }
+
+  //跟单盈利列表
+  async followDailySubscribeProfit (params = {}) {
+    let res = await this.postAll("Host87","/follow/daily/subscribe/profit", params);
+    return res
+  }
+
+
+  
+
+  //收藏信号源
+  async collectAdd (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/collect/add", params);
+    return res
+  }
+
+  //取消收藏信号源
+  async collectDelete (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/collect/delete", params);
+    return res
+  }
+
+
+  //周期类型
+  async getPeriod (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/search/period", params);
+    return res
+  }
+
+  //(1)盈亏曲线
+  async getEquityChart (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/signal/plChart", params);
+    return res
+  }
+
+  //(2)净值曲线
+  async getRankingChart (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/signal/equityChart", params);
+    return res
+  }
+
+  //获取刷新时间
+  async followDealSignalRefreshDate (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/signal/refreshDate", params);
+    return res
+  }
+
+ 
+
+}
+
+export default new DocumentaryService

+ 53 - 0
service/draw.js

@@ -0,0 +1,53 @@
+import Service from '../lib/service'
+import axios from "axios";
+import Config from '../config'
+
+class DrawService extends Service {
+  constructor () {
+    super()
+    axios.defaults.baseURL = Config.Host80
+  }
+
+  //中奖轮播图
+  async winningRotationList (params = {}) {
+    let res = await this.postAll("Host80","/web/activity/custom/deposit/raffle/popup/custom/list", params);
+    return res
+  }
+
+  //余额
+  async walletbalance (params = {}) {
+    let res = await this.postAll("Host80","/custom/get/balance", params);
+    return res
+  }
+
+  //处理中出金金额
+  async pendingWithdrawAmount (params = {}) {
+    let res = await this.postAll("Host04","/withdraw/amount/pending", params);
+    return res
+  }
+
+  //抽奖
+  async customActivityRaffleRaffle (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/deposit/raffle/custom/raffle", params);
+    return res
+  }
+
+  //抽奖
+  async customActivityRaffleRaffleNumber (params = {}) {
+    let res = await this.postAll("Host80","/custom/activity/deposit/raffle/custom/number/record/search/not/expire", params);
+    return res
+  }
+
+  //首页中奖轮播图
+  async winningRotationNewsletterList (params = {}) {
+    let res = await this.postAll("Host80","/web/activity/custom/deposit/raffle/popup/custom/newsletter/list", params);
+    return res
+  }
+
+
+
+
+
+}
+
+export default new DrawService

+ 160 - 0
service/financial.js

@@ -0,0 +1,160 @@
+import Service from '../lib/service'
+
+class FinancialService extends Service {
+  constructor () {
+    super()
+  }
+
+  //根据条件查看拒绝列表-用于下拉和选择展示理由
+  async reasonsRefusalList (params = {}) {
+    let res = await this.postAll("Host80","/reasons/refusal/list", params);
+    return res
+  }
+
+  /*客户财务*/
+
+  //出入金列表
+  async BalanceList (params = {}) {
+    let res = await this.postAll("Host04","/balance/list", params);
+    return res
+  }
+
+  //入金接口
+  async PayBankCode (url,params = {}) {
+    let res = await this.postAll("Host04",url,params);
+    return res
+  }
+
+  //重新提交接口
+  async PayDealResult (url,params = {}) {
+    let res = await this.postAll("Host04",url,params);
+    return res
+  }
+
+  //银行卡出金申请
+  async WithdrawApplyBank (url,params = {}) {
+    let res = await this.postAll("Host04",url, params);
+    return res
+  }
+
+  //数字货币出金
+  async WithdrawAapplyDigitalCurrency (url,params = {}) {
+    let res = await this.postAll("Host04",url, params);
+    return res
+  }
+
+  //银行列表
+  async BankList (params = {}) {
+    let res = await this.postAll("Host04","/channel/bank/list", params);
+    return res
+  }
+
+  //出金通道列表
+  async RemitChannelList (params = {}) {
+    let res = await this.postAll("Host04","/remit/channel/list", params);
+    return res
+  }
+
+  //入金通道列表
+  async RemittanceChannelList (params = {}) {
+    let res = await this.postAll("Host04","/remittance/channel/list", params);
+    return res
+  }
+
+  //内转申请
+  async TransferApply (params = {}) {
+    let res = await this.postAll("Host04","/transfer/apply", params);
+    return res
+  }
+
+  //内转列表
+  async TransferList (params = {}) {
+    let res = await this.postAll("Host04","/transfer/list", params);
+    return res
+  }
+
+  //内转用到的数据(最大 最小内转量)
+  async transferInfo (params = {}) {
+    let res = await this.postAll("Host04","/transfer/info", params);
+    return res
+  }
+
+  //获取代理账户列表
+  async getAgentList (params = {}) {
+    let res = await this.postAll("Host80","/account/agent/list", params);
+    return res
+  }
+
+  //银行电汇入金
+  async telegraphicPay (params = {}) {
+    let res = await this.postAll("Host04","/telegraphic/pay", params);
+    return res
+  }
+
+  //银行卡列表
+  async customBankList (params = {}) {
+    let res = await this.postAll("Host80","/custom/bank/list", params);
+    return res
+  }
+
+  //数字货币入金
+  async digitalPay (params = {}) {
+    let res = await this.postAll("Host04","/digital/pay", params);
+    return res
+  }
+
+  //可减免手续费用次数
+  async remainingReductionNumber (params = {}) {
+    let res = await this.postAll("Host04","/withdraw/remaining/reduction/number", params);
+    return res
+  }
+
+  /* ib */
+
+  //银行卡出金申请
+  async ibWithdrawApplyBank (url,params = {}) {
+    let res = await this.postAll("Host04","/agent" + url, params);
+    return res
+  }
+
+  //数字货币出金
+  async ibWithdrawAapplyDigitalCurrency (url,params = {}) {
+    let res = await this.postAll("Host04","/agent" + url, params);
+    return res
+  }
+
+
+
+
+  //出金取消
+  async withdrawCancel (params = {}) {
+    let res = await this.postAll("Host04","/withdraw/cancel", params);
+    return res
+  }
+
+  //出金取消-后台
+  async withdrawCancelBackstage (params = {}) {
+    let res = await this.postAll("Host04","/withdraw/cancel/backstage", params);
+    return res
+  }
+
+  //20赠金数据
+  async depositCheckExistSuccess (params = {}) {
+    let res = await this.postAll("Host04","/finance/deposit/check/exist/success", params);
+    return res
+  }
+
+
+  //出金邮箱验证码
+  async withdrawCode (params = {}) {
+    let res = await this.postAll("Host04","/withdraw/apply/digital/currency/send/code", params);
+    return res
+  }
+
+  async getWebsdkLink (params = {}) {
+    let res = await this.postAll("Host04","/withdraw/getWebsdkLink", params);
+    return res
+  }
+}
+
+export default new FinancialService

+ 596 - 0
service/ib.js

@@ -0,0 +1,596 @@
+import Service from '../lib/service'
+
+class IbService extends Service {
+  constructor () {
+    super()
+  }
+
+  /*MAM账户*/
+
+  //审批子账号的挂入和撤销
+  async MamSubsApprove (params = {}) {
+    let res = await this.postAll("Host90","/mam/subs/approve", params);
+    return res
+  }
+
+  //挂入或撤销子账户
+  async MamSubsApply (params = {}) {
+    let res = await this.postAll("Host90","/mam/subs/apply", params);
+    return res
+  }
+
+  //获取可挂入或可撤销的子账户下拉列表
+  async MamSubsInfo (params = {}) {
+    let res = await this.postAll("Host90","/mam/subs/info", params);
+    return res
+  }
+
+  //mam账户杠杆比例调整申请
+  async MamLeverageApplyAdd (params = {}) {
+    let res = await this.postAll("Host90","/mam/leverage/apply/add", params);
+    return res
+  }
+
+  //mam账号密码重置申请
+  async MamPwdResetAdd (params = {}) {
+    let res = await this.postAll("Host90","/mam/pwd/reset/add", params);
+    return res
+  }
+
+  //mam账户修改密码申请
+  async MamRepwdAdd (params = {}) {
+    let res = await this.postAll("Host90","/mam/repwd/add", params);
+    return res
+  }
+
+  //修改投资者密码
+  async ChangeInvestorOassword (params = {}) {
+    let res = await this.postAll("Host80","/account/settings/change/investor/password/add", params);
+    return res
+  }
+
+  //MAM账户列表
+  async MamList (params = {}) {
+    let res = await this.postAll("Host90","/mam/list", params);
+    return res
+  }
+
+  //审批mam账户
+  async MamApplyApprove (params = {}) {
+    let res = await this.postAll("Host90","/mam/apply/approve", params);
+    return res
+  }
+
+  //申请MAM账户
+  async MamApplyAdd (params = {}) {
+    let res = await this.postAll("Host90","/mam/apply/add", params);
+    return res
+  }
+
+  //MAM账户创建基本信息
+  async MamApplyData (params = {}) {
+    let res = await this.postAll("Host90","/mam/apply/data", params);
+    return res
+  }
+
+  //账户申请前判断类型权限
+  async excludeShowLogin (params = {}) {
+    let res = await this.postAll("Host80","/account/apply/exclude/show/login/type", params);
+    return res
+  }
+
+  /*交易明细*/
+
+  //挂单查询
+  async TradePending (params = {}) {
+    let res = await this.postAll("Host90","/trade/pending", params);
+    return res
+  }
+
+  // 持仓查询
+  async TradePosition (params = {}) {
+    let res = await this.postAll("Host90","/trade/position", params);
+    return res
+  }
+
+  // 交易历史
+  async TradeHistory (params = {}) {
+    let res = await this.postAll("Host90","/trade/sharding/history", params);
+    return res
+  }
+
+  /* 内转 */
+
+  // 内转
+  async agentBalanceTransfer (params = {}) {
+    let res = await this.postAll("Host90","/agent/balance/transfer/add/imd", params);
+    return res
+  }
+
+  // 转出账户信息
+  async agentBalanceTransferFrom (params = {}) {
+    let res = await this.postAll("Host90","/agent/balance/transfer/from", params);
+    return res
+  }
+
+  // 转入账户信息
+  async agentTransferToList (params = {}) {
+    let res = await this.postAll("Host90","/account/directAccount", params);
+    return res
+  }
+
+  /* 申请日志 */
+
+  //外佣调整申请列表
+  async CommissionApplyRecording (params = {}) {
+    let res = await this.postAll("Host90","/custom/commission/apply/list", params);
+    return res
+  }
+
+  //佣金内转申请列表
+  async agentBalanceTransferRecording (params = {}) {
+    let res = await this.postAll("Host90","/agent/balance/transfer/search/list", params);
+    return res
+  }
+
+   //mam子账户挂入撤销列表
+   async mamSubsApplyRecording (params = {}) {
+    let res = await this.postAll("Host90","/mam/subs/apply/list", params);
+    return res
+  }
+
+  /*代理*/
+
+  //代理界面表格下的基础数据
+  async IbData (params = {}) {
+    let res = await this.postAll("Host90","/ib/data", params);
+    return res
+  }
+
+  // 名下代理
+  async IbSubs (params = {}) {
+    let res = await this.postAll("Host90","/ib/subs", params);
+    return res
+  }
+
+  // 账户管理
+  async accountSubs (params = {}) {
+    let res = await this.postAll("Host90","/account/list", params);
+    return res
+  }
+
+  // 名下客户
+  async customerSubs (params = {}) {
+    let res = await this.postAll("Host90","/custom/info/belongs", params);
+    return res
+  }
+
+  // 名下客户列表(用于下拉框)
+  async customerSubsList (params = {}) {
+    let res = await this.postAll("Host90","/custom/info/belongs/list", params);
+    return res
+  }
+
+  // 名下客户统计
+  async customerSubsStatistics (params = {}) {
+    let res = await this.postAll("Host90","/custom/info/belongs/statistics", params);
+    return res
+  }
+
+  // 名下客户外佣调整
+  async customCommissionApply (params = {}) {
+    let res = await this.postAll("Host90","/custom/commission/apply/add", params);
+    return res
+  }
+
+  // 名下客户外佣调整
+  async customCommissionPoint (params = {}) {
+    let res = await this.postAll("Host90","/custom/info/update/point", params);
+    return res
+  }
+
+  // 名下客户转归属
+  async accountBelongChange (params = {}) {
+    let res = await this.postAll("Host90","/account/belong/change/add", params);
+    return res
+  }
+
+  // 名下客户转归属-代理下拉
+  async accountBelongChangeIb (params = {}) {
+    let res = await this.postAll("Host90","/account/belong/change/agents", params);
+    return res
+  }
+
+  /*佣金模板*/
+
+  //佣金模板列表
+  async sysPointList (params = {}) {
+    let res = await this.postAll("Host90","/sys/point/list", params);
+    return res
+  }
+
+  //佣金模板列表删除
+  async sysPointDelete (params = {}) {
+    let res = await this.postAll("Host90","/sys/point/delete", params);
+    return res
+  }
+
+  //佣金模板列表编辑
+  async sysPointUpdate (params = {}) {
+    let res = await this.postAll("Host90","/sys/point/update", params);
+    return res
+  }
+
+  //佣金模板列表single
+  async sysPointSingle (params = {}) {
+    let res = await this.postAll("Host90","/sys/point/single", params);
+    return res
+  }
+
+  //变更返佣申请
+  async AgentPointChangeApply (params = {}) {
+    let res = await this.postAll("Host90","/agent/point/change/apply", params);
+    return res
+  }
+
+  // 获取切换佣金模板时所需的数据
+  async AgentPointChangeData (params = {}) {
+    let res = await this.postAll("Host90","/agent/point/change/data", params);
+    return res
+  }
+
+  //获取新增佣金模板时所需的下拉返点列表
+  async SysPointPoints (params = {}) {
+    let res = await this.postAll("Host90","/sys/point/points", params);
+    return res
+  }
+  //获取新增佣金模板时所需的下拉返点列表
+  async SysCentValid (params = {}) {
+    let res = await this.postAll("Host90","/sys/point/centValid", params);
+    return res
+  }
+
+  // 新增佣金模板
+  async SysPointAdd (params = {}) {
+    let res = await this.postAll("Host90","/sys/point/add", params);
+    return res
+  }
+
+  // 获取图表信息
+  async getChartInfo (params = {}) {
+    let res = await this.postAll("Host80","/index/chart/list", params);
+    return res
+  }
+
+  /* 报告 */
+
+  //存取款
+  async tradeDw (params = {}) {
+    let res = await this.postAll("Host90","/trade/dw", params);
+    return res
+  }
+
+  // 交易账户
+  async tradeAccount (params = {}) {
+    let res = await this.postAll("Host90","/trade/account", params);
+    return res
+  }
+
+  //代理佣金收入
+  async tradeAgentCommission (params = {}, isVietnam = false) {
+    let url = "/trade/agent/commission";
+    if (isVietnam) {
+      url = url + "/vn";
+    }
+    let res = await this.postAll("Host90", url, params);
+    return res
+  }
+
+  // 新增代理
+  async tradeIb (params = {}) {
+    let res = await this.postAll("Host90","/ib/report/new", params);
+    return res
+  }
+
+  //挂单历史
+  async tradePendingHistory (params = {}) {
+    let res = await this.postAll("Host90","/trade/pending/history", params);
+    return res
+  }
+
+  // 挂单查询
+  async tradePending (params = {}) {
+    let res = await this.postAll("Host90","/trade/pending", params);
+    return res
+  }
+
+  //持仓查询
+  async tradePosition (params = {}) {
+    let res = await this.postAll("Host90","/trade/position", params);
+    return res
+  }
+
+  // 交易历史
+  async tradeHistory (params = {}) {
+    let res = await this.postAll("Host90","/trade/sharding/history", params);
+    return res
+  }
+
+  // 余额操作
+  async ibReportBalance (params = {}) {
+    let res = await this.postAll("Host90","/ib/report/balance", params);
+    return res
+  }
+
+  // 交易量
+  async tradeSymbolCategory (params = {}) {
+    let res = await this.postAll("Host90","/trade/symbol/category", params);
+    return res
+  }
+
+  /*ib申请记录列表*/
+
+  //mam账户申请
+  async mamApplyList (params = {}) {
+    let res = await this.postAll("Host90","/mam/apply/list", params);
+    return res
+  }
+
+  //mam账户杠杆申请
+  async mamLeverageApplyList (params = {}) {
+    let res = await this.postAll("Host90","/mam/leverage/apply/list", params);
+    return res
+  }
+
+  //佣金内转申请
+  async agentBalanceTransferList (params = {}) {
+    let res = await this.postAll("Host90","/agent/balance/transfer/search/list", params);
+    return res
+  }
+
+  //外佣调整申请
+  async customCommissionApplyList (params = {}) {
+    let res = await this.postAll("Host90","/custom/commission/apply/list", params);
+    return res
+  }
+
+  //归属调整申请
+  async agentBelongChangeList (params = {}) {
+    let res = await this.postAll("Host90","/account/belong/change/search/list", params);
+    return res
+  }
+
+  //佣金分配申请
+  async agentPointChangeList (params = {}) {
+    let res = await this.postAll("Host90","/agent/point/change/list", params);
+    return res
+  }
+
+  //ib取款申请
+  async agentWithdrawList (params = {}) {
+    let res = await this.postAll("Host90","/finance/agent/withdraw/search/list", params);
+    return res
+  }
+
+  //客户申请记录列表/4活动申请
+  async CustomRecordAccount (params = {}) {
+    let res = await this.postAll("Host80","/custom/apply/list", params);
+    return res
+  }
+
+
+  //根据条件查看拒绝列表-用于下拉和选择展示理由
+  async reasonsRefusalList (params = {}) {
+    let res = await this.postAll("Host80","/reasons/refusal/list", params);
+    return res
+  }
+
+  //根据条件查看ibno
+  async ibTree (params = {}) {
+    let res = await this.postAll("Host90","/ib/tree", params);
+    return res
+  }
+
+
+  //是否可开代理
+  async customUpdateIbInvalid (params = {}) {
+    let res = await this.postAll("Host90","/custom/info/update/ibInvalid", params);
+    return res
+  }
+
+
+  // 代理内转
+  // 获取账户列表-全部
+  async CustomDropdown (params = {}) {
+    let res = await this.postAll("Host80","/account/dropdown", params);
+    return res
+  }
+
+  // 获取转入账户列表-全部
+  async accountCustomList (params = {}) {
+    let res = await this.postAll("Host90","/account/custom/list", params);
+    return res
+  }
+
+  // ib内转
+  async agentTransferApply (params = {}) {
+    let res = await this.postAll("Host04","/agent/transfer/apply", params);
+    return res
+  }
+
+  async agentTransCtaferApply (params = {}) {
+    let res = await this.postAll("Host04","/agent/transfer/cta/apply", params);
+    return res
+  }
+
+  // ib内转列表
+  async agentTransferList (params = {}) {
+    let res = await this.postAll("Host04","/agent/transfer/list", params);
+    return res
+  }
+
+  // 经理人申请
+  // ib是否可以申请pamm manager账号
+  async mamApplyPammManagerValid (params = {}) {
+    let res = await this.postAll("Host90","/mam/apply/pammManagerValid", params);
+    return res
+  }
+
+  // 当前代理可申请pamm manager账号集合
+  async mamApplyPammManagerLogins (params = {}) {
+    let res = await this.postAll("Host90","/mam/apply/pamm/logins", params);
+    return res
+  }
+
+  // 申请pamm manager账号
+  async mamApplyPammManagerAdd (params = {}) {
+    let res = await this.postAll("Host90","/mam/apply/add", params);
+    return res
+  }
+
+
+
+  //出金取消
+  async withdrawCancel (params = {}) {
+    let res = await this.postAll("Host90","/finance/agent/withdraw/cancel", params);
+    return res
+  }
+
+  //调整pm分成
+  async applyPercent (params = {}) {
+    let res = await this.postAll("Host90","/pm/percent/change", params);
+    return res
+  }
+
+
+  //跟单
+  //代理查看信号源列表
+  async followDealAgentSearchList (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/agent/search/list", params);
+    return res
+  }
+  //代理修改信号源
+  async followDealAgentUpdate (params = {}) {
+    let res = await this.postAll("Host87","/follow/deal/agent/update", params);
+    return res
+  }
+  //代理修改客户查看信号源权限
+  async customUpdateFollowPermissionDisplay (params = {}) {
+    let res = await this.postAll("Host90","/custom/info/update/follow/permissionDisplay", params);
+    return res
+  }
+
+
+  
+  //代理修改客户查看信号源权限
+  async marketAgentLinkList (params = {}) {
+    let res = await this.postAll("Host90","/market/agent/link/list", params);
+    return res
+  }
+
+  // MAM账户列表子账户
+  async pammListSubs (params = {}) {
+    let res = await this.postAll("Host90","/pamm/subs", params);
+    return res
+  }
+  // 根据外俑和手续费获取值
+  async customLink (params = {}) {
+    let res = await this.postAll("Host90","/custom/register/link/hash", params);
+    return res
+  }
+  // 根据账户类型配置获取链接代码
+  async customLinkCode (params = {}) {
+    let res = await this.postAll("Host90","/custom/register/link/code", params);
+    return res
+  }
+  // 代理开户设置开关
+  async IbAgentSetting (params = {}) {
+    let res = await this.postAll("Host90","/ib/agent/setting", params);
+    return res
+  }
+
+  //点差设置列表
+  async loginTypeList (params = {}) {
+    let res = await this.postAll("Host80","/login/type/search/list", params);
+    return res
+  }
+
+  // 暗点返佣报表
+  async tradeSalesHidden (params = {}) {
+    let res = await this.postAll("Host90","/trade/hidden/rebate", params);
+    return res
+  }
+
+  async getWebsdkLink1 (params = {}) {
+    let res = await this.postAll("Host04","/agent/withdraw/getWebsdkLink", params);
+    return res
+  }
+
+  // 获取专属手续费分配数据
+  async agentHiddenPointSearchSingle (params = {}) {
+    let res = await this.postAll("Host90","/agent/hidden/point/search/single", params);
+    return res
+  }
+
+  // 添加专属手续费分配
+  async agentHiddenPointAdd (params = {}) {
+    let res = await this.postAll("Host90","/agent/hidden/point/add", params);
+    return res
+  }
+
+  // IB账户内转 - 获取代理账户树形数据
+  async ibTreeForTransfer (params = {}) {
+    let res = await this.postAll("Host90","/ib/tree", params);
+    return res
+  }
+
+  // IB账户内转 - 提交到代理账户
+  async agentBalanceCommissionAdd (params = {}) {
+    let res = await this.postAll("Host90","/agent/balance/commission/add", params);
+    return res
+  }
+
+  // IB代理账户佣金内转列表
+  async agentBalanceCommissionSearchList (params = {}) {
+    let res = await this.postAll("Host90","/agent/balance/commission/search/list", params);
+    return res
+  }
+
+  // 获取越南分配点数据
+  async getVietnamPoints (params = {}) {
+    let res = await this.postAll("Host90","/agent/point/vn/points", params);
+    return res
+  }
+
+  // 保存越南分配点数据
+  async saveVietnamPoints (params = {}) {
+    let res = await this.postAll("Host90","/agent/point/vn/save", params);
+    return res
+  }
+
+  // 新增开户链接
+  async customLinkAdd (params = {}) {
+    let res = await this.postAll("Host90","/agent/custom/link/add", params);
+    return res
+  }
+
+  // 开户链接列表
+  async customLinkSearchList (params = {}) {
+    let res = await this.postAll("Host90","/agent/custom/link/search/list", params);
+    return res
+  }
+
+  // 获取开户链接账户类型列表
+  async customLinkTypes (params = {}) {
+    let res = await this.postAll("Host90","/custom/register/link/types", params);
+    return res
+  }
+
+  // 新增代理申请(带佣金模板)
+  async agentApplyAddPoint (params = {}) {
+    let res = await this.postAll("Host80","/agent/apply/add/point", params);
+    return res
+  }
+}
+
+export default new IbService

+ 94 - 0
service/login.js

@@ -0,0 +1,94 @@
+import Service from '../lib/service'
+
+class LoginService extends Service {
+  constructor () {
+    super()
+  }
+
+  //登录
+  async Login (params = {}) {
+    let res = await this.postAll("Host80","/custom/login", params);
+    return res
+  }
+
+  //登出
+  async Logout (params = {}) {
+    let res = await this.postAll("Host80","/custom/logout", params);
+    return res
+  }
+
+  //注册
+  async Register (params = {}, config = {}) {
+    let res = await this.postAll("Host80","/custom/register", params, config);
+    return res
+  }
+
+  //发送邮件验证
+  async Code (params = {}) {
+    let res = await this.postAll("Host80","/custom/register/send/code", params);
+    return res
+  }
+
+  //当前国家编码
+  async CodeById (params = {}) {
+    let res = await this.postAll("Host80","/country/getCodeByIp", params);
+    return res
+  }
+
+  // 获取登录信息
+  async CustomLoginInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/info", params);
+    return res
+  }
+  //语言切换
+  async switchLanguage (params = {}) {
+    let res = await this.postAll("Host80","/custom/switch/lang", params);
+    return res
+  }
+
+  //忘记密码发送邮件
+  async forgetPwd (params = {}) {
+    let res = await this.postAll("Host80","/custom/update/password/send/email", params);
+    return res
+  }
+
+  //忘记密码
+  async forgetPwdUpdate (params = {}) {
+    let res = await this.postAll("Host80","/custom/update/email/password", params);
+    return res
+  }
+
+  //trading密码重置
+  async tradingPwdUpdate (params = {}) {
+    let res = await this.postAll("Host80","/account/deal/password/reset/apply", params);
+    return res
+  }
+
+  //客户文件列表
+  async CustomFileList (params = {}) {
+    let res = await this.postAll("Host80","/custom/file/list", params);
+    return res
+  }
+
+  //浏览器语言
+  async getLanguage (params = {}) {
+    let res = await this.postAll("Host80","/custom/get/language", params);
+    return res
+  }
+
+  //发送邮件验证
+  async sendCode (params = {}) {
+    let res = await this.post("/custom/send/code", params);
+    return res
+  }
+
+
+  //登录验证方式
+  async loginValid (params = {}) {
+    let res = await this.post("/custom/login/valid", params);
+    return res
+  }
+
+}
+
+export default new LoginService

+ 115 - 0
service/news.js

@@ -0,0 +1,115 @@
+import Service from '../lib/service'
+import axios from "axios";
+import Config from '../config'
+
+class NewsService extends Service {
+  constructor () {
+    super()
+    axios.defaults.baseURL = Config.Host80
+  }
+
+  //观点分析
+  async newsAnalysisList (params = {}) {
+    let res = await this.postAll("Host80","/news/analysis/search/list", params);
+    return res
+  }
+
+  //观点分析
+  async newsAnalysisSingle (params = {}) {
+    let res = await this.postAll("Host80","/news/analysis/search/single", params);
+    return res
+  }
+
+  //公告通知
+  async newsInformationList (params = {}) {
+    let res = await this.postAll("Host80","/web/information/list", params);
+    return res
+  }
+
+  //公告通知
+  async newsInformationSingle (params = {}) {
+    let res = await this.postAll("Host80","/web/information/single", params);
+    return res
+  }
+
+  //通知
+  async newsNoticeList (params = {}) {
+    let res = await this.postAll("Host80","/web/notice/search/list/record", params);
+    return res
+  }
+
+  //通知-未读数量
+  async newsNoticeRead (params = {}) {
+    let res = await this.postAll("Host80","/web/notice/search/read", params);
+    return res
+  }
+
+  //通知
+  async newsNoticeSingle (params = {}) {
+    let res = await this.postAll("Host80","/web/notice/search/single/record", params);
+    return res
+  }
+
+  //新闻时讯
+  async newsInformationNewsletterList (params = {}) {
+    let res = await this.postAll("Host80","/web/information/newsletter/list", params);
+    return res
+  }
+
+  //新闻时讯
+  async newsInformationNewsletterSingle (params = {}) {
+    let res = await this.postAll("Host80","/web/information/single", params);
+    return res
+  }
+
+  //交易策略
+  async handShakeGet (params = {}) {
+    let res = await this.postAll("Host80","/hand/shake/get/featured_forex", params);
+    return res
+  }
+
+  //财经日历
+  async handFinancialCalendar (params = {}) {
+    let res = await this.postAll("Host80","/hand/shake/get/economic_calendar", params);
+    return res
+  }
+
+  //视频
+  async newsVideoList (params = {}) {
+    let res = await this.postAll("Host80","/web/video/list", params);
+    return res
+  }
+
+  //视频
+  async newsVideoSingle (params = {}) {
+    let res = await this.postAll("Host80","/web/video/single", params);
+    return res
+  }
+
+  //webTv
+  async newsWebTvSearch (params = {}) {
+    let res = await this.postAll("Host80","/news/web/tv/search/list", params);
+    return res
+  }
+
+  //webTv
+  async newsWebTvSearchSingle (params = {}) {
+    let res = await this.postAll("Host80","/news/web/tv/search/single", params);
+    return res
+  }
+
+  //电子书列表
+  async newsEbookList (params = {}) {
+    let res = await this.postAll("Host80","/web/ebook/list", params);
+    return res
+  }
+  //电子书详情
+  async newsEbookSingle (params = {}) {
+    let res = await this.postAll("Host80","/web/ebook/single", params);
+    return res
+  }
+
+
+}
+
+export default new NewsService

+ 140 - 0
service/personal.js

@@ -0,0 +1,140 @@
+import Service from '../lib/service'
+import axios from "axios";
+import Config from '../config'
+
+class PersonalService extends Service {
+  constructor () {
+    super()
+    axios.defaults.baseURL = Config.Host80
+  }
+
+  //获取国家列表
+  async Country (params = {}) {
+    let res = await this.postAll("Host80","/country/get", params);
+    return res
+  }
+
+  //获取新闻
+  async newsAnalysisList (params = {}) {
+    let res = await this.postAll("Host80","/news/analysis/search/list", params);
+    return res
+  }
+
+  //获取二维码
+  async CustomFileMobile (par = {}) {
+    let res = await this.getAll("Host80","/custom/bank/mobile",par);
+    return res
+  }
+
+  //获取二维码-flies
+  async CustomFileMobileFiles (par = {}) {
+    let res = await this.getAll("Host80","/custom/file/mobile",par);
+    return res
+  }
+
+  /* 银行 */
+
+  //银行列表
+  async BankList (params = {}) {
+    let res = await this.postAll("Host80","/bank/list", params);
+    return res
+  }
+
+  //银行卡列表
+  async customBankList (params = {}) {
+    let res = await this.postAll("Host80","/custom/bank/list", params);
+    return res
+  }
+
+  //添加银行卡信息
+  async customBankAdd (params = {}) {
+    let res = await this.postAll("Host80","/custom/bank/add", params);
+    return res
+  }
+
+  //修改银行卡信息
+  async customBankUpdate (params = {}) {
+    let res = await this.postAll("Host80","/custom/bank/update", params);
+    return res
+  }
+
+  //删除银行卡信息
+  async customBankDelete (params = {}) {
+    let res = await this.postAll("Host80","/custom/bank/delete", params);
+    return res
+  }
+
+  /* 文件管理 */
+
+  //文件列表
+  async customFileList (params = {}) {
+    let res = await this.postAll("Host80","/custom/file/list", params);
+    return res
+  }
+
+  /* 安全中心 */
+
+  //客户专区密码修改
+  async customUpdatePassword (params = {}) {
+    let res = await this.postAll("Host80","/custom/update/login/password", params);
+    return res
+  }
+
+  //邮箱更改
+  async customUpdateEmail (params = {}) {
+    let res = await this.postAll("Host80","/custom/update/email", params);
+    return res
+  }
+
+  //邮箱更改验证码
+  async customUpdateEmailCode (params = {}) {
+    let res = await this.postAll("Host80","/custom/update/email/send/code", params);
+    return res
+  }
+
+  // 获取登录信息
+  async CustomLoginInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/info", params);
+    return res
+  }
+
+  /* 信息完善 */
+
+  //客户修改信息
+  async CustomUpdateInfo (params = {}) {
+    let res = await this.postAll("Host80","/custom/update/info", params);
+    return res
+  }
+
+  //客户文件列表
+  async CustomFileList (params = {}) {
+    let res = await this.postAll("Host80","/custom/file/list", params);
+    return res
+  }
+
+  //客户提交申请真实用户
+  async customApplyReal (params = {}) {
+    let res = await this.postAll("Host80","/custom/apply/real", params);
+    return res
+  }
+
+  //附加文件删除
+  async customFileDelete (params = {}) {
+    let res = await this.postAll("Host80","/custom/file/delete", params);
+    return res
+  }
+
+  //获取人脸识别二维码
+  async getWebsdkLink (par = {}) {
+    let res = await this.postAll("Host80","/custom/getWebsdkLink",par);
+    return res
+  }
+
+  //真实用户开户设置
+  async customAccount (params = {}) {
+    let result = await this.postAll("Host90","/custom/info/update/show/login/type", params);
+    return result
+  }
+}
+
+export default new PersonalService

+ 108 - 0
service/shop.js

@@ -0,0 +1,108 @@
+import Service from '../lib/service'
+import axios from "axios";
+import Config from '../config'
+
+class ShopService extends Service {
+  constructor () {
+    super()
+    axios.defaults.baseURL = Config.HostShop
+  }
+
+  //根据CID获取积分商城token
+  async getShopToken (params = {}) {
+    let res = await this.postAll("Host80","/shop/custom/info/loginByCId", params);
+    return res
+  }
+
+  //积分余额
+  async customBalance (params = {}) {
+    let res = await this.postAll("HostShop","/custom/balance", params);
+    return res
+  }
+
+  //积分列表
+  async customLntegralList (params = {}) {
+    let res = await this.postAll("HostShop","/custom/integral/search/list", params);
+    return res
+  }
+
+  //商品分类列表
+  async commodityTypeList (params = {}) {
+    let res = await this.postAll("HostShop","/commodity/type/search/list", params);
+    return res
+  }
+
+  //商品列表
+  async commodityList (params = {}) {
+    let res = await this.postAll("HostShop","/commodity/search/list", params);
+    return res
+  }
+
+  //商品详情
+  async commoditySingle (params = {}) {
+    let res = await this.postAll("HostShop","/commodity/search/single", params);
+    return res
+  }
+
+  //下单
+  async orderAdd (params = {}) {
+    let res = await this.postAll("HostShop","/order/add", params);
+    return res
+  }
+
+  //修改订单
+  async orderUpdate (params = {}) {
+    let res = await this.postAll("HostShop","/order/update", params);
+    return res
+  }
+
+  //取消订单
+  async orderCancel (params = {}) {
+    let res = await this.postAll("HostShop","/order/cancel", params);
+    return res
+  }
+
+  //完成订单
+  async orderComplete (params = {}) {
+    let res = await this.postAll("HostShop","/order/complete", params);
+    return res
+  }
+
+  // 订单列表查询
+  async orderList (params = {}) {
+    let res = await this.postAll("HostShop","/order/search/list", params);
+    return res
+  }
+  //订单详情
+  async orderSingle (params = {}) {
+    let res = await this.postAll("HostShop","/order/search/single", params);
+    return res
+  }
+
+  //新增收货地址
+  async addressAdd (params = {}) {
+    let res = await this.postAll("HostShop","/custom/address/add", params);
+    return res
+  }
+
+  //删除收货地址
+  async addressDelete (params = {}) {
+    let res = await this.postAll("HostShop","/custom/address/delete", params);
+    return res
+  }
+
+  //修改收货地址
+  async addressUpdate (params = {}) {
+    let res = await this.postAll("HostShop","/custom/address/update", params);
+    return res
+  }
+
+  //收货地址列表
+  async addressList (params = {}) {
+    let res = await this.postAll("HostShop","/custom/address/search/list", params);
+    return res
+  }
+
+}
+
+export default new ShopService

+ 337 - 0
service/ucard.js

@@ -0,0 +1,337 @@
+import Service from "../lib/service";
+import { withLoading } from "@/utils/requestLoading";
+class UcardService extends Service {
+  constructor() {
+    super();
+  }
+
+
+
+
+
+
+  //获取卡片类型列表
+  async cardTypesList(params = {}) {
+    let res = await this.postAll("Host80", "/wasabi/card/types/list", params);
+    return res;
+  }
+  // 获取商户信息
+  async getSingle(params = {}) {
+    let res = await this.postAll("Host80", "/wasabi/merchant/user/single", params);
+    return res;
+  }
+  // 商户用户分页列表
+  async merchantList(params = {}) {
+    let res = await this.postAll("Host80", "/wasabi/merchant/user/page", params);
+    return res;
+  }
+  // 国家城市
+  async ucardCountryCity(params = {}) {
+    let res = await this.postAll("Host80", "/wasabi/card/country", params);
+    return res;
+  }
+  // 查询职业信息
+  async getOccupationList(params = {}) {
+    let res = await this.postAll(
+      "Host80",
+      "/wasabi/card/occupation/list",
+      params
+    );
+    return res;
+  }
+  // 获取卡片申请列表
+  async applyList(params = {}) {
+    let res = await this.postAll("Host80", "/wasabi/card/apply/page", params);
+    return res;
+  }
+  // 获取卡片列表
+  async cardList(params = {}) {
+    let res = await this.postAll("Host80", "/wasabi/card/list", params);
+    return res;
+  }
+  // kyc列表
+  async kycList(params = {}) {
+    let res = await this.postAll("Host80", "/wasabi/merchant/kyc/page", params);
+    return res;
+  }
+  // 银行卡详情
+  async getCardInfo(params = {}) {
+    let res = await this.postAll("Host80", "/wasabi/card/single", params);
+    return res;
+  }
+  // 充值记录分页查询
+  async rechargeList(params = {}) {
+    let res = await this.postAll(
+      "Host80",
+      "/wasabi/card/recharge/page",
+      params
+    );
+    return res;
+  }
+  // 文件上传 - 已改为统一上传接口
+  // 注意:此方法现在主要用于兼容,实际文件上传已通过 Vue 组件中的统一上传工具处理
+  async ucardUpload(params = {}) {
+    // 如果传入了文件,使用统一上传逻辑
+    if (params.file) {
+      // 先调用原接口获取 uploadToken(需要传文件)
+      let formData = new FormData();
+      formData.append('file', params.file);
+      let res = await this.postAll("Host80", "/wasabi/upload/file", formData);
+      // if (tokenRes.code !== 200) {
+      //   return tokenRes;
+      // }
+
+      // 获取 uploadToken
+      // let uploadToken = tokenRes.data?.uploadToken || tokenRes.uploadToken || tokenRes.data;
+      // if (!uploadToken) {
+      //   return {
+      //     code: 400,
+      //     msg: 'Failed to get uploadToken'
+      //   };
+      // }
+
+      // 使用新接口上传
+      // let uploadFormData = new FormData();
+      // uploadFormData.append('file', params.file);
+      // uploadFormData.append('uploadToken', uploadToken);
+
+      // let res = await this.postAll("Host05", "/common/base/upload", uploadFormData);
+      return res;
+    }
+    // 如果没有文件,返回错误
+    return {
+      code: 400,
+      msg: 'File is required'
+    }
+  }
+  // 查询交易记录分页列表
+  async transactionsList(params = {}) {
+    let res = await this.postAll("Host80", "/wasabi/card/transac/page", params);
+    return res;
+  }
+  // 免费次数
+  async reductionNum(params = {}) {
+    let res = await this.postAll(
+      "Host80",
+      "/wasabi/apply/reduction/num",
+      params
+    );
+    return res;
+  }
+  // 账户余额
+  async walletBalance(params = {}) {
+    let res = await this.postAll(
+      "Host80",
+      "/wasabi/card/wallet/balance",
+      params
+    );
+    return res;
+  }
+  // 钱包记录分页列表
+  async getRecordPage(params = {}) {
+    let res = await this.postAll(
+      "Host80",
+      "/wasabi/card/wallet/record/page",
+      params
+    );
+    return res;
+  }
+  // 验证权限
+  async permissionVerify(params = {}) {
+    let res = await this.postAll(
+      "Host80",
+      "/wasabi/card/permission/verify",
+      params
+    );
+    return res;
+  }
+  // 证件类型配置
+  async idTypesConfigList(params = {}) {
+    let res = await this.postAll(
+      "Host80",
+      "/wasabi/card/id/type/config/list",
+      params
+    );
+    return res;
+  }
+  //根据条件查看拒绝列表-用于下拉和选择展示理由
+  async reasonsRefusalList(params = {}) {
+    let res = await this.postAll("Host80", "/reasons/refusal/list", params);
+    return res;
+  }
+  //获取收款用户列表
+  async globalReceiverUserList(params = {}) {
+    let res = await this.postAll("Host80", "/ucard/global/receiver/user/list", params);
+    return res;
+  }
+  // 上传文件
+  async scanFile(params = {}) {
+    let res = await this.postAll("Host80", "/wasabi/scan/code", params);
+    return res;
+  }
+  // 区块链配置下拉列表
+  async getBlockchainDropdown(params = {}) {
+    let res = await this.postAll("Host80", "/wasabi/card/blockchain/config/dropdown", params);
+    return res;
+  }
+  //币种下拉列表
+  async globalCurrenciesDropdown(params = {}) {
+    let res = await this.postAll("Host80", "/ucard/global/currencies/dropdown", params);
+    return res;
+  }
+  //币种字段和可选值列表
+  async globalCurrenciesField(params = {}) {
+    let res = await this.postAll("Host80", "/ucard/global/currencies/field/list", params);
+    return res;
+  }
+
+  //查询ucard账户信息
+  async cardAccountDropdown(params = {}) {
+    let res = await this.postAll("Host80", "/wasabi/card/account/dropdown", params);
+    return res;
+  }
+  //速汇订单分页列表
+  async globalOrdersList(params = {}) {
+    let res = await this.postAll("Host80", "/ucard/global/order/page/list", params);
+    return res;
+  }
+  //查询支持的城市列表
+  async globalQueryBankCities(params = {}) {
+    let res = await this.postAll("Host80", "/ucard/global/query/bank/cities", params);
+    return res;
+  }
+  // 加密货币交易记录列表
+  async getBlockchainTransactionPage(params = {}) {
+    let res = await this.postAll("Host80", "/ucard/wallet/deposit/page", params);
+    return res;
+  }
+  // 卡扣款分页列表
+  async getCardWithdrawPage(params = {}) {
+    let res = await this.postAll("Host80", "/wasabi/card/withdraw/page", params);
+    return res;
+  }
+  // 收付款人全部可填列表
+  async getGlobalFieldParams(params = {}) {
+    let res = await this.postAll("Host80", "/ucard/global/field/params", params);
+    return res;
+  }
+
+  //已认证用户信息详情
+  async globalUserDetails(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/ucard/global/user/details", params));
+  }
+  // 查询开卡进度详情
+  async updateCardTypes(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/card/update/basic/info", params));
+  }
+  // 商户用户注册
+  async merchantRegister(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/merchant/user/register", params));
+  }
+  // 更新商户用户信息
+  async merchantUpdate(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/merchant/user/update", params));
+  }
+  // 银行卡激活
+  async ucardActivate(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/card/activate", params));
+  }
+  // 银行卡充值
+  async ucardRecharge(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/card/recharge", params));
+  }
+  // 查询卡片余额
+  async ucardBalance(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/card/balance", params));
+  }
+  // 找回密码
+  async ucardResetPassword(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/card/password/reset", params));
+  }
+  // 冻结卡片
+  async ucardFreeze(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/card/freeze", params));
+  }
+  // 解冻卡片
+  async ucardUnfreeze(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/card/unfreeze", params));
+  }
+  // KYC链接
+  async getWebsdkLink(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/getWebsdkLink", params));
+  }
+  // 申请开卡
+  async ucardApply(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/card/apply", params));
+  }
+  // 开卡详情
+  async applyDetails(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/card/apply/details", params));
+  }
+  // 更新地址
+  async addressUpdate(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/merchant/user/address/update", params));
+  }
+  // 查看cvv码校验密码
+  async getCvv(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/card/password/verify", params));
+  }
+  // 查询CVV 发送短信验证码
+  async sendEmailCode(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/query/cvv/send/code", params));
+  }
+  // 验证邮箱验证码查询
+  async getCvvCode(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/query/cvv/verify/code", params));
+  }
+  //   全球速汇
+  //创建订单
+  async globalOrdersCreate(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/ucard/global/create/order", params));
+  }
+  // 订单详情
+  async globalOrdersDetail(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/ucard/global/order/details", params));
+  }
+  //修改订单
+  async globalOrderUpdate(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/update/global/order", params));
+  }
+  //查询已认证用户列表
+  async cardUserList(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/wasabi/card/query/user/list", params));
+  }
+  //查询手续费率和汇率
+  async globalExchangeRate(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/ucard/global/query/exchange/rate", params));
+  }
+  // 补充资料
+  async globalSupplementary(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/ucard/global/supplementary/data", params));
+  }
+  //取消交易订单
+  async globalCancelOrder(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/ucard/global/cancel/order", params));
+  }
+  // 生成钱包地址
+  async getVaultodyAddress(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/ucard/wallet/generate/deposit/address", params));
+  }
+  // 提现列表
+  async getWalletPage(params = {}) {
+    return await this.postAll("Host80", "/ucard/wallet/withdraw/page", params);
+  }
+  // 提现
+  async getWalletApply(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/ucard/wallet/withdraw/apply", params));
+  }
+  // 取消提现
+  async getWalletCancel(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/ucard/wallet/withdraw/cancel", params));
+  }
+  // 验证邮箱验证码
+  async getWalletSendEmailCode(params = {}) {
+    return await withLoading(() => this.postAll("Host80", "/ucard/wallet/send/email/code", params));
+  }
+}
+export default new UcardService();

+ 5 - 2
utils/request.js

@@ -122,10 +122,12 @@ const errorHandler = (error) => {
 
 
 // 核心请求函数
 // 核心请求函数
 export const request = (options) => {
 export const request = (options) => {
+  console.log(options);
+
   // 合并配置
   // 合并配置
   const config = {
   const config = {
     ...options,
     ...options,
-    url: `${baseUrl}${options.url}`,
+    url: type == `${baseUrl}${options.url}`,
     method: options.method || "GET",
     method: options.method || "GET",
     timeout,
     timeout,
   };
   };
@@ -307,11 +309,12 @@ export const get = (url, data = {}, options = {}) => {
   });
   });
 };
 };
 
 
-export const post = (url, data = {}, options = {}) => {
+export const post = (url, data = {}, type, options = {}) => {
   return request({
   return request({
     url,
     url,
     method: "POST",
     method: "POST",
     data,
     data,
+    type,
     ...options,
     ...options,
   });
   });
 };
 };