diff --git a/src/api/index.ts b/src/api/index.ts index 86ff7a8..0cd3afa 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -277,14 +277,21 @@ interface SaleInfo{ updated_at:string, basemoney:string } +interface SaleInfolData{ + data: SaleInfo[]; + code: number; + msg: string; + total: number; +} /** * 交易明细 * @param data */ + export async function saleinfo(data?:any){ - const res= await get>('account',data) + const res=await get('account',data) console.log(res) - return res.data + return res } /** @@ -309,6 +316,8 @@ export async function cashout(data?:any,accountinfo?:any){ const res = await post('withdrawal',data); if(res.code==0){ message.success(res.msg) + // userinfo() + store.dispatch("setUserInfo"); }else{ message.error(res.msg) } @@ -403,8 +412,76 @@ export async function editpassword(data?:any) :Promise { } } +/** + * 提现记录 列表 + */ +interface WithDrawal{ + withdrawalid:number, + memberid:number, + sn:string, + status:number, + statusname:string, + type:number, + typename:string, + money:number + sxf:number, + international:number, + account:string, + mname:string, + bankcode:string, + bankname:string, + remark:string, + deleted_at:string, + created_at:string, + updated_at:string +} +interface WithdrawlData{ + data: WithDrawal[]; + code: number; + msg: string; + total: number; +} +export async function withdrawal(data?:any) { + console.log(data) + const res=await get('withdrawal',data) + // console.log(res) + return res +} +/** + * 提现记录 详情 + */ +export async function withdrawlxq(data?:any){ + const res=await get('withdrawal/'+data) + return res.data +} +/** + * 评论(视频?) + */ +interface CommentList{ + commentid:number, + memberid:number, + cid:number, + type:number, + score:number, + content:string, + deleted_at:null, + created_at:string, + updated_at:string, + name:string, + img:string +} +interface CommentlData{ + data: CommentList[]; + code: number; + msg: string; + total: number; +} +export async function getcommentlist(data?:any) { + const res=await get('comments',data) + return res +} /** * 发送验证码 * @param phone 手机号 diff --git a/src/components/VideoReview.vue b/src/components/VideoReview.vue index f14db80..0f58633 100644 --- a/src/components/VideoReview.vue +++ b/src/components/VideoReview.vue @@ -18,9 +18,9 @@ -
- -
发表留言
+
+ +
发表留言
@@ -85,7 +85,7 @@ } \ No newline at end of file diff --git a/src/views/mine/Transaction.vue b/src/views/mine/Transaction.vue index 46a036c..72885a2 100644 --- a/src/views/mine/Transaction.vue +++ b/src/views/mine/Transaction.vue @@ -7,71 +7,41 @@ An Application
-
-
明细查询
+
+
明细查询 +
+
- - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + +
日期类型账户提交日期状态 金额 操作
2020-08-13 13:54直播收入+¥320查看详情
2020-08-13 13:54直播收入+¥320查看详情
2020-08-13 13:54直播收入+¥320查看详情
2020-08-13 13:54直播收入+¥320查看详情
2020-08-13 13:54直播收入+¥320查看详情
2020-08-13 13:54直播收入+¥320查看详情
2020-08-13 13:54直播收入+¥320查看详情
2020-08-13 13:54直播收入+¥320查看详情
{{i.typename}} {{i.account}}{{i.created_at}}{{i.statusname}} + $ + + {{i.money}} + 查看详情
+
+ +
@@ -80,17 +50,67 @@