日照项目的居民端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

707 lines
11 KiB

@import '../c/conf';
@import '../c/mx';
@keyframes petal_rain {
0% {
transform: translateY(-15rpx);
opacity: 0;
}
35% {
transform: translateY(-8rpx);
opacity: 1;
}
65% {
transform: translateY(0rpx);
opacity: 1;
}
100% {
transform: translateY(5rpx);
opacity: 0;
}
}
@keyframes hint_add_succ {
0% {
opacity: 0.1;
transform: scale(2.5);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@keyframes spin {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
@keyframes send_flower {
0% {
opacity: 1;
}
100% {
transform: translateX(250rpx);
opacity: 0;
}
}
.m-works {
margin-bottom: 20rpx;
padding: 0 30rpx;
background-color: #fff;
border-top: 1px solid $bdc4;
&:last-child {
margin-bottom: 0;
}
.works-t {
padding: 30rpx 0;
line-height: 60rpx;
overflow: hidden;
.author {
float: left;
overflow: hidden;
.avator {
position: relative;
float: left;
width: 60rpx;
height: 60rpx;
border-radius: 3rpx;
image {
position: absolute;
display: block;
box-sizing: border-box;
top: 0;
left: 0;
padding: 1rpx;
width: 60rpx;
height: 60rpx;
}
}
text {
float: left;
margin-left: 12rpx;
font-size: 14px;
color: $fc2;
}
}
.ago {
float: right;
font-size: 13px;
color: $fc4;
}
}
.works-m {
@include cs;
.cnt {
.cnt-img {
position: relative;
display: block;
width: 690rpx;
height: 369rpx;
overflow: hidden;
image {
position: absolute;
display: block;
background-color: #f3f3f3;
}
&.cnt-img-1 {
image {
top: 0;
left: 0;
width: 690rpx;
height: 369rpx;
}
}
&.cnt-img-2 {
image {
width: 340rpx;
height: 369rpx;
&:nth-child(1) {
top: 0;
left: 0;
}
&:nth-child(2) {
top: 0;
right: 0;
}
}
}
&.cnt-img-3 {
image {
width: 340rpx;
height: 180rpx;
&:nth-child(1) {
top: 0;
left: 0;
}
&:nth-child(2) {
bottom: 0;
left: 0;
}
&:nth-child(3) {
top: 0;
right: 0;
height: 369rpx;
}
}
}
&.cnt-img-4 {
image {
width: 340rpx;
height: 180rpx;
&:nth-child(1) {
top: 0;
left: 0;
}
&:nth-child(2) {
top: 0;
right: 0;
}
&:nth-child(3) {
bottom: 0;
left: 0;
}
&:nth-child(4) {
bottom: 0;
right: 0;
}
}
}
&.cnt-img-5 {
image {
width: 180rpx;
height: 180rpx;
&:nth-child(1) {
top: 0;
left: 0;
}
&:nth-child(2) {
width: 310rpx;
height: 369rpx;
top: 0;
left: 0;
bottom: 0;
right: 0;
margin: auto;
}
&:nth-child(3) {
top: 0;
right: 0;
}
&:nth-child(4) {
bottom: 0;
left: 0;
}
&:nth-child(5) {
bottom: 0;
right: 0;
}
}
}
&.cnt-img-6 {
image {
width: 180rpx;
height: 180rpx;
&:nth-child(1) {
top: 0;
left: 0;
}
&:nth-child(2) {
width: 310rpx;
height: 180rpx;
top: 0;
left: 0;
right: 0;
margin: auto;
}
&:nth-child(3) {
top: 0;
right: 0;
}
&:nth-child(4) {
bottom: 0;
left: 0;
}
&:nth-child(5) {
width: 310rpx;
height: 180rpx;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}
&:nth-child(6) {
bottom: 0;
right: 0;
}
}
}
}
.cnt-txt {
margin: 20rpx 0;
// min-height: 90rpx;
line-height: 45rpx;
color: $fc2;
font-size: 14px;
white-space: pre-line;
&.z-on {
max-height: none;
}
}
.cnt-media {
margin-left: -30rpx;
width: 750rpx;
height: 345rpx;
overflow: hidden;
.cnt-media-cover {
position: relative;
display: block;
width: 750rpx;
height: 345rpx;
image {
display: block;
width: 750rpx;
height: 345rpx;
filter: blur(2px);
}
.cnt-media-cover-mask {
position: absolute;
display: block;
top: 0;
left: 0;
width: 750rpx;
height: 345rpx;
background-color: #fff;
opacity: 0.8;
}
}
.m-disk {
margin: -375rpx auto auto;
transform: scale((420/540));
}
}
.m-progress {
margin: 50rpx auto auto;
}
}
.num {
padding: 20rpx 0;
overflow: hidden;
image {
float: right;
width: 40rpx;
height: 40rpx;
}
text {
float: right;
margin-left: 15rpx;
line-height: 40rpx;
font-size: 12px;
color: $fc3;
}
}
}
.works-b {
@include cs;
position: relative;
padding: 25rpx 0;
height: 100rpx;
line-height: 42rpx;
font-size: 14px;
border-top: 1rpx solid $bdc3;
.i-flower {
width: 50rpx;
height: 70rpx;
}
.i-flower1,
.i-flower2 {
width: 100rpx;
height: 90rpx;
}
.i-flower1.z-on {
animation: send_flower 0.3s;
}
.i-petal {
width: 36rpx;
height: 36rpx;
}
.i-arrow {
width: 70rpx;
height: 50rpx;
}
.send-flower {
position: relative;
width: 360rpx;
height: 100rpx;
float: left;
.i-flower1,
.i-flower2 {
position: absolute;
top: 0;
bottom: 0;
left: 40rpx;
margin: auto 0;
}
.btn-send {
position: absolute;
top: 0;
bottom: 0;
left: 140rpx;
margin: auto 0;
width: 200rpx;
height: 70rpx;
line-height: 70rpx;
color: $c2;
&.z-disabled {
color: $fc3;
}
}
.i-arrow {
position: absolute;
top: 0;
bottom: 0;
left: 220rpx;
margin: auto 0;
}
.bar {
position: absolute;
top: 0;
bottom: 0;
left: 100rpx;
margin: auto 0;
width: 300rpx;
height: 20rpx;
background: linear-gradient(to right, rgba(#000, 0.02), rgba(#000, 0.1));
}
}
.my-flower {
position: relative;
float: left;
width: 90rpx;
height: 100rpx;
.i-flower {
position: relative;
z-index: 5;
margin: 5rpx auto 0;
}
.num {
display: block;
font-size: 12px;
color: $fc3;
line-height: 30rpx;
text-align: center;
}
.hint-add-succ {
display: block;
position: absolute;
top: 10rpx;
left: 74rpx;
color: $c2;
font-size: 12px;
opacity: 1;
transform: scale(1);
animation: hint_add_succ 0.6s ease-in;
}
.petal-rain {
position: absolute;
z-index: 1;
top: -30rpx;
left: 12rpx;
width: 60rpx;
height: 60rpx;
animation: petal_rain 1s ease-in infinite;
.i-petal {
position: absolute;
}
.i-petal-1 {
left: 0;
bottom: 0;
opacity: 0.7;
}
.i-petal-2 {
right: -8rpx;
bottom: 10rpx;
transform: scale((26/36));
opacity: 0.5;
}
.i-petal-3 {
top: -14rpx;
left: 13rpx;
transform: scale((16/36));
opacity: 0.3;
}
}
}
.take-flower {
position: relative;
float: right;
width: 200rpx;
height: 100rpx;
.take-flower-num {
@include cs;
position: absolute;
top: 0;
right: 0;
width: 72rpx;
height: 36rpx;
z-index: 10;
image {
display: block;
float: left;
width: 36rpx;
height: 36rpx;
&.z-ing {
transform-origin: center;
animation: spin 1.2s linear infinite;
}
}
text {
display: block;
float: right;
width: 36rpx;
text-align: right;
line-height: 30rpx;
color: $c2;
font-size: 12px;
opacity: 1;
transform: scale(1);
animation: hint_add_succ 0.6s ease-in;
}
}
.btn-take {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
width: 170rpx;
height: 70rpx;
line-height: 70rpx;
text-align: center;
border: 1rpx solid #e5e5e5;
border-radius: 70rpx;
font-size: 14px;
color: $c2;
&.z-disabled {
color: $fc3;
background-color: #ebebeb;
border-color: #ebebeb;
}
}
}
image {
display: block;
}
}
.works-b2 {
padding-bottom: 30rpx;
background-color: #fff;
.send-user-list {
.sul-top {
@include cs;
line-height: 100rpx;
padding-top: 20rpx;
.sul-title {
@include cs;
position: relative;
float: left;
.sul-flower {
position: relative;
float: left;
top: -20rpx;
width: 80rpx;
height: 120rpx;
margin-right: 10rpx;
image {
position: absolute;
display: block;
}
.i-flower {
bottom: 5rpx;
left: 0;
right: 0;
margin: 0 auto;
width: 50rpx;
height: 70rpx;
}
.i-petal-1 {
top: 30rpx;
left: 6rpx;
width: 36rpx;
height: 36rpx;
opacity: 0.7;
}
.i-petal-2 {
top: 20rpx;
right: 10rpx;
width: 30rpx;
height: 30rpx;
opacity: 0.5;
}
.i-petal-3 {
top: 6rpx;
left: 28rpx;
width: 20rpx;
height: 20rpx;
opacity: 0.3;
}
}
text {
display: block;
float: left;
font-size: 14px;
color: $fc1;
&.z-stress {
font-size: 12px;
color: $fc3;
}
}
}
.sul-btn {
float: right;
position: relative;
top: 25rpx;
line-height: 50rpx;
text {
display: block;
float: left;
margin-left: 5rpx;
font-size: 14px;
color: $fc3;
}
image {
display: block;
float: left;
width: 50rpx;
height: 50rpx;
}
}
}
.sul-list {
overflow: hidden;
width: 100%;
.item {
position: relative;
display: block;
float: left;
margin-right: 40rpx;
width: 80rpx;
height: 80rpx;
&:last-child {
margin-right: 0;
}
image {
position: absolute;
display: block;
top: 0;
left: 0;
width: 80rpx;
height: 80rpx;
}
}
}
}
}
}