zxy преди 1 година
родител
ревизия
96f614fc7b
променени са 2 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 3 0
      nnzwminiapp/pages/publics/leaderInfo/leaderInfo.js
  2. 4 0
      nnzwminiapp/pages/publics/leaderInfo/leaderInfo.wxss

+ 3 - 0
nnzwminiapp/pages/publics/leaderInfo/leaderInfo.js

@@ -20,6 +20,9 @@ Page({
         let item = JSON.parse(decodeURIComponent(options.item));
         item.LDLL = item.LDLL.replace(/\<span/gi, '<span class="fontSize"');
         item.LDFG = item.LDFG.replace(/\<span/gi, '<span class="fontSize"');
+
+        item.LDLL = item.LDLL.replace(/\<p/gi, '<p class="indent"');
+        item.LDFG = item.LDFG.replace(/\<p/gi, '<p class="indent"');
         this.setData({
             leaderInfo: item
         })

+ 4 - 0
nnzwminiapp/pages/publics/leaderInfo/leaderInfo.wxss

@@ -18,4 +18,8 @@ scroll-view ::-webkit-scrollbar {
 
 .fontSize {
   font-size: 28rpx!important;
+}
+
+.indent{
+    text-indent: 56rpx !important;
 }