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 }}
+
+
@@ -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 @@
@@ -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;
+ }
+ }
}
}
}