Sfoglia il codice sorgente

fix: adjust the page style

wangyuan 2 anni fa
parent
commit
262b149c5f

+ 14 - 1
pages/aatest/test.js

@@ -57,7 +57,20 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad(options) {
-
+    this.getSystemInfoSync()
+  },
+  getSystemInfoSync () {
+    wx.getSystemInfo({
+      success (res) {
+        console.log(res.model)
+        console.log(res.pixelRatio)
+        console.log(res.windowWidth)
+        console.log(res.windowHeight)
+        console.log(res.language)
+        console.log(res.version)
+        console.log(res.platform)
+      }
+    })
   },
 
 

+ 3 - 3
pages/handleFile/handleFile.wxml

@@ -23,9 +23,9 @@
         </view>
       </view>
     </view>
-    <view class="actions ittfle">
-      <view class="handle-btn itt-btn" bindtap="handleDelFile">删除</view>
-    </view>
+  </view>
+  <view class="actions">
+    <view class="handle-btn itt-btn" bindtap="handleDelFile">删除</view>
   </view>
 </view>
 

+ 9 - 7
pages/handleFile/handleFile.wxss

@@ -3,14 +3,13 @@
   width: 100%;
   height: 100%;
   background-color: #f7f7f7;
-  overflow-y: auto;
-  position: relative;
+  overflow: hidden;
 }
 .main-content {
   width: 690rpx;
-  /* min-height: 100%; */
+  height: calc(100% - 180rpx);
   margin: 0 auto;
-  padding-bottom: 180rpx;
+  overflow-y: auto;
 }
 .file-item {
   width: 100%;
@@ -81,14 +80,17 @@
   height: 60rpx;
 }
 .actions {
-  width: 690rpx;
+  width: 100%;
   height: 80rpx;
   position: fixed;
-  bottom: 80rpx;
+  bottom: 60rpx;
   background-color: #f7f7f7;
+  display: flex;
+  justify-content: center;
+  align-items: center;
 }
 .handle-btn {
-  width: 100%;
+  width: 690rpx;
   height: 80rpx;
   border-radius: 10rpx;
 }

+ 4 - 4
pages/myFile/myFile.wxml

@@ -30,10 +30,6 @@
             <text class="report-text report-text-fail" wx:if="{{item.reportId == null}}">还未产生报告</text>
           </view>
         </view>
-        <view class="actions ittflex-jcb">
-          <button plain="" class="handle-btn manage-btn ittflex" bindtap="handleFile">管理</button>
-          <button class="handle-btn itt-btn" bindtap="handleAddFile">新建档案</button>
-        </view>
       </block>
       <block wx:if="{{fileList.length == 0}}">
         <view class="actions ittflex-jcb">
@@ -41,6 +37,10 @@
         </view>
       </block>
     </view>
+    <view class="actions">
+      <button plain="" class="handle-btn manage-btn ittflex" bindtap="handleFile">管理</button>
+      <button class="handle-btn itt-btn" bindtap="handleAddFile">新建档案</button>
+    </view>
     <view class="my-dialog" wx:if="{{qrcodeDialog}}">
       <view class="qr-content">
         <view class="qr-title">{{qrUserName}}的二维码</view>

+ 8 - 6
pages/myFile/myFile.wxss

@@ -2,14 +2,13 @@
   width: 100%;
   height: 100%;
   background-color: #f7f7f7;
-  overflow-y: auto;
-  position: relative;
+  overflow: hidden;
 }
 .main-content {
   width: 690rpx;
-  /* min-height: 100%; */
+  height: calc(100% - 180rpx);
   margin: 0 auto;
-  padding-bottom: 180rpx;
+  overflow-y: auto;
 }
 .nodate {
   width: 100%;
@@ -85,11 +84,14 @@
   height: 60rpx;
 }
 .actions {
-  width: 690rpx;
+  width: 100%;
   height: 100rpx;
   position: fixed;
-  bottom: 80rpx;
+  bottom: 60rpx;
   background-color: #f7f7f7;
+  display: flex;
+  justify-content: space-around;
+  align-items:center;
 }
 .handle-btn {
   width: 324rpx;

+ 7 - 0
project.private.config.json

@@ -26,6 +26,13 @@
           "query": "reportId=1",
           "launchMode": "default",
           "scene": null
+        },
+        {
+          "name": "测试页面",
+          "pathName": "pages/aatest/test",
+          "query": "",
+          "launchMode": "default",
+          "scene": null
         }
       ]
     }