From 0cc2fb567706987a406cdfb04cf532bea79d3443 Mon Sep 17 00:00:00 2001 From: asd <374367073@qq.com> Date: Mon, 19 Oct 2020 15:59:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=8E=B0+=E8=A7=86=E9=A2=91=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 81 ++++++++++- src/components/VideoReview.vue | 19 ++- src/views/mine/Transaction.vue | 200 ++++++++++++++++++--------- src/views/mine/Transactiondetail.vue | 111 +++++++++++++-- src/views/mine/Wallet.vue | 60 ++++++-- src/views/regime/Video.vue | 12 +- src/views/regime/VideoInfo.vue | 5 +- 7 files changed, 387 insertions(+), 101 deletions(-) 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 @@