[添加转账,提现等新功能]
This commit is contained in:
@@ -83,7 +83,7 @@ const busineSee = (business) => req({url: "business/" + business})
|
||||
const busineForm = (business_id, business_item_id, type, mobile, username) => req({url: "business/create",method: "POST", data: {business_id: business_id, business_item_id: business_item_id, type: type, mobile: mobile, username: username}})
|
||||
|
||||
//订阅
|
||||
const subscribe = (subscribe) => req({url: "wechat/" + subscribe + "/welfare_subscribe",method: "POST"})
|
||||
const subscribe = (subscribe, channel) => req({url: "wechat/" + subscribe + "/welfare_subscribe",method: "POST", data: {channel: channel}})
|
||||
|
||||
export default({
|
||||
index,
|
||||
|
||||
@@ -61,6 +61,36 @@ const washcarCreate = (welfare_id, right_id, qty, address_id, is_deliver) => req
|
||||
// 我的分享
|
||||
const myshare = (parent_id) => req({url: "user/share",data:{parent_id : parent_id || ''}})
|
||||
|
||||
// 我的推荐
|
||||
const childs = (page) => req({url: "user/childs",data:{page : page}})
|
||||
|
||||
// 校验转账的手机号码
|
||||
const ajaxTel = (mobile) => req({url: "ajax/user", data:{mobile : mobile}})
|
||||
|
||||
// 转账获取积分账户分类
|
||||
const transfers = () => req({url: "user/transfers"})
|
||||
|
||||
// 转账提交表单
|
||||
const transfersForm = (mobile, type, amount, paypass) => req({url: "user/transfers", method: "POST", data:{mobile : mobile, type : type, amount : amount, paypass: paypass}})
|
||||
|
||||
// 设置支付密码
|
||||
const setPassword = (password, password_confirmation) => req({url: "user/setting/set_password", method: "POST", data:{password : password, password_confirmation : password_confirmation}})
|
||||
|
||||
// 修改支付密码
|
||||
const changePassword = (old_password, password, password_confirmation) => req({url: "user/setting/change_password", method: "POST", data:{old_password : old_password, password : password, password_confirmation : password_confirmation}})
|
||||
|
||||
// 重置支付密码
|
||||
const resetPassword = (code, password, password_confirmation, mobile, channel) => req({url: "user/setting/reset_password", method: "POST", data:{code : code, password : password, password_confirmation : password_confirmation, mobile : mobile, channel : channel}})
|
||||
|
||||
// 提现前置账户信息
|
||||
const withdraws = () => req({url: "withdraws/create"})
|
||||
|
||||
// 提现记录列表
|
||||
const withdrawsList = (page) => req({url: "user/withdraws", data:{page : page}})
|
||||
|
||||
// 提现表单填写
|
||||
const withdrawsForm = (amount, channel) => req({url: "withdraws", method: "POST", data:{amount : amount, channel: channel}})
|
||||
|
||||
export default({
|
||||
index,
|
||||
mobiles,
|
||||
@@ -81,5 +111,15 @@ export default({
|
||||
merchant_card,
|
||||
washcarBuy,
|
||||
washcarCreate,
|
||||
myshare
|
||||
myshare,
|
||||
childs,
|
||||
ajaxTel,
|
||||
transfers,
|
||||
transfersForm,
|
||||
setPassword,
|
||||
changePassword,
|
||||
resetPassword,
|
||||
withdraws,
|
||||
withdrawsList,
|
||||
withdrawsForm
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user