Commit 9c416297 by Jaxon

Merge branch 'feature/statistics' into 'SAAS+V5.8.2'

Feature/statistics

See merge request !14
2 parents 2be09eec c5603062
...@@ -59,6 +59,7 @@ Component({ ...@@ -59,6 +59,7 @@ Component({
expanded: false, expanded: false,
hasMore: false, hasMore: false,
moreHeight: 0, moreHeight: 0,
arrowIcon: "/packageIndex/images/down-arrow-double.png",
tooltipIconPath: "/images/tips-icon.png", tooltipIconPath: "/images/tips-icon.png",
}, },
......
...@@ -150,6 +150,7 @@ ...@@ -150,6 +150,7 @@
font-size: var(--fontSize32); font-size: var(--fontSize32);
line-height: var(--fontSize40); line-height: var(--fontSize40);
color: var(--primary-color); color: var(--primary-color);
min-height: var(--fontSize40);
} }
} }
} }
...@@ -161,19 +162,7 @@ ...@@ -161,19 +162,7 @@
width: 100%; width: 100%;
text-align: center; text-align: center;
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 15%, rgba(255, 255, 255, 0.7) 30%, #ffffff 100%); background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 15%, rgba(255, 255, 255, 0.7) 30%, #ffffff 100%);
} .toggle-more-content {
.toggle-icon {
margin-left: var(--fontSize4);
transform: rotate(90deg);
transition: transform 300ms ease;
}
.toggle-icon.is-expanded {
transform: rotate(-90deg);
}
.toggle-more-content {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -181,14 +170,24 @@ ...@@ -181,14 +170,24 @@
color: rgba(0, 0, 0, 0.9); color: rgba(0, 0, 0, 0.9);
font-size: var(--fontSize24); font-size: var(--fontSize24);
line-height: var(--fontSize40); line-height: var(--fontSize40);
} .toggle-more-text {
.toggle-more-text {
line-height: inherit; line-height: inherit;
font-weight: 400; font-weight: 400;
font-size: var(--fontSize24); font-size: var(--fontSize24);
line-height: var(--fontSize40); line-height: var(--fontSize40);
color: #00000066; color: #00000066;
}
.toggle-icon {
width: var(--fontSize32);
height: var(--fontSize32);
margin-left: var(--fontSize4);
transform: rotate(0deg);
transition: transform 300ms ease;
&.is-expanded {
transform: rotate(-180deg);
}
}
}
} }
.more-collapse { .more-collapse {
......
...@@ -112,12 +112,11 @@ ...@@ -112,12 +112,11 @@
wx:if="{{ hasMore }}"> wx:if="{{ hasMore }}">
<view class="toggle-more-content"> <view class="toggle-more-content">
<view class="toggle-more-text"> <view class="toggle-more-text">
已隐藏{{ hideValue }}项售后成交指标 {{ expanded ? '收起':'已隐藏' }} {{ hideValue }} 项售后成交指标
</view> </view>
<van-icon name="play" <image class="toggle-icon {{ expanded ? 'is-expanded' : '' }}"
size="12px" src="{{ arrowIcon }}"
color="#A2A6B1" mode="aspectFit" />
custom-class="toggle-icon {{ expanded ? 'is-expanded' : '' }}" />
</view> </view>
</view> </view>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!