浏览代码

updata js css

huanggang 7 年之前
父节点
当前提交
54d20bfb3f
共有 3 个文件被更改,包括 15 次插入7 次删除
  1. 5 4
      data/resource/mobile/ugc/css/main.css
  2. 1 1
      mobile/control/special.php
  3. 9 2
      mobile/templates/default/ugc/answer.list.php

+ 5 - 4
data/resource/mobile/ugc/css/main.css

@@ -934,8 +934,7 @@ article {
   right: 0;
   background: #F2F2F2;
   z-index: 1500;
-  font-size: 26px;
-  opacity: 0; }
+  font-size: 26px; }
 .appreciate_pop:after {
   content: '';
   width: 35px;
@@ -950,11 +949,9 @@ article {
   margin: 44px auto 0 auto; }
 .appreciate_pop.show {
   -webkit-transition: all .3s ease;
-  opacity: 1;
   -webkit-transform: translate(-750px, 0); }
 .appreciate_pop.close {
   -webkit-transition: all .3s ease;
-  opacity: 0;
   -webkit-transform: translate(750px, 0); }
 .appreciate_pop .discount {
   background: #fff;
@@ -1116,6 +1113,10 @@ article {
   height: 100%;
   border-radius: 100px; }
 .result_list .item .user_msg .user_pro .user_name {
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  width: 280px;
   font-size: 28px;
   color: #4A90E2;
   margin: 7px 0; }

+ 1 - 1
mobile/control/special.php

@@ -753,7 +753,7 @@ class tpl_ugc
         if($count <= 0) return;
 
         $url = BASE_SITE_URL . "/mobile/index.php?act=member_ugc&op=answer_page&client_type=wap&special_id={$specialid}";
-        $str = "<p class=\"look_question_result\" style=\"color: #FF4E4E; line-height: 70px; text-align: center;font-size: 24px;\"><a href=\"{$url}\">查看答题情况>></a></p >";
+        $str = "<p class=\"look_question_result\" style=\"color: #FF4E4E; line-height: 70px; text-align: center;font-size: 26px;\"><a href=\"{$url}\">查看答题情况>></a></p >";
         echo $str;
     }
 }

+ 9 - 2
mobile/templates/default/ugc/answer.list.php

@@ -147,8 +147,15 @@
                         index++;
                     }
 
-                    if (datas['mobile_page'].hasmore && isLoad == false) {
-                        $(window).on('scroll', getData);
+                    if (datas['mobile_page'].hasmore) {
+                        $(window).on('scroll',function(){
+                            var scrollTop = $(this).scrollTop();
+                            var scrollHeight = $(document).height();
+                            var windowHeight = $(this).height();
+                            if (scrollTop + windowHeight == scrollHeight && isLoad == false) {
+                                getData();
+                            }
+                        });
                         page++;
                     }
                     else {