bayi 1 year ago
parent
commit
c695092d43

+ 3 - 5
pages/index/index.less

@@ -4,7 +4,7 @@
     padding-bottom: calc(140rpx + env(safe-area-inset-bottom)) !important;
 
     .firstClassify {
-        margin: 50rpx 0rpx;
+        margin: 55rpx 0rpx 35rpx;
         width: 100%;
         box-sizing: border-box;
         display: flex;
@@ -15,13 +15,11 @@
         z-index: 2;
 
         .icon {
-            width: 25%;
-            height: 157rpx;
+            width: 187rpx;
+            height: 164rpx;
         }
     }
 
-
-
     .desktopTips {
         position: fixed;
         z-index: 999;

+ 1 - 1
pages/index/index.wxml

@@ -4,7 +4,7 @@
     <!-- 一级分类 -->
     <view class="firstClassify">
         <image wx:for="{{categoryList}}" wx:key="id" data-item='{{item}}' bindtap="jumpChildClassify" class="icon"
-            src="{{item.icon}}" />
+            src="/static/n2t.png" />
         <image bindtap="showTips" class="icon" src="/static/future.png" />
     </view>
     <!-- 资源 -->

+ 3 - 3
pages/index/index.wxss

@@ -4,7 +4,7 @@
   padding-bottom: calc(140rpx + env(safe-area-inset-bottom)) !important;
 }
 .recommend .firstClassify {
-  margin: 50rpx 0rpx;
+  margin: 55rpx 0rpx 35rpx;
   width: 100%;
   box-sizing: border-box;
   display: flex;
@@ -15,8 +15,8 @@
   z-index: 2;
 }
 .recommend .firstClassify .icon {
-  width: 25%;
-  height: 157rpx;
+  width: 187rpx;
+  height: 164rpx;
 }
 .recommend .desktopTips {
   position: fixed;

+ 11 - 0
pages/ranking/index.less

@@ -181,6 +181,17 @@
                 }
             }
         }
+
+        .null {
+            margin: 80rpx auto;
+            text-align: center;
+            font-size: 34rpx;
+            .nullImg {
+                margin-bottom: 20rpx;
+                width: 223rpx;
+                height: 176rpx;
+            }
+        }
     }
 
     .footer {

+ 4 - 0
pages/ranking/index.wxml

@@ -71,6 +71,10 @@
                     <view class="num"> {{userList[index+3].count}}</view>
                 </view>
             </view>
+            <view class="null" wx:if="{{userList.length<=3}}">
+                <image src="/static/inviteH.png" class="nullImg" />
+                <view>等你来冲榜!</view>
+            </view>
         </scroll-view>
     </view>
     <view class="footer">

+ 10 - 0
pages/ranking/index.wxss

@@ -154,6 +154,16 @@
   font-size: 32rpx;
   color: #666;
 }
+.rankingBox .podiumList .null {
+  margin: 80rpx auto;
+  text-align: center;
+  font-size: 34rpx;
+}
+.rankingBox .podiumList .null .nullImg {
+  margin-bottom: 20rpx;
+  width: 223rpx;
+  height: 176rpx;
+}
 .rankingBox .footer {
   width: 100%;
   padding: 26rpx 60rpx 30rpx 90rpx;

BIN
static/n2t.png