Ver Código Fonte

更多跳转

zengqiao 5 anos atrás
pai
commit
d07ac38946

+ 5 - 34
2019/scaffold-project-demo/biz/js/index.js

@ -19,50 +19,16 @@ require(['jquery', 'ipuUI', 'dragsort', 'iScroll', 'Hammer',"../biz/js/component
19 19
20 20
    // 首页
21 21
    (function () {
22
      // 历史用户
23
      $(".history-user").click(function () {
24
        $(".user-query-input").val($.trim($(this).text())).addClass("input-value");
25
      });
26
27
      $(".user-query-input").change(function () {
28
        $(this).toggleClass("input-value", $(this).val() != '');
29
      });
30
31
      // 查询用户
32
      $(".btn-user-query").click(function () {
33
        $(".pages-index-home").addClass("pages-index-home-user");
34
      });
35
36
      // 首页切换用户
37
      $(".bizUser-change").click(function () {
38
        navBar.show(0);
39
        $(".pages-index-home").removeClass("pages-index-home-user");
40
        $(".user-query-input").val("");
41
        $(".pages-index-home .page-content").scrollTop(0);
42
      });
43
44 22
      // 进入公告页
45 23
      $(".sys-msg-block").click(function () {
46 24
        window.location.href = "notice-list.html";
47 25
      });
48 26
49
      // 人脸识别
50
      $(".face-recognise").click(function () {
51
        window.location.href = "person-by-face.html";
52
      });
53
54 27
      // 进入套餐页
55 28
      $(".query-user-medal").click(function () {
56 29
        window.location.href = "package-detail.html";
57 30
      });
58 31
59
      // // 热推活动
60
      // ipuUI.hammerCarousel(".hot-discount", {
61
      //   loop: false, callBack: function (index) {
62
      //     $(".index-block-discount .carousel-indicator li:eq(" + index + ")").addClass("current").siblings(".current").removeClass("current");
63
      //   }
64
      // });
65
66 32
      // 消息轮播
67 33
      var itemSize = 2;  // 一屏显示消息数量
68 34
      var totalSize = $(".msg-list li").size();
@ -97,6 +63,11 @@ require(['jquery', 'ipuUI', 'dragsort', 'iScroll', 'Hammer',"../biz/js/component
97 63
        updateNews();
98 64
99 65
66
        // 首页更多,跳转到菜单页
67
        $(".category-to-more").on("click",function(){
68
          navBar.show(1);
69
        });
70
100 71
        // 点活动,未受理页时,进用户输入号码页面
101 72
        $(".index-block-discount").on("click", ".discount-item", function () {
102 73
          window.location.href = 'input-phone-num.html';

+ 1 - 1
2019/scaffold-project-demo/index.html

@ -202,7 +202,7 @@
202 202
                              </a>
203 203
                            </li>
204 204
                            <li>
205
                              <a href="menu.html" class="category-to-more">
205
                              <a href="javascript:;" class="category-to-more">
206 206
                                <div class="menu-icon">
207 207
                                  <i class="iconfont-material mdi mdi-dots-horizontal"></i>
208 208
                                </div>