diff --git a/src/assets/img/shuju/people/arrow-double-left.png b/src/assets/img/shuju/people/arrow-double-left.png new file mode 100644 index 00000000..9e54a25b Binary files /dev/null and b/src/assets/img/shuju/people/arrow-double-left.png differ diff --git a/src/assets/img/shuju/people/arrow-double-right.png b/src/assets/img/shuju/people/arrow-double-right.png new file mode 100644 index 00000000..cce488f6 Binary files /dev/null and b/src/assets/img/shuju/people/arrow-double-right.png differ diff --git a/src/assets/img/shuju/people/huzhu-kuang-you-on.png b/src/assets/img/shuju/people/huzhu-kuang-you-on.png new file mode 100644 index 00000000..ec9ea6aa Binary files /dev/null and b/src/assets/img/shuju/people/huzhu-kuang-you-on.png differ diff --git a/src/assets/img/shuju/people/huzhu-kuang-zuo-on.png b/src/assets/img/shuju/people/huzhu-kuang-zuo-on.png new file mode 100644 index 00000000..2407a327 Binary files /dev/null and b/src/assets/img/shuju/people/huzhu-kuang-zuo-on.png differ diff --git a/src/assets/scss/people.scss b/src/assets/scss/people.scss index 7f30634e..ea88d05f 100644 --- a/src/assets/scss/people.scss +++ b/src/assets/scss/people.scss @@ -214,7 +214,7 @@ .item { position: relative; box-sizing: border-box; - padding-left: 15px; + padding: 0 15px; width: 33%; color: #fff; font-size: 18px; @@ -227,9 +227,7 @@ &::before { position: absolute; left: 0; - top: 0; - bottom: 0; - margin: auto 0; + top: 9px; content: ""; display: block; width: 7px; @@ -246,6 +244,42 @@ height: 1px; border: 1px dashed #1257c9; } + + .tabs { + margin-top: 30px; + display: flex; + align-items: center; + padding-left: 20px; + + .tab-btn { + width: 30px; + text-align: center; + cursor: pointer; + } + + .tab { + margin: 0 5px; + min-width: 76px; + padding: 0 5px; + height: 30px; + background: rgba(255, 255, 255, 0); + border: 1px solid #1257c9; + box-shadow: 0 0 10px 0 inset #1257c9; + border-radius: 2px; + text-align: center; + font-size: 14px; + font-family: PingFang SC; + font-weight: 400; + color: #ffffff; + line-height: 30px; + cursor: pointer; + transition: all ease 0.5s; + &.z-on { + background: linear-gradient(90deg, #1a5afd, #009cff); + box-shadow: none; + } + } + } } } @@ -339,6 +373,7 @@ font-size: 18px; font-family: PingFang SC; font-weight: 500; + cursor: pointer; .rel-name { font-size: 14px; diff --git a/src/views/modules/visual/basicinfo/cpts/people-more.vue b/src/views/modules/visual/basicinfo/cpts/people-more.vue index 1be440e7..b0615e19 100644 --- a/src/views/modules/visual/basicinfo/cpts/people-more.vue +++ b/src/views/modules/visual/basicinfo/cpts/people-more.vue @@ -1,816 +1,247 @@ - - + if (code === 0) { + return data; + } else { + return []; + } + }, + }, +}; + + + diff --git a/src/views/modules/visual/basicinfo/people.vue b/src/views/modules/visual/basicinfo/people.vue index 67cefbb4..50929099 100644 --- a/src/views/modules/visual/basicinfo/people.vue +++ b/src/views/modules/visual/basicinfo/people.vue @@ -33,7 +33,11 @@
人员类别:

- {{ info.personCategory.join("、") }} + {{ + info.personCategory.length == 0 + ? "--" + : info.personCategory.join("、") + }}

@@ -45,7 +49,7 @@
工作单位:

- {{ info.workUnit }} + {{ info.workUnit || "--" }}

@@ -57,7 +61,11 @@
志愿者类别:

- {{ info.volunteerCategory.join("、") }} + {{ + info.volunteerCategory.length == 0 + ? "--" + : info.volunteerCategory.join("、") + }}

@@ -69,7 +77,11 @@
房屋信息:

- {{ info.houseInfo.join("、") }} + {{ + info.houseInfo.length == 0 + ? "--" + : info.houseInfo.join("、") + }}

@@ -80,75 +92,27 @@
经济状况:
-

月薪{{ info.financialSituation.monthlyIncome }}

+

+ 月薪: + {{ + info.financialSituation.monthlyIncome || "--" + }},退休金:{{ + info.financialSituation.retirementAmount || "--" + }} +

-
-
- -
- - 更多信息 -
- -
- -
- - - -
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
- -
- -
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
- -
- -
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
- -
- -
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
所属网格:商区社区第一网格
-
-
-
-
+
@@ -166,7 +130,12 @@
{{ houseInfo.ownerName }}

(户主)

-
+ +
-
- {{ houseInfo.list[0].relation }} +
+ {{ + houseInfo.userList[0].relation + }} ({{ houseInfo.list[0].userName }})({{ houseInfo.userList[0].userName }})
-
+
-
- {{ houseInfo.list[1].relation }} +
+ {{ + houseInfo.userList[1].relation + }} ({{ houseInfo.list[1].userName }})({{ houseInfo.userList[1].userName }})
-
+
-
- {{ houseInfo.list[2].relation }} +
+ {{ + houseInfo.userList[2].relation + }} ({{ houseInfo.list[2].userName }})({{ houseInfo.userList[2].userName }})
-
+
-
- {{ houseInfo.list[3].relation }} +
+ {{ + houseInfo.userList[3].relation + }} ({{ houseInfo.list[3].userName }})({{ houseInfo.userList[3].userName }})
-
+
-
- {{ houseInfo.list[4].relation }} +
+ {{ + houseInfo.userList[4].relation + }} ({{ houseInfo.list[4].userName }})({{ houseInfo.userList[4].userName }})
-
+
-
- {{ houseInfo.list[5].relation }} +
+ {{ + houseInfo.userList[5].relation + }} ({{ houseInfo.list[5].userName }})({{ houseInfo.userList[5].userName }})
@@ -279,12 +298,16 @@ import { Loading } from "element-ui"; //引入Loading服务 import { requestPost } from "@/js/dai/request"; import cptCard from "@/views/modules/visual/cpts/card"; +import peopleMore from "@/views/modules/visual/basicinfo/cpts/people-more"; export default { name: "HomeMap", data() { return { showedMoreInfo: false, + + userId: "", + info: { financialSituation: { monthlyIncome: "", retirementAmount: "" }, gridName: "", @@ -297,22 +320,22 @@ export default { houseInfo: { ownerName: "", - list: [ - { - userId: "", - userName: "", - isSelf: "", - relation: "", - }, + userList: [ + // { + // userId: "", + // userName: "", + // isSelf: "", + // relation: "", + // }, ], }, }; }, props: { - userId: { + uid: { type: String, - default: "", + default: "8ada68cb6f1e4b9a8333348a39ef3aee", }, }, @@ -320,15 +343,20 @@ export default { components: { cptCard, + peopleMore, }, watch: { + uid(id) { + this.userId = id; + }, userId() { this.getApiData(); }, }, async mounted() { + this.userId = this.uid; this.getApiData(); },