Merge branch 'zj' of http://git.luyuan.tk/luyuan/beelink into xbx
This commit is contained in:
@@ -82,6 +82,7 @@ interface Wallect {
|
||||
export async function getwallect(){
|
||||
const res = await get<Array<Wallect>>('wallect')
|
||||
console.log(res)
|
||||
return res.data
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -262,7 +263,98 @@ export async function videodel(data:any) {
|
||||
console.log(res)
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增账户
|
||||
*/
|
||||
export async function accountadd(data?:any) {
|
||||
const res = await post<Liveaddrule>('wallect',data);
|
||||
if(res.code==0){
|
||||
message.success("新增成功")
|
||||
}
|
||||
|
||||
console.log(res)
|
||||
}
|
||||
|
||||
interface SaleInfo{
|
||||
total:number,
|
||||
accountid:number,
|
||||
memberid:number,
|
||||
sn:string,
|
||||
type:number,
|
||||
typename:string,
|
||||
money:string,
|
||||
source:number,
|
||||
remark:string,
|
||||
deleted_at:string,
|
||||
created_at:string,
|
||||
updated_at:string,
|
||||
basemoney:string
|
||||
}
|
||||
/**
|
||||
* 交易明细
|
||||
* @param data
|
||||
*/
|
||||
export async function saleinfo(data?:any){
|
||||
const res= await get<Array<SaleInfo>>('account',data)
|
||||
console.log(res)
|
||||
return res.data
|
||||
}
|
||||
|
||||
/**
|
||||
* 申请提现
|
||||
*/
|
||||
export async function cashout(data?:any){
|
||||
const res = await post<Liveaddrule>('withdrawal',data);
|
||||
if(res.code==0){
|
||||
message.success("新增成功")
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 账户详情
|
||||
*/
|
||||
interface AccountInfo{
|
||||
wallectid:number,
|
||||
typeid:number,
|
||||
type:number,
|
||||
account:number,
|
||||
mname:string,
|
||||
bankcode:string,
|
||||
bankname:string
|
||||
}
|
||||
export async function getaccountinfo(data?: any){
|
||||
const res=await get<AccountInfo>('wallect/'+data)
|
||||
console.log(res,2333)
|
||||
return {
|
||||
accountid:res.data.wallectid,
|
||||
type:res.data.type,
|
||||
account:res.data.account,
|
||||
mname:res.data.mname,
|
||||
bankcode:res.data.bankcode,
|
||||
bankname:res.data.bankname
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 账户编辑
|
||||
*/
|
||||
export async function editaccount(data?:any){
|
||||
const res=await put<Liveaddrule>('wallect/'+data);
|
||||
if(res.code==0){
|
||||
message.success("修改成功")
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 删除账户
|
||||
*/
|
||||
export async function deleteaccount(data:any) {
|
||||
|
||||
const res = await del<Liveaddrule>('wallect/'+data);
|
||||
if(res.code==0){
|
||||
message.success("删除成功")
|
||||
}
|
||||
|
||||
console.log(res)
|
||||
}
|
||||
/**
|
||||
* 发送验证码
|
||||
* @param phone 手机号
|
||||
|
||||
Reference in New Issue
Block a user