businessCell.sass 6.42 KB
.businessPage {


  // background-color: gold;
  .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--fontSize80);
    padding: 0 var(--fontSize20);
    // background-color: #fff;
    // border-bottom: .5px solid #d8d4d4;
    // border-top: .5px solid #d8d4d4;

    // #d8d4d4
    .addFields {
      font-size: var(--fontSize24);
      color: #333;
      display: flex;
      align-items: center;
      height: 100%;
    }

    .addIcon {
      width: var(--fontSize24);
      height: var(--fontSize24);
      // vertical-align: middle;
      margin-right: var(--fontSize6);
    }

    .tips {
      display: flex;
      margin-left: auto;
      align-items: center;
      height: 100%;
      color: #999;
      font-size: var(--fontSize24);
    }

    .tipsIcon {
      width: var(--fontSize24);
      height: var(--fontSize24);
      margin-left: var(--fontSize8);
    }


  }

  .cell {
    margin: var(--fontSize20);
    // padding: var(--fontSize20);
    padding-bottom: var(--fontSize20);
    font-size: var(--fontSize24);
    background-color: #fff;
    border-bottom: .5px solid #d8d4d4;

    .todayData {
      display: flex;
      justify-content: space-between;
      margin-bottom: var(--fontSize10);
      font-size: var(--fontSize28);
      color: #333333;

      .num {
        font-weight: 600;
        display: flex;
        align-items: center;

        image {
          width: var(--fontSize10);
          height: var(--fontSize6);
        }
      }
    }

    .monthData {
      display: flex;
      justify-content: space-between;
      color: #999999;
      font-size: var(--fontSize24);

      .num {
        display: flex;
        align-items: center;

        image {
          width: var(--fontSize15);
          height: var(--fontSize9);
          margin: var(--fontSize4) var(--fontSize6) 0 var(--fontSize10);
        }
      }
    }
  }


  .otherCell {
    display: flex;
    justify-content: space-between;
    margin: var(--fontSize40) var(--fontSize20) 0;
    padding-bottom: var(--fontSize40);
    font-size: var(--fontSize28);
    color: #333;
    background-color: #fff;
    border-bottom: .5px solid #d8d4d4;

    .num {
      font-weight: 600;
      position: relative;
    }
  }

  .otherAdd {
    height: var(--fontSize122);
    // padding: 0 var(--fontSize20);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    // border-bottom: 1px solid #d8d4d4;

    .otherData {
      display: flex;
      align-items: center;

    }

    .label {
      font-size: var(--fontSize28);
      margin-right: var(--fontSize32);
    }

    .check {
      display: flex;
      align-items: center;
      color: #347BFF;
      font-size: var(--fontSize24);

      .checkIcon {
        width: var(--fontSize24);
        height: var(--fontSize24);
        margin-right: var(--fontSize8);
      }
    }

    .placeholder {
      color: #C3C3C3;
      font-size: var(--fontSize28);
    }

    .placeholder.num {
      // font-size: ;
      font-weight: 600;
      font-size: var(--fontSize28);
      color: #333333;
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
    }

    .placeholder.placeholderText {
      color: #C3C3C3;
      font-size: var(--fontSize24);
      font-weight: 400;
    }

  }

  .touch-item {
    margin: 0 var(--fontSize20);
    display: flex;
    justify-content: space-between;
    width: calc(100% - var(--fontSize40));
    overflow: hidden;
    // background-color: #f1554c;
    // border-bottom: 1px solid #d8d4d4;
    border-bottom: .5px solid #d8d4d4;
  }

  .content {
    width: 100%;
    margin-right: 0;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
    -webkit-transform: translateX(90px);
    transform: translateX(90px);
    margin-left: -90px;

    .item {
      display: flex;
    }
  }

  .touch-item:nth-last-child(1) {
    // background-color: red;
    border-radius: 0 0 var(--fontSize16) var(--fontSize16);
    border-bottom: 0;
  }

  .del {
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #f1554c;
    -webkit-transform: translateX(90px);
    transform: translateX(90px);
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
    font-size: var(--fontSize28);
  }

  .confirm {
    /* 定义动画 */
    // background-color: chocolate;
    animation-duration: .5s;
    /* 动画时间 */
    animation-name: fadein;
    /* 关键帧名字 */
    // -webkit-transform: translateX(90px);
    // transform: translateX(90px);
    // -webkit-transition: all 0.4s;
    // transition: all 0.4s;
    // width: 90px;
    // display: flex;
    // flex-direction: column;
    // align-items: center;
    // justify-content: center;
    // color: #fff;
    // font-size: var(--fontSize28);
  }

  /* 定义关键帧 */
  @keyframes fadein {
    0% {
      opacity: 0;
      transform: translateX(90px);
    }

    100% {
      opacity: 1;
      transform: translateX(0px);
    }
  }

  .touch-move-active .content,
  .touch-move-active .del {

    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  // .touch-move-active .content,
  // .touch-move-active .confirm {
  //   background-color: #f1554c;
  //   -webkit-transform: translateX(0);
  //   transform: translateX(0);
  // }

}

// .businessPage>view:nth-last-child(2) {
//   border-bottom: none;
// }
.cellContainer view:last-child {
  border-bottom: none;
}

// .tipsShow {
//   .item {
//     font-size: var(--fontSize28);
//     margin-bottom: var(--fontSize20);
//   }
// }

.bottomTips {
  height: var(--fontSize92);
  line-height: var(--fontSize92);
  text-align: center;
  font-size: var(--fontSize20);
  color: #666666;
  background: #F8F9F9;
}

.input {
  text-align: right;
  font-size: var(--fontSize28);
  max-width: var(--fontSize240);
  width: var(--fontSize240);
  height: var(--fontSize40);
  // line-height: var(--fontSize122);
  // height: 100%;
  // width: 100%;
}

.placeholder-class {
  color: #C3C3C3;
}

.cellContainer {
  border-radius: var(--fontSize12) var(--fontSize12) 0 0;
  background-color: #fff;
  overflow: hidden;
}