From 941031591dd853111abe7b639451a246c51eeace Mon Sep 17 00:00:00 2001 From: lisl <1223762861@qq.com> Date: Thu, 2 Dec 2021 18:08:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=82=B9=E5=87=BB=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=9A=90=E8=97=8F=EF=BC=8C=E5=8F=96=E6=B6=88=E7=AE=AD?= =?UTF-8?q?=E5=A4=B4=EF=BC=8C=E5=8F=96=E6=B6=88=E6=97=B6=E9=97=B4=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8C=89=E9=92=AE=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontCode2/sunshine_levy/src/views/index.vue | 180 ++++++++++++++++++ .../sunshine_levy/src/views/project/index.vue | 4 - .../src/views/report/agreement.vue | 19 +- 3 files changed, 197 insertions(+), 6 deletions(-) diff --git a/FrontCode2/sunshine_levy/src/views/index.vue b/FrontCode2/sunshine_levy/src/views/index.vue index 5701a37..a79cef7 100644 --- a/FrontCode2/sunshine_levy/src/views/index.vue +++ b/FrontCode2/sunshine_levy/src/views/index.vue @@ -50,6 +50,8 @@ {{ item.name }} + +
@@ -57,6 +59,8 @@
{{ item.currentState }} + +
@@ -95,6 +99,8 @@
分户评估结果 + +
补偿结果 + +
{ console.log(error); }); + }, + + /** + * @项目折叠与隐藏 + */ + + setDisplay() { + $(".absolute").click(e => { + if ( + $(e.target.parentNode.parentNode) + .find(".projectCenter") + .css("display") == "none" + ) { + $(e.target.parentNode.parentNode) + .find(".projectCenter") + .css("display", "block"); + + $(e.target.parentNode) + .find("i") + .css("transform", "rotate(45deg)"); + } else { + $(e.target.parentNode.parentNode) + .find(".projectCenter") + .css("display", "none"); + + $(e.target.parentNode) + .find("i") + .css("transform", "rotate(-45deg)"); + } + }); + + $(".absolute0").click(e => { + if ( + $(e.target.parentNode.parentNode.parentNode) + .find(".projectCenter") + .css("display") == "none" + ) { + $(e.target.parentNode.parentNode.parentNode) + .find(".projectCenter") + .css("display", "block"); + + $(e.target.parentNode) + .find("i") + .css("transform", "rotate(45deg)"); + } else { + $(e.target.parentNode.parentNode.parentNode) + .find(".projectCenter") + .css("display", "none"); + + $(e.target.parentNode) + .find("i") + .css("transform", "rotate(-45deg)"); + } + }); + + $(".absolute1").click(e => { + if ( + $(e.target.parentNode.parentNode) + .find(".assessCenter1") + .css("display") == "none" + ) { + $(e.target.parentNode.parentNode) + .find(".assessCenter1") + .css("display", "block"); + + $(e.target.parentNode) + .find("i") + .css("transform", "rotate(45deg)"); + } else { + $(e.target.parentNode.parentNode) + .find(".assessCenter1") + .css("display", "none"); + + $(e.target.parentNode) + .find("i") + .css("transform", "rotate(-45deg)"); + } + }); + + $(".absolute2").click(e => { + if ( + $(e.target.parentNode.parentNode) + .find(".assessCenter2") + .css("display") == "none" + ) { + $(e.target.parentNode.parentNode) + .find(".assessCenter2") + .css("display", "block"); + + $(e.target.parentNode) + .find("i") + .css("transform", "rotate(45deg)"); + } else { + $(e.target.parentNode.parentNode) + .find(".assessCenter2") + .css("display", "none"); + + $(e.target.parentNode) + .find("i") + .css("transform", "rotate(-45deg)"); + } + }); } } }; @@ -661,11 +773,13 @@ export default { justify-content: space-between; height: 41px; background: url(../assets/img/project_bg.png) no-repeat 0 -2px/101% 120%; + position: relative; > :nth-child(1) { display: flex; align-items: center; width: 50%; height: 100%; + position: relative; .projectIcon { display: flex; align-items: center; @@ -685,6 +799,25 @@ export default { overflow: hidden; text-overflow: ellipsis; } + + i { + display: inline-block; + + height: 9px; + width: 9px; + border-right: 2px solid white; + border-bottom: 2px solid white; + transform: rotate(45deg); + margin-left: 7px; + } + + > :last-child { + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + } } .projectRight { display: flex; @@ -712,6 +845,13 @@ export default { line-height: 27px; } } + > :last-child { + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + } } .projectTitle { font-family: PingFangSC-Semibold, PingFang SC; @@ -757,6 +897,7 @@ export default { align-items: center; height: 25px; padding: 25px 10px 0px; + position: relative; .van-image { width: 24px; height: 24px; @@ -769,6 +910,25 @@ export default { font-weight: 400; color: #2468f2; } + + i { + display: inline-block; + + height: 8px; + width: 8px; + border-right: 2px solid #2468f2; + border-bottom: 2px solid #2468f2; + transform: rotate(45deg); + margin-left: 7px; + } + + > :last-child { + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + } } .assessCenter1 { margin: 25px 16px 22px; @@ -797,6 +957,7 @@ export default { align-items: center; height: 25px; padding: 0 10px; + position: relative; .van-image { width: 24px; height: 24px; @@ -808,6 +969,25 @@ export default { font-weight: 400; color: #2468f2; } + + i { + display: inline-block; + + height: 8px; + width: 8px; + border-right: 2px solid #2468f2; + border-bottom: 2px solid #2468f2; + transform: rotate(45deg); + margin-left: 7px; + } + + > :last-child { + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + } } .assessCenter2 { margin: 25px 16px 22px; diff --git a/FrontCode2/sunshine_levy/src/views/project/index.vue b/FrontCode2/sunshine_levy/src/views/project/index.vue index 1d67020..5a3766e 100644 --- a/FrontCode2/sunshine_levy/src/views/project/index.vue +++ b/FrontCode2/sunshine_levy/src/views/project/index.vue @@ -21,7 +21,6 @@
请选择您的征收项目
-
@@ -47,9 +46,6 @@
{{ item.name }}
-
-
{{ item.createRecordTime }}
-
diff --git a/FrontCode2/sunshine_levy/src/views/report/agreement.vue b/FrontCode2/sunshine_levy/src/views/report/agreement.vue index 5dc5999..b42f935 100644 --- a/FrontCode2/sunshine_levy/src/views/report/agreement.vue +++ b/FrontCode2/sunshine_levy/src/views/report/agreement.vue @@ -6,7 +6,6 @@
为您查询到{{ prjListLength }}条结果
@@ -41,11 +40,13 @@
-
+
签订日期:{{ item.signTime }}
+ + 查看协议pdf
@@ -199,6 +200,20 @@ export default { white-space: nowrap; } } + + .smallBox { + display: flex; + flex-direction: column; + height: auto; + + > :nth-child(2) { + text-align: center; + margin-top: 10px; + padding: 2px 5px; + color: #3c70dd; + border: 1px solid #2d6df2; + } + } } } }