zs vor 3 Jahren
Ursprung
Commit
a93f49b789
4 geänderte Dateien mit 12 neuen und 16 gelöschten Zeilen
  1. 0 1
      pages/home/index.js
  2. 1 0
      pages/home/index.wxss
  3. 11 14
      pages/match/detail.js
  4. 0 1
      pages/match/detail.wxss

+ 0 - 1
pages/home/index.js

@@ -82,7 +82,6 @@ Page({
                 }
               }
               that.setData({ teamlist: datas });
-              console.log(datas);
             } else {
               wx.showToast({ title: res.data.errmsg, icon: 'none', duration: 2000 })
             }

+ 1 - 0
pages/home/index.wxss

@@ -133,6 +133,7 @@ button {
   width: 100%;
   height: 80px;
   background-color: #e9e9e9;
+  border-bottom: 2px solid white;
 }
 
 .right1_2 {

+ 11 - 14
pages/match/detail.js

@@ -15,8 +15,7 @@ Page({
     // 主体高度
     infoHeight: '',
     id: '',
-    schedulelist: [
-    ]
+    schedulelist: []
   },
   //上传图片
   imgUpload: function (e) {
@@ -58,7 +57,6 @@ Page({
           method: 'get',
           data: {},
           success(res) {
-            console.log(res.data.data);
             that.setData({
               schedulelist: res.data.data,
             })
@@ -70,17 +68,16 @@ Page({
       }
     })
   },
- // 计算高度
- searchHeight: function () {
-  let frameStyle = this.data.frameStyle;
-  let client = app.globalData.client;
-  let infoHeight = client.windowHeight;
-  // 是否去掉状态栏
-  if (frameStyle.useTop) infoHeight = infoHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
-  // 是否减去底部菜单
-  if (frameStyle.useBar) infoHeight = infoHeight - 50;
-  if (infoHeight) this.setData({ infoHeight: infoHeight })
-},
+  // 计算高度
+  searchHeight: function () {
+    let frameStyle = this.data.frameStyle;
+    let client = app.globalData.client;
+    // 减去状态栏
+    let infoHeight = client.windowHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
+    // 是否减去底部菜单
+    if (frameStyle.useBar) infoHeight = infoHeight - 50;
+    if (infoHeight) this.setData({ infoHeight: infoHeight })
+  },
 
   /**
    * 生命周期函数--监听页面初次渲染完成

+ 0 - 1
pages/match/detail.wxss

@@ -55,7 +55,6 @@
 .two-9 {
   width: 70%;
 }
-
 .two2 {
   background-color: #ffffff;
 }