bayi 1 year ago
parent
commit
7b1b164667
3 changed files with 9 additions and 9 deletions
  1. 2 2
      pages/resource/index.less
  2. 2 2
      pages/resource/index.wxss
  3. 5 5
      utils/request.js

+ 2 - 2
pages/resource/index.less

@@ -1,5 +1,5 @@
 .resourceBox {
-    padding-bottom: calc(140rpx + env(safe-area-inset-bottom)) !important;
+    padding-bottom: calc(60rpx + env(safe-area-inset-bottom)) !important;
 }
 
 .firstClassify {
@@ -29,5 +29,5 @@
     }
 }
 .resourceBox{
-    margin-top: 470rpx;
+    padding-top: 170rpx;
 }

+ 2 - 2
pages/resource/index.wxss

@@ -1,5 +1,5 @@
 .resourceBox {
-  padding-bottom: calc(140rpx + env(safe-area-inset-bottom)) !important;
+  padding-bottom: calc(60rpx + env(safe-area-inset-bottom)) !important;
 }
 .firstClassify {
   position: fixed;
@@ -26,5 +26,5 @@
   height: 210rpx;
 }
 .resourceBox {
-  margin-top: 470rpx;
+  padding-top: 170rpx;
 }

+ 5 - 5
utils/request.js

@@ -6,13 +6,13 @@ const {
         envVersion
     }
 } = wx.getAccountInfoSync();
-// if (envVersion == 'develop') {
-    // baseUrl = 'https://reader-api.efunbox.cn/wx'
-    // oldUrl = 'https://reader-api.efunbox.cn'
-// } else {
+if (envVersion == 'develop') {
+    baseUrl = 'https://reader-api.efunbox.cn/wx'
+    oldUrl = 'https://reader-api.efunbox.cn'
+} else {
     baseUrl = 'https://reader-api.ai160.com/wx'
     oldUrl = 'https://reader-api.ai160.com'
-// }
+}
 
 function request(url, method, data, oldBaseUrl = false, intercept = true) {
     let header = {