bayi 1 рік тому
батько
коміт
ff6b489b3b

+ 11 - 0
pages/inviteRanking/index.less

@@ -237,6 +237,7 @@
     border-top-left-radius: 20rpx;
     border-top-right-radius: 20rpx;
     padding-bottom: 30rpx;
+
     .header {
         position: relative;
         padding: 30rpx 0;
@@ -257,6 +258,16 @@
         }
     }
 
+    .copywriting {
+        width: 100%;
+        margin: 200rpx 0rpx;
+        text-align: center;
+        color: white;
+        .text {
+            margin-bottom: 40rpx;
+        }
+    }
+
     .list {
         height: calc(100% - 100rpx);
         padding: 0px 20rpx 20rpx;

+ 5 - 1
pages/inviteRanking/index.wxml

@@ -87,6 +87,10 @@
                 邀请记录
                 <image src="/static/lollipop.png" class="close" bindtap="closeTranscript" />
             </view>
+            <view class="copywriting" wx:if="{{inviteList.length==0}}">
+                <view class="text">别的小伙伴已经拿到大奖啦!</view>
+                <view>快去邀请你的小伙伴为你助力!</view>
+            </view>
             <scroll-view scroll-y="true" class="list" enhanced show-scrollbar='{{false}}'>
                 <view class="item" wx:for="{{inviteList}}" wx:key="eid">
                     <view class="left">
@@ -96,7 +100,7 @@
                     </view>
                     <view class="time">{{filters.formatDate(item.gmtCreated,1)}}</view>
                 </view>
-               
+
             </scroll-view>
         </view>
     </popUp>

+ 9 - 0
pages/inviteRanking/index.wxss

@@ -217,6 +217,15 @@
   height: 50rpx;
   border-radius: 50%;
 }
+.popBox .copywriting {
+  width: 100%;
+  margin: 200rpx 0rpx;
+  text-align: center;
+  color: white;
+}
+.popBox .copywriting .text {
+  margin-bottom: 40rpx;
+}
 .popBox .list {
   height: calc(100% - 100rpx);
   padding: 0px 20rpx 20rpx;