Authored by Aiden Xu

开通有货分期

@@ -105,11 +105,43 @@ const getSearchIntallment = () => { @@ -105,11 +105,43 @@ const getSearchIntallment = () => {
105 }); 105 });
106 }; 106 };
107 107
  108 +/**
  109 + * 获取短信验证码
  110 + *
  111 + * @param uid 用户ID
  112 + * @param mobile 手机号码
  113 + */
  114 +const sendVerifyCode = (uid, mobile) => {
  115 + return api.get('', {
  116 + method: 'user.instalment.getSnsCheckCode'
  117 + }, {
  118 + uid,
  119 + mobile
  120 + });
  121 +};
  122 +
  123 +/**
  124 + * 开通服务
  125 + *
  126 + * @param uid 用户id
  127 + * @param userName 姓名
  128 + * @param identityCardNo 身份证号码
  129 + * @param cardNo 银行卡号码
  130 + * @param mobile 手机号码
  131 + * @param snsCheckCode 验证码
  132 + * @returns {*}
  133 + */
  134 +const activateService = (params) => {
  135 + return api.get('', {
  136 + method: 'user.instalment.activate'
  137 + }, params);
  138 +};
  139 +
108 module.exports = { 140 module.exports = {
109 getStauts, 141 getStauts,
110 getQueryCreditInfo, 142 getQueryCreditInfo,
111 getQueryAmtInfo, 143 getQueryAmtInfo,
112 - getSearchIntallment 144 + getSearchIntallment,
113 sendVerifyCode, 145 sendVerifyCode,
114 activateService 146 activateService
115 }; 147 };