Bladeren bron

公告消息页面提交

lixp11 4 jaren geleden
bovenliggende
commit
7701209e4a

+ 198 - 0
2021/ng-srb/biz/css/base-lxp.css

@ -329,6 +329,11 @@
329 329
  margin-bottom: .1rem;
330 330
}
331 331
332
.feedback-card-reporter,
333
.feedback-card-leader {
334
  padding: 0;
335
}
336
332 337
.feedback-card-content {
333 338
  margin: 0 .15rem;
334 339
}
@ -338,6 +343,15 @@
338 343
  margin: 0 .185rem;
339 344
}
340 345
346
.feedback-card-reporter .feedback-card-content,
347
.feedback-card-leader .feedback-card-content {
348
  margin: 0;
349
}
350
351
.ipu-list-item-inner {
352
  margin: 0 .15rem;
353
}
354
341 355
.feedback-card-name {
342 356
  color: #333333;
343 357
  font-weight: bold;
@ -583,3 +597,187 @@
583 597
  height: 1.12rem;
584 598
  background: url(../img/feedback-detail-adopted.png) center/1.13rem no-repeat;
585 599
}
600
601
/* 公告 */
602
.notice-search {
603
  padding: .1rem .18rem;
604
  background: #F5F5F5;
605
}
606
607
.notice-search-content {
608
  position: relative;
609
  height: 100%;
610
}
611
612
.notice-search-content input {
613
  width: 100%;
614
  border: 0;
615
  margin: 0;
616
  padding: 0 .35rem;
617
  font-size: .12rem;
618
  font-weight: 500;
619
  line-height: .32rem;
620
  background: #FFFFFF;
621
  border: 1px solid #EBEBEB;
622
  border-radius: .16rem;
623
}
624
625
.notice-search-logo {
626
  position: absolute;
627
  left: .1rem;
628
  top: 50%;
629
  width: .155rem;
630
  height: .155rem;
631
  margin-top: -.0775rem;
632
  background: url(../img/notice-search-logo.png) center/.155rem no-repeat;
633
}
634
635
.notice-search-remove {
636
  position: absolute;
637
  right: .1rem;
638
  top: 50%;
639
  width: .155rem;
640
  height: .155rem;
641
  margin-top: -.0775rem;
642
  background: url(../img/notice-search-remove.png) center/.155rem no-repeat;
643
}
644
645
.notice-list {
646
  margin: 0 .15rem;
647
}
648
649
.notice-item {
650
  background: #FFFFFF;
651
  border: 1px solid #E0E0E0;
652
  border-radius: .03rem;
653
  padding: .16rem .15rem .16rem .1rem;
654
  margin-bottom: .125rem;
655
}
656
657
.notice-item-preview {
658
  padding-bottom: .11rem;
659
}
660
661
.notice-item-preview-title {
662
  position: relative;
663
  font-size: .13rem;
664
  font-weight: bold;
665
  color: #333333;
666
  line-height: .14rem;
667
  margin-bottom: .15rem;
668
}
669
670
.notice-item-preview-title.ipu-list-item-link:after {
671
  width: 0.1rem;
672
  background-size: .1rem;
673
}
674
675
.notice-item-preview-desc {
676
  font-size: .12rem;
677
  font-weight: 500;
678
  color: #999999;
679
  line-height: 1;
680
}
681
682
.notice-item-detail {
683
  display: flex;
684
  justify-content: space-between;
685
  padding-top: .15rem;
686
}
687
688
.notice-item-detail-tag {
689
  margin-left: .015rem;
690
}
691
692
.notice-item-detail-tag span {
693
  font-size: .12rem;
694
  font-weight: 500;
695
  color: #FFFFFF;
696
  line-height: .135rem;
697
  background: #919191;
698
  border-radius: .025rem;
699
  margin-right: .05rem;
700
  padding: 0 .025rem;
701
}
702
703
/* 公告-详情 */
704
.notice-detail-content {
705
  margin-top: .1rem;
706
}
707
708
.notice-detail-card {
709
  background: #FFFFFF;
710
  padding: .15rem;
711
}
712
713
.notice-detail-head {
714
  padding-bottom: .1rem;
715
}
716
717
.notice-detail-title {
718
  font-size: .18rem;
719
  font-weight: bold;
720
  color: #333333;
721
  line-height: .19rem;
722
}
723
724
.notice-detail-date {
725
  font-size: .12rem;
726
  font-weight: 400;
727
  color: #666666;
728
  line-height: .32rem;
729
}
730
731
.notice-detail-body {
732
  font-size: .15rem;
733
  line-height: .25rem;
734
  margin-top: .13rem;
735
}
736
737
.notice-detail-images img {
738
  width: 100%;
739
  margin: .18rem 0;
740
}
741
742
.notice-detail-doc {
743
  font-size: .12rem;
744
  padding-top: .125rem;
745
}
746
747
.notice-detail-doc>div {
748
  height: .45rem;
749
}
750
751
.notice-detail-doc-icon {
752
  display: inline-block;
753
  width: .2rem;
754
  height: .2rem;
755
  background-position: center center;
756
  background-repeat: no-repeat;
757
  margin-left: .04rem;
758
  margin-right: .085rem;
759
}
760
761
.doc-icon-word {
762
  background-image: url(../img/notice-detail-icon-word.png);
763
  background-size: .185rem;
764
}
765
766
.doc-icon-pdf {
767
  background-image: url(../img/notice-detail-icon-pdf.png);
768
  background-size: .19rem;
769
}
770
771
.notice-detail-doc-name {
772
  color: #999999;
773
}
774
775
.notice-detail-doc-download {
776
  min-width: .37rem;
777
  height: .19rem;
778
  font-size: inherit;
779
  line-height: .19rem;
780
  background: #00A2EA;
781
  border-radius: .025rem;
782
  padding: 0 .07rem 0 .065rem;
783
}

BIN
2021/ng-srb/biz/img/notice-detail-icon-pdf.png


BIN
2021/ng-srb/biz/img/notice-detail-icon-word.png


BIN
2021/ng-srb/biz/img/notice-search-logo.png


BIN
2021/ng-srb/biz/img/notice-search-remove.png


+ 5 - 0
2021/ng-srb/biz/js/pages/notice-detail.js

@ -0,0 +1,5 @@
1
require(["ipuUI", "jquery"], function (ipuUI, $) {
2
  $.sizeReady(function () {
3
    //
4
  });
5
});

+ 60 - 0
2021/ng-srb/biz/js/pages/notice.js

@ -0,0 +1,60 @@
1
require(["ipuUI", "jquery"], function (ipuUI, $) {
2
  $.sizeReady(function () {
3
4
    // 清空搜索栏
5
    $(".notice-search-remove").click(function () {
6
      $(".notice-search input").val('');
7
    })
8
9
    // 下滑刷新
10
    var pageNo = 0; // 查询页数,查询前有做++处理,第一次查询时值为1
11
    var pageSize = 10; // 每页数据多少条
12
    var queryNo = 0; // 查询编号计数器(重要)
13
14
    // 模拟用代码开始,正式代码没有这段
15
    var totalPage = 3;  // 总页数,可修改total为0,查看没有数据时的展示
16
    var listObj = $(".notice-list");
17
    var contentHtml = $(".notice-item:lt(" + pageSize + ")", listObj).clone(); // 测试用,复制10条数据
18
    listObj.empty();  // 移除初始的数据
19
    // 模拟用代码结束
20
21
    // 初始化下拉刷新,若组件不是因为加载数据时发生内容变化,需要调用组件的refresh()方法刷新,否则可能导致内容滚动不正常
22
    var myRefresh = ipuUI.refresh("#refresh", {
23
      bottomLoadFun: function () { // 加载更多
24
        console.log('加载更多'); // 手势按住上移,内容往上翻动
25
        loadData();
26
      }
27
    });
28
29
    // 加载数据
30
    function loadData(refresh) {  // refresh:true表示是刷新加载,false或没有值表示是底部加载
31
      var localQueryNo = ++queryNo;       // 记录当前查询计数器
32
      $('.no-result-msg').hide();    // 隐藏没有数据的提示
33
34
      setTimeout(function () { // 模拟延时加载
35
        pageNo++;                           // 更新查询页数
36
        if (localQueryNo == queryNo) { // 检查查询计数器是否变化,变化则表示当前查询是历史查询,不用处理(变成历史查询一般是因为发生了刷新操作或用户手操作执行了新的查询)
37
38
          myRefresh.enableBottom(pageNo < totalPage); // 是否有一下页数据,若返回结果没有总数,条件可变更为判断返回数据长度是否等于pageSize
39
40
          if (totalPage == 0) {   // 是否有数据返回,若返回结果没有总数,条件可变更为判断是否为第一页且返回数据长度为0或没有数据结果返回
41
            $('.no-result-msg').show();  // 未返回显示没有数据的提示
42
          } else {
43
            if (refresh) {                 // 刷新操作需要清空已有内容
44
              listObj.empty();
45
            }
46
            contentHtml.clone().appendTo(listObj);    // 添加新的数据
47
          }
48
49
          myRefresh.endLoading();   //最后调用,结束加载画面
50
        }
51
52
        // 进入意见反馈详情页
53
        $(".notice-item").click(function () {
54
          // 
55
          location.href = "notice-detail.html";
56
        });
57
      }, 1000);
58
    }
59
  });
60
});

+ 77 - 0
2021/ng-srb/notice-detail.html

@ -0,0 +1,77 @@
1
<!DOCTYPE html>
2
<html>
3
<head>
4
  <title>公告消息</title>
5
  <meta charset="utf-8">
6
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
7
  <link rel="stylesheet" type="text/css" href="ipu/ui/css/ipuUI.css">
8
  <link rel="stylesheet" type="text/css" href="biz/css/base.css">
9
10
  <script src="ipu/lib/requirejs/require.js"></script>
11
  <script src="biz/js/require-config.js"></script>
12
</head>
13
<body class="pages-notice-detail">
14
15
  <div class="ipu-flex-vertical ipu-flex-row">
16
    <div class="ipu-flex-col">
17
      <header class="ipu-toolbar">
18
        <h1 class="ipu-toolbar-title">公告消息</h1>
19
        <a class="ipu-fn-left common-page-back" href="javascript:history.back();">
20
          <i class="common-back-icon"></i>
21
        </a>
22
      </header>
23
    </div>
24
25
    <div class="ipu-flex-col ipu-flex-col-auto">
26
      <div class="ipu-flex-content notice-detail-content">
27
        <div class="notice-detail-card">
28
29
          <div class="notice-detail-head ipu-fn-bd-b">
30
            <div class="notice-detail-title">2021年春节期间系统调整升级公告!</div>
31
            <div class="notice-detail-date">2021-10-30 09:53</div>
32
          </div>
33
34
          <div class="notice-detail-body">
35
            尊敬的用户:<br>&nbsp;&nbsp;&nbsp;&nbsp;
36
            为向你提供优质的服务,我司将于2021年01月
37
            30日17: 00对收入宝进行系统升级,升级期间地
38
            市暂停所有业务办理和业务查询。营业厅、10086
39
            服务热线仅受理紧急停机业务,在线客服将暂停,造
40
            成不便,敬请谅解。由衷感谢您对我公司的理解和支
41
            持。
42
          </div>
43
44
          <div class="notice-detail-images">
45
            <img src="temp/02.jpg">
46
          </div>
47
48
          <div class="notice-detail-doc ipu-list ipu-fn-bd-t">
49
            <div class="ipu-flex ipu-flex-justify-space ipu-flex-align-center">
50
              <div class="ipu-flex ipu-flex-align-center">
51
                <i class="notice-detail-doc-icon doc-icon-word"></i>
52
                <span class="notice-detail-doc-name">
53
                  系统公告word文件(<span class="notice-detail-doc-size">1.8MB</span>)
54
                </span>
55
              </div>
56
              <a href="javascript:;" class="notice-detail-doc-download  ipu-btn">下载</a>
57
            </div>
58
59
            <div class="ipu-flex ipu-flex-justify-space ipu-flex-align-center">
60
              <div class="ipu-flex ipu-flex-align-center">
61
                <i class="notice-detail-doc-icon doc-icon-pdf"></i>
62
                <span class="notice-detail-doc-name">
63
                  系统公告pdf文件(<span class="notice-detail-doc-size">895KB</span>)
64
                </span>
65
              </div>
66
              <a href="javascript:;" class="notice-detail-doc-download ipu-btn">下载</a>
67
            </div>
68
          </div>
69
        </div>
70
      </div>
71
    </div>
72
73
  </div>
74
75
  <script src="biz/js/pages/notice-detail.js"></script>
76
</body>
77
</html>

+ 93 - 0
2021/ng-srb/notice.html

@ -0,0 +1,93 @@
1
<!DOCTYPE html>
2
<html>
3
<head>
4
  <title>公告消息</title>
5
  <meta charset="utf-8">
6
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
7
  <link rel="stylesheet" type="text/css" href="ipu/ui/css/ipuUI.css">
8
  <link rel="stylesheet" type="text/css" href="biz/css/base.css">
9
10
  <script src="ipu/lib/requirejs/require.js"></script>
11
  <script src="biz/js/require-config.js"></script>
12
</head>
13
<body class="pages-notice">
14
15
  <div class="ipu-flex-vertical ipu-flex-row">
16
    <div class="ipu-flex-col">
17
      <header class="ipu-toolbar">
18
        <h1 class="ipu-toolbar-title">公告消息</h1>
19
        <a class="ipu-fn-left common-page-back" href="javascript:history.back();">
20
          <i class="common-back-icon"></i>
21
        </a>
22
      </header>
23
      <div class="notice-search">
24
        <div class="notice-search-content">
25
          <i class="notice-search-logo"></i>
26
          <input type="text">
27
          <i class="notice-search-remove"></i>
28
        </div>
29
      </div>
30
    </div>
31
32
    <div class="ipu-flex-col ipu-flex-col-auto">
33
      <div class="ipu-flex-content" id="refresh">
34
        <div class="ipu-refresh-wrapper">
35
          <div class="ipu-refresh-content">
36
            <div class="notice-list">
37
              <div class="notice-item">
38
                <div class="notice-item-preview ipu-fn-bd-b">
39
                  <div class="notice-item-preview-title ipu-fn-row ipu-list-item-link">2021年春节期间系统调整升级公告!</div>
40
                  <div class="notice-item-preview-desc ipu-fn-row">为向你提供更优质的服务,我司将于2021年2月8日进行紧</div>
41
                </div>
42
                <div class="notice-item-detail">
43
                  <div class="notice-item-detail-tag">
44
                    <span>图片</span>
45
                    <span>PDF</span>
46
                    <span>Word</span>
47
                  </div>
48
                  <div class="notice-item-detail-date">2021.01.20</div>
49
                </div>
50
              </div>
51
52
              <div class="notice-item">
53
                <div class="notice-item-preview ipu-fn-bd-b">
54
                  <div class="notice-item-preview-title ipu-fn-row ipu-list-item-link">2021年春节期间系统调整升级公告!</div>
55
                  <div class="notice-item-preview-desc ipu-fn-row">为向你提供更优质的服务,我司将于2021年2月8日进行紧</div>
56
                </div>
57
                <div class="notice-item-detail">
58
                  <div class="notice-item-detail-tag">
59
                    <span>图片</span>
60
                    <span>PDF</span>
61
                    <span>Word</span>
62
                  </div>
63
                  <div class="notice-item-detail-date">2021.01.19</div>
64
                </div>
65
              </div>
66
67
              <div class="notice-item">
68
                <div class="notice-item-preview ipu-fn-bd-b">
69
                  <div class="notice-item-preview-title ipu-fn-row ipu-list-item-link">2021年春节期间系统调整升级公告!</div>
70
                  <div class="notice-item-preview-desc ipu-fn-row">为向你提供更优质的服务,我司将于2021年2月8日进行紧</div>
71
                </div>
72
                <div class="notice-item-detail">
73
                  <div class="notice-item-detail-tag">
74
                    <span>图片</span>
75
                    <span>PDF</span>
76
                    <span>Word</span>
77
                  </div>
78
                  <div class="notice-item-detail-date">2021.01.18</div>
79
                </div>
80
              </div>
81
82
            </div>
83
            <div class="no-result-msg ipu-txt-center">当前公告为空</div>
84
          </div>
85
        </div>
86
      </div>
87
    </div>
88
89
  </div>
90
91
  <script src="biz/js/pages/notice.js"></script>
92
</body>
93
</html>