withdrawal.js 1.75 KB
import api from '../request/http'

module.exports = {
  /**积分汇总查询 */
  searchScoreSummary(data) {
    return api.fetch(
      'scrm.api.shopmall.score.summary.search',
      data,
    );
  },
  /**积分明细列表查询 */
  getScoreProfitList(data) {
    return api.fetch(
      'scrm.api.shopmall.score.profit.list',
      data
    )
  },
  /**积分明细查询 */
  getScoreDetail(data) {
    return api.fetch(
      'scrm.api.shopmall.score.detail.get',
      data
    )
  },
  /**提现列表查询 */
  getScoreWithdrawalPage(data) {
    return api.fetch(
      'scrm.api.shopmall.score.withdrawal.page',
      data
    )
  },
  /** 免责协议地址获取*/
  getAgreementUrl(data) {
    return api.fetch(
      'scrm.api.shopmall.score.withdrawal.disclaimer.agreement.get',
      data
    )
  },
  /** 积分提现*/
  saveWithdrawal(data) {
    return api.fetch('scrm.api.shopmall.score.withdrawal.save', data)
  },
  /**查询税率 */
  getTaxRate(data) {
    return api.fetch('scrm.api.shopmall.score.get.taxRate', data)
  },
  /**根据手机号查询员工银行卡列表 */
  getStaffBankList(data) {
    return api.fetch(
      'scrm.api.shopmall.score.bank.list',
      data,
    );
  },
  /** 插入或更新员工银行卡信息 */
  insetorupdateStaffBank(data) {
    return api.fetch('scrm.api.shopmall.score.bank.insertOrUpdate',
      data);
  },
  /**根据id查询银行卡详情 */
  getBankDetail(data) {
    return api.fetch('scrm.api.shopmall.score.bank.get.detail', data)
  },
  /**查询上传证件配置信息 */
  getConfig(data){
    return api.fetch('scrm.api.shopmall.score.bank.get.document.config',data)
  },
  /**开通积分钱包  */
  openPointsWallet(data){
   return  api.fetch('scrm.api.shopmall.pointswallet.open',data)
  }
}