Browse Source

网站评论防止嵌入js代码处理

liting2017 6 years ago
parent
commit
15e3fe122e

+ 13 - 5
src/css/facilitator/facilitator.css

@@ -162,7 +162,7 @@ margin: 0 auto;line-height: 74px;display: none;}
     border-bottom: 2px solid #fff;
     padding-bottom: 5px;
 }
-.listJ li>div p{
+.listJ li>div:nth-child(1) p{
     height: 58px;
     width: 130px;
     overflow: hidden;
@@ -213,23 +213,31 @@ margin: 0 auto;line-height: 74px;display: none;}
     text-align: center;
 }
 .listJ li .listTxt .get{
-    font-size: 14px;
-    color:#fff
+    font-size: 16px;
+    color:#fff;
+    margin-top: 18px;
+    display: inline-block;
+    width: 86px;
+    text-align: center;
 }
 .listJ .Nodata{
     height: 200px;
 }
 
 .listJ .ypTxt {
-   padding:20px 70px; 
+   padding:20px 34px; 
 
 }
 .listJ .ypTxt p{
-    font-size: 18px;
+    font-size: 16px;
     color: #fff;
     margin: 6px 0;
     height: 18px;
     line-height: 18px;
+    overflow: hidden;
+    white-space:nowrap; 
+    text-overflow:ellipsis; 
+    -o-text-overflow:ellipsis;
 }
 
 

+ 1 - 1
src/css/register.css

@@ -59,7 +59,7 @@ margin-bottom:10px;line-height:38px;}
 input{padding-left:10px;}
 .cellcode>a{color:#F18101;}
 #photo{color:#ccc;display: inline-block;padding-left: 0;background: none;text-align: center;border:none}
-#photo_num{display: inline-block;color:#ccc;height: 38px;line-height: 38px;border: none}
+#photo_num{width: 152px;display: inline-block;color:#ccc;height: 38px;line-height: 38px;border: none}
 .leibie{width:120px;height:30px;display:inline-block;color:#F18101;font-size: 1.4rem;
     line-height: 28px;font-weight: bold;padding-left: 20px;position: relative;}
 .leibie input{display:inline-block;width:15px;height:15px;margin-right: 5px;position: absolute;

+ 1 - 1
src/js/newMenu/adviserDetail.js

@@ -117,7 +117,7 @@ $(function () {
                         </div>
                         <div><time>${times}</time></div>
                         <div class="satisfiedContent">
-                            <p>${thisdata.content}</p> 
+                            <p>${(thisdata.content).replace(/<.*?>/g, "")}</p> 
                         </div>
                     </li>`);
                     };

+ 1 - 1
src/js/newMenu/publicComment.js

@@ -82,7 +82,7 @@
                     </div>
                     <div><time>${times}</time></div>
                     <div class="satisfiedContent">
-                        <p>${thisdata.content}</p> 
+                        <p>${(thisdata.content).replace(/<.*?>/g, "")}</p> 
                     </div>
                 </li>`);
                      };

+ 1 - 1
src/js/newMenu/safeguardingDetail.js

@@ -123,7 +123,7 @@ $(function () {
                         </div>
                         <div><time>${times}</time></div>
                         <div class="satisfiedContent">
-                            <p>${thisdata.content}</p> 
+                            <p>${(thisdata.content).replace(/<.*?>/g, "")}</p> 
                         </div>
                     </li>`);
                     };

+ 1 - 1
src/js/newMenu/serviceDetails.js

@@ -160,7 +160,7 @@ $(function () {
                         </div>
                         <div><time>${times}</time></div>
                         <div class="satisfiedContent">
-                            <p>${thisdata.content}</p> 
+                            <p>${(thisdata.content).replace(/<.*?>/g, "")}</p> 
                         </div>
                     </li>`);
                     };