withdraw.js 2.49 KB
import { http } from '@/main'

// 积分提现订单列表
const getList = params => {
  params.method = `scrm.api.shopmall.integral.transfer.out.page`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

// 获分提现获取管理员信息
const getAdmin = params => {
  params.method = `scrm.api.shopmall.integral.transfer.out.getAdmin`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

// 积分提现列表-导出
const orderExport = params => {
  params.method = `scrm.api.shopmall.integral.transfer.out.export`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

// 积分提现支付
const integralpay = params => {
  params.method = `scrm.api.shopmall.integral.transfer.out.batch.pay`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true,
    returnAll: true
  })
}

// 用户积分提现批量审核
const integralApprove = params => {
  params.method = `scrm.api.shopmall.integral.transfer.out.batch.approve`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true,
    returnAll: true
  })
}
// 用户积分提现审核/驳回
const integralOut = params => {
    params.method = `scrm.api.shopmall.integral.transfer.out.approve`
    return http({
      url: 'rop-scrm-shopmall/router',
      method: 'POST',
      data: params,
      sign: true,
      returnAll: true
    })
  }
// 积分提现向管理员发送验证码
const getSms = params => {
  params.method = `scrm.api.shopmall.integral.transfer.out.admin.sms`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true,
    returnAll: true
  })
}

// 积分提现获取有业务的门店名列表
const getMerchantList = params => {
  params.method = `scrm.api.shopmall.integral.transfer.out.merchant.list`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

// 根据id列表获取提现金额(分)合计
const getAllpayAmount = params => {
    params.method = `scrm.api.shopmall.integral.transfer.out.pay.amount`
    return http({
      url: 'rop-scrm-shopmall/router',
      method: 'POST',
      data: params,
      sign: true
    })
  }

export default { getList, getAdmin, orderExport, integralpay, integralApprove, integralOut,getSms, getMerchantList,getAllpayAmount }