Sfoglia il codice sorgente

@zengqiao@首页更新

HexOr 4 anni fa
parent
commit
195a9c8f06

+ 78 - 0
2019/bj-zqzt/biz/css/base.css

@ -7578,3 +7578,81 @@ ul li .details-info {
7578 7578
.comment-reason.ipu-form-item>div {
7579 7579
  padding-right: 0;
7580 7580
}
7581
7582
/*更新提醒*/
7583
.update-slide {
7584
  position: absolute;
7585
  top: 100%;
7586
  left: 0;
7587
  right: 0;
7588
  bottom: 0;
7589
  z-index: 200;
7590
  background: rgba(24,26,28,0.62);
7591
  -webkit-transition: top 300ms ease-out;
7592
  transition: top 300ms ease-out;
7593
  display: none;
7594
}
7595
.update-slide.active{
7596
  top: 0;
7597
  display: block;
7598
}
7599
.update-content-area {
7600
  background:rgba(255,255,255,1);
7601
  border-radius:.045rem;
7602
  width: 3.05rem;
7603
  position: relative;
7604
  top: 50%;
7605
  left: 50%;
7606
  transform: translate(-50%,-50%);
7607
  padding: .84rem .25rem .21rem;
7608
}
7609
.update-content-title {
7610
  background-image: linear-gradient(229deg, #3A93FF 0%, #456DFF 100%);
7611
  font-size: .2rem;
7612
  font-weight:bold;
7613
  line-height:.27rem;
7614
  -webkit-background-clip: text;
7615
  background-clip: text;
7616
  -webkit-text-fill-color: transparent;
7617
  text-fill-color: transparent;
7618
  text-align:center;
7619
}
7620
.update-content-body {
7621
  font-size: .13rem;
7622
  color: #8E9399;
7623
  margin: .25rem .09rem;
7624
}
7625
.update-tips {
7626
  margin-top: .2rem;
7627
  font-size: .14rem;
7628
  color: #8E9399;
7629
  text-align: right;
7630
}
7631
.update-tips .ipu-checkbox input[type=checkbox]:checked:before {
7632
   background: #3F93F8;
7633
   border-color: #3F93F8;
7634
 }
7635
.update-content-pic {
7636
  position: absolute;
7637
  top: 0;
7638
  left: 50%;
7639
  width: 1.44rem;
7640
  height: 1.07rem;
7641
  transform: translate(-50%,-50%);
7642
  background: url(../img/update.png) center center no-repeat;
7643
  background-size: contain;
7644
}
7645
.update-close-btn {
7646
  position:absolute;
7647
  top: .18rem;
7648
  right: .18rem;
7649
  color: #8E9399;
7650
}
7651
.update-version {
7652
  font-family: SourceHanSansCN-Medium;
7653
  font-size: .12rem;
7654
  color: #8E9399;
7655
  position:absolute;
7656
  bottom: 0;
7657
  right: .35rem;
7658
}

BIN
2019/bj-zqzt/biz/img/update.png


+ 16 - 0
2019/bj-zqzt/biz/js/index.js

@ -576,6 +576,7 @@ require(['jquery', 'ipuUI', 'echarts', "iScroll", 'LeftSwipe', 'Hammer'], functi
576 576
        location.href = "work-sheet.html";
577 577
      } else if (text == "日志") {
578 578
        console.log("跳转至日志");
579
        $(".update-slide").addClass("active");
579 580
      } else if (text == "楼宇") {
580 581
        location.href = "building-management.html";
581 582
      }
@ -591,5 +592,20 @@ require(['jquery', 'ipuUI', 'echarts', "iScroll", 'LeftSwipe', 'Hammer'], functi
591 592
      }
592 593
    });
593 594
595
    // 我知道了
596
    $(".confirm-btn").click(function () {
597
      $(this).parents(".update-slide").removeClass("active");
598
    });
599
    // 点空白区域关闭更新
600
    $(".update-slide").click(function (e) {
601
      if($(e.target).hasClass("update-slide")){
602
        $(this).removeClass("active");
603
      }
604
    });
605
    // 关闭按钮
606
    $(".update-close-btn").click(function () {
607
      $(this).parents(".update-slide").removeClass("active");
608
    });
609
594 610
  });
595 611
});

+ 22 - 0
2019/bj-zqzt/index.html

@ -812,6 +812,28 @@
812 812
    </div>
813 813
  </div>
814 814
815
  <div class="update-slide active">
816
    <div class="update-content-area">
817
      <div class="update-content-pic"></div>
818
      <i class="iconfont-material icon-close update-close-btn"></i>
819
      <div style="position:relative">
820
        <div class="update-content-title">发现新版本</div>
821
        <div class="update-version">v1.12</div>
822
      </div>
823
      <div class="update-content-body">
824
        1. 新增工单“查进度”功能<br/>
825
        2. 优化语音输入功能<br/>
826
        3. 修复语音输入无法带出键盘,优化体验<br/>
827
      </div>
828
      <div class="ipu-btn common-btn confirm-btn">我知道了</div>
829
      <div class="update-tips">
830
        <label class="ipu-checkbox ipu-checkbox-s ipu-checkbox-square">
831
          <input type="checkbox">下次登录不再提醒
832
        </label>
833
      </div>
834
    </div>
835
  </div>
836
815 837
</div>
816 838
</body>
817 839
</html>