bayi 1 year ago
parent
commit
d2c6bcb720
3 changed files with 5 additions and 5 deletions
  1. 2 1
      components/invite/index.less
  2. 1 3
      components/invite/index.wxml
  3. 2 1
      components/invite/index.wxss

+ 2 - 1
components/invite/index.less

@@ -76,11 +76,12 @@
                 height: 300rpx;
 
                 .content {
-                    padding: 0 80rpx;
+                    padding: 0 70rpx;
                     font-size: 30rpx;
                     color: #7B7B7B;
                     line-height: 52rpx;
                     margin-bottom: 20rpx;
+                    white-space: pre-line;
                     overflow: hidden;
                     text-overflow: ellipsis;
                     -webkit-line-clamp: 5;

+ 1 - 3
components/invite/index.wxml

@@ -19,9 +19,7 @@
             <swiper class="swiper" current="{{current}}" circular indicator-dots="{{true}}"
                 indicator-active-color="#B2B8C3" indicator-color='#E5E5E5' bindchange="swiperChange">
                 <swiper-item wx:for="{{list}}" wx:key="id">
-                    <view class="content">
-                        {{item.text}}
-                    </view>
+                    <view class="content">{{item.text}}</view>
                 </swiper-item>
             </swiper>
             <view class="copy" bindtap="clipboar">

+ 2 - 1
components/invite/index.wxss

@@ -68,11 +68,12 @@
   height: 300rpx;
 }
 .popBox .shareText .swiper .content {
-  padding: 0 80rpx;
+  padding: 0 70rpx;
   font-size: 30rpx;
   color: #7B7B7B;
   line-height: 52rpx;
   margin-bottom: 20rpx;
+  white-space: pre-line;
   overflow: hidden;
   text-overflow: ellipsis;
   -webkit-line-clamp: 5;