From 9b8d8d0799da8fe91829f45a72e041a12c6feae5 Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Thu, 16 Mar 2023 08:21:26 +0800 Subject: [PATCH] 1 --- src/App.vue | 2 + src/api/userinfo.js | 7 + .../userinfo/usercenter/components/mybill.vue | 450 ++++++++++++++++----- .../userinfo/usercenter/components/townsman.vue | 85 ++-- 4 files changed, 379 insertions(+), 165 deletions(-) diff --git a/src/App.vue b/src/App.vue index 9997b4c..92647c5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -33,6 +33,8 @@ export default { }; diff --git a/src/components/userinfo/usercenter/components/townsman.vue b/src/components/userinfo/usercenter/components/townsman.vue index 3e6883a..767ebc3 100644 --- a/src/components/userinfo/usercenter/components/townsman.vue +++ b/src/components/userinfo/usercenter/components/townsman.vue @@ -2,28 +2,16 @@
    -
  • +
  • 全部{{ statusNum.num0 == 0 ? "" : statusNum.num0 }}
  • -
  • +
  • 空闲中{{ statusNum.num1 == 0 ? "" : statusNum.num1 }}
  • -
  • +
  • 报名中{{ statusNum.num2 == 0 ? "" : statusNum.num2 }}
  • -
  • +
  • 在职中{{ statusNum.num3 == 0 ? "" : statusNum.num3 }}
@@ -31,12 +19,7 @@
- +
@@ -45,46 +28,28 @@
- + }" :locale="tablenodata" :rowKey="(record) => record.index"> {{ text }} - 详情 + 详情
- +
- 共{{ pagination.total }}条,跳至页 + 共{{ pagination.total }}条,跳至页
+ + +
+ 老乡详情 +
+ +
@@ -136,6 +101,7 @@ export default { num3: 0, }, data: [], + townsmanDetailVisible: false, // 控制详情弹出框的显示 }; }, // 计算属性 @@ -351,11 +317,18 @@ export default { this.getTownsman(); }, /* - 前往详情页 + 弹出详情页 */ toDetail(e) { + this.townsmanDetailVisible = true; console.log(e); }, + /* + 关闭详情弹出框 + */ + townsmanDetailModalClose() { + this.townsmanDetailVisible = false; + }, }, }; @@ -571,4 +544,10 @@ export default { /deep/ .ant-table-column-sorter-inner { height: 16px !important; } +.townsmanDetailModal { + /deep/ .ant-modal-header { + background-color: #f5f5f5; + border-bottom: 0px solid #000; + } +}