datePicker.wxss 1.88 KB
/* components/datePicker/datePicker.wxss */ 
.picker{
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
}
.bg{
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
}
.box{
  width: 100%;
  position: absolute;
  bottom: -50%;
  left: 0;
  background: #fff;
  z-index: 10000;
}
.show{
  bottom: 0;
  transition:  all 0.35s;
}
.title{
  height: 100rpx;
  position: relative;
  width: 100%;
  text-align: center;
  line-height: 100rpx;
  font-size: 36rpx;
  color: #333333;
  border-bottom: 2rpx solid #eee;
  box-sizing: border-box;
}
.left,.right{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100rpx;
  height: 100rpx;
}
.left .arrow,.right .arrow{
  width: 24rpx;
  height: 24rpx;
  border: 3rpx solid transparent;
  position: absolute;
  top: 40%;
  left: 25%;
}
.left{
  left: 0;
}
.left .arrow{
  border-left-color: #999;
  border-bottom-color: #999;
  transform: rotate(45deg);
  left: 50%;
}
.right{
  right: 0;
}
.right .arrow{
  border-bottom-color: #999;
  border-right-color: #999;
  transform: rotate(-45deg);

}
.time{
  box-sizing: border-box;
  width: 100%;
  height: auto;
}
.day{
  display: inline-block;
  width: calc(100% / 7);
  text-align: center;
  font-size: 36rpx;
  color: #212B35;
  position: relative;

}
.day view{
  width: 56%;
  height: 67%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}
.opacity{
  color: #C4CDD5;
}
.active view{
  color: #fff;
  background: #2F8EF0;
  border-radius: 4rpx;
}
.have{
  position: relative;
}
.have::after{
  content: '';
  position: absolute;
  width: 12rpx;
  height: 12rpx;
  background: red;
  border-radius: 100%;
  top: -10rpx;
  right: -10rpx;
  z-index: 999;
}