Files
sykl-hy/pages/sign/index.wxss

510 lines
8.1 KiB
Plaintext

page {
background-color: #f5f6fa;
}
.sign-top {
background-color: #393f58;
height: 240rpx;
padding: 40rpx;
box-sizing: border-box;
border-radius: 0 0 150rpx 150rpx;
position: relative;
}
.sign-head {
width: 110rpx;
height: 110rpx;
border-radius: 50%;
border: 4rpx solid #FFFFFF;
}
.sign-text {
position: absolute;
left: 0;
top: 0;
width: 100%;
padding: 50rpx 40rpx 40rpx 190rpx;
box-sizing: border-box;
color: #FFFFFF;
}
.sign-tilte {
font-size: 36rpx;
margin-bottom: 10rpx;
}
.sign-tilte text {
color: #f9d093;
padding: 0 5rpx;
font-weight: 600;
}
.sign-tips {
color: #b3b8c9;
font-size: 30rpx;
}
.sign-day {
padding-top: 20rpx;
display: flex;
font-size: 26rpx;
}
.sign-day-label {
width: 42rpx;
height: 42rpx;
line-height: 42rpx;
color: #b3b8c9;
border: 2rpx solid #b3b8c9;
border-radius: 50%;
text-align: center;
margin-right: 20rpx;
}
.sign-calendar {
width: 100%;
position: relative;
top: -80rpx;
left: 0;
padding: 30rpx;
box-sizing: border-box;
}
.calendar-cont {
padding: 40rpx 30rpx;
box-sizing: border-box;
background-color: #FFFFFF;
border-radius: 40rpx 40rpx 0 0;
}
.calendar-title {
font-weight: 600;
margin-bottom: 40rpx;
display: flex;
}
.calendar-title image {
width: 38rpx;
height: 38rpx;
margin-right: 10rpx;
}
.date {
text-align: center;
font-size: 38rpx;
margin-bottom: 30rpx;
font-weight: 600;
}
.week {
display: flex;
}
.week-label {
text-align: center;
font-size: 28rpx;
width: 14.28%;
margin: 15rpx 0;
color: #878b97;
border-bottom: 2rpx solid #ebecf4;
padding-bottom: 30rpx;
}
.day {
flex-wrap: wrap;
display: flex;
}
.day-label {
width: 14.28%;
text-align: center;
line-height: 80rpx;
font-size: 32rpx;
}
.label-block {
display: inline-block;
background-color: transparent;
border-radius: 50%;
width: 56rpx;
height: 56rpx;
line-height: 56rpx;
text-align: center;
border: 2rpx solid transparent;
}
.label-block.active {
border: 2rpx solid transparent;
background-color: #1d37e2;
color: #FFFFFF;
}
.label-block.repair {
color: #9d9d9d;
font-size: 30rpx;
border: 2rpx solid #9d9d9d;
font-weight: normal;
}
.label-block.success {
color: #1d37e2;
font-size: 30rpx;
border: 2rpx solid #1d37e2;
}
.signBtn {
padding: 60rpx 30rpx 0;
}
.btn {
background-color: #1d37e2;
color: #FFFFFF;
text-align: center;
border-radius: 10rpx;
line-height: 90rpx;
}
.btn.active {
background-color: #ededed;
color: #878b97;
}
.tips {
margin-top: 20rpx;
text-align: center;
color: #878b97;
font-size: 32rpx;
}
.tips text {
color: #eb504c;
padding-left: 5rpx;
}
.postertBack {
width: 100vw;
height: 100vh;
position: fixed;
background-color: rgba(0, 0, 0, .6);
left: 0;
top: 0;
z-index: 90;
}
.postert {
width: 100vw;
height: 100vh;
position: fixed;
left: 0;
top: 0;
z-index: 99;
}
.sign-btn {
position: absolute;
top: 80vh;
width: 80%;
left: 10%;
z-index: 999;
}
.remove-btn {
width: 100%;
line-height: 90rpx;
background-color: #bf9960;
color: #FFFFFF;
border-radius: 10rpx;
margin-top: 20rpx;
text-align: center;
font-size: 34rpx;
}
.poster-Cont {
width: 80vw;
height: 74vh;
top: 5vh;
left: 10vw;
position: absolute;
background-color: #FFFFFF;
box-sizing: border-box;
border-radius: 10rpx;
}
.poster-Cont-img {
width: 100%;
height: 100%;
}
.poster-Back {
width: 100%;
height: 68%;
}
.poster-head {
position: absolute;
z-index: 1000;
top: 55rpx;
left: 55rpx;
width: 100rpx;
height: 100rpx;
border-radius: 50%;
}
.poster-time {
position: absolute;
z-index: 100;
top: 40rpx;
right: 50rpx;
color: #FFFFFF;
text-align: center;
}
.poster-time-month {
font-size: 52rpx;
font-weight: 600;
text-shadow: 0 2rpx 3rpx rgba(0, 0, 0, .3);
}
.poster-time-year {
font-size: 30rpx;
text-shadow: 0 2rpx 3rpx rgba(0, 0, 0, .3);
}
.poster-hour {
width: calc(100% - 100rpx);
position: absolute;
z-index: 100;
top: 55%;
left: 50rpx;
line-height: 100rpx;
color: #FFFFFF;
display: flex;
}
.poster-time-branch {
flex: 1;
font-size: 58rpx;
font-weight: 600;
}
.poster-text {
padding: 20rpx 0 30rpx;
box-sizing: border-box;
}
.name {
font-weight: 600;
font-size: 36rpx;
}
.day {
margin-top: 10rpx;
}
.day text {
color: #bf9960;
padding: 0 5rpx;
}
.poster-tips {
font-size: 36rpx;
color: #bf9960;
}
.poster-tips-text {
position: relative;
padding-left: 30rpx;
}
.poster-tips-text::after {
position: absolute;
content: '';
width: 12rpx;
height: 12rpx;
background-color: #bf9960;
transform: rotate(45deg);
left: 0;
top: calc(50% - 6rpx);
}
.poster-code {
position: absolute;
bottom: 30rpx;
right: 30rpx;
width: 130rpx;
height: 130rpx;
z-index: 100;
}
/* canvas */
.canvasImg {
position: absolute;
left: -1000%;
height: 600px;
width: 340px;
}
.posterPop {
position: fixed;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .4);
left: 0;
top: 0;
z-index: 99;
display: none;
}
.posterPop.active {
display: block;
}
.posterCont {
width: 80vw;
height: 60vh;
top: 10vh;
left: 10vw;
z-index: 100;
position: absolute;
padding: 30rpx;
background-color: #FFFFFF;
box-sizing: border-box;
border-radius: 10rpx;
overflow: hidden;
display: none;
}
.posterCont.active {
display: block;
}
.posterCont-back {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 70%;
}
.posterCont-user {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 70%;
padding: 30rpx;
box-sizing: border-box;
}
.posterCont-avatar {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
}
.date {
color: #FFFFFF;
position: absolute;
right: 30rpx;
top: 30rpx;
font-size: 28rpx;
}
.date-day {
font-weight: 600;
font-size: 42rpx;
}
.date-year {
opacity: .8;
}
.date-time {
position: absolute;
width: 100%;
left: 0;
bottom: 0;
padding: 20rpx 30rpx;
box-sizing: border-box;
color: #FFFFFF;
display: flex;
}
.date-time text {
flex: 1;
display: block;
font-size: 42rpx;
}
.other {
position: absolute;
width: 100%;
left: 0;
top: 70%;
padding: 30rpx;
box-sizing: border-box;
}
.other-top {
margin-bottom: 20rpx;
}
.other-name {
font-weight: 600;
margin-bottom: 10rpx;
}
.other-text {
font-size: 28rpx;
}
.other-tips text {
display: block;
color: #ba9963;
font-size: 30rpx;
line-height: 44rpx;
}
.code-img {
position: absolute;
right: 10rpx;
bottom: 30rpx;
width: 160rpx;
height: 160rpx;
}
/* 海报弹出 */
.sign-img-block {
position: fixed;
top: 72vh;
left: calc(10vw - 10rpx);
z-index: 1000;
width: calc(80vw + 20rpx);
display: none;
}
.sign-img-block.active {
display: block;
}
.sign-img-btn {
display: flex;
}
.sign-img-go {
background-color: #FFFFFF;
flex: 2;
margin: 0 10rpx;
border-radius: 10rpx;
line-height: 90rpx;
text-align: center;
}
.sign-img-down {
background-color: #ba9963;
margin: 30rpx 10rpx 0;
text-align: center;
border-radius: 10rpx;
line-height: 90rpx;
color: #FFFFFF;
}