guhongwei пре 2 година
родитељ
комит
f1cf27adff
4 измењених фајлова са 2 додато и 29 уклоњено
  1. 0 19
      pages/club/index.js
  2. 2 3
      pages/club/index.wxml
  3. 0 4
      pages/match/index.less
  4. 0 3
      pages/match/index.wxss

+ 0 - 19
pages/club/index.js

@@ -9,31 +9,12 @@ Page({
             { name: '宝藏俱乐部', founder: '宝藏', add: '长春市朝阳区前进大街1244号', project: '羽毛球', time: '2000-02-01', tel: '0431-800-800-8800' },
             { name: '英语俱乐部', founder: '英语', time: '2000-02-01', add: '长春市朝阳区前进大街1244号', project: '羽毛球', tel: '0431-800-800-8800' },
         ],
-        total: 0,
-        page: 0,
-        skip: 0,
-        limit: 5,
     },
     // 跳转菜单
     tabPath(e) {
         let { route } = e.detail.detail;
         if (route) wx.redirectTo({ url: `/${route}` })
     },
-    // 分页
-    toPage: function () {
-        const that = this;
-        let list = that.data.list;
-        let limit = that.data.limit;
-        if (that.data.total > list.length) {
-            wx.showLoading({ title: '加载中', mask: true })
-            let page = that.data.page + 1;
-            that.setData({ page: page })
-            let skip = page * limit;
-            that.setData({ skip: skip })
-            that.watchLogin();
-            wx.hideLoading()
-        } else { wx.showToast({ title: '没有更多数据了', icon: 'none', duration: 2000 }) }
-    },
     /**
      * 生命周期函数--监听页面加载
      */

+ 2 - 3
pages/club/index.wxml

@@ -9,7 +9,7 @@
             </view>
         </view>
         <view class="two">
-            <scroll-view scroll-y="true" class="scroll-view" bindscrolltolower="toPage">
+            <scroll-view scroll-y="true" class="scroll-view">
                 <view class="list-scroll-view">
                     <view class="list" wx:for="{{list}}" wx:key="item">
                         <view class="content">
@@ -21,8 +21,7 @@
                             <view class="text1">地址:<text>{{item.add}}</text></view>
                         </view>
                         <view class="logo">
-                            <image src="{{src}}" mode="widthFix">
-                            </image>
+                            <image src="{{src}}" mode="widthFix"></image>
                         </view>
                     </view>
                 </view>

+ 0 - 4
pages/match/index.less

@@ -138,10 +138,6 @@
                     }
                 }
             }
-
-            .list:last-child {
-                border-bottom: none;
-            }
         }
 
         .scroll-view {

+ 0 - 3
pages/match/index.wxss

@@ -115,9 +115,6 @@
 .main .thr .thr_1 .list .list_1 .one_2 .status .color3 {
   background-color: #808080;
 }
-.main .thr .thr_1 .list:last-child {
-  border-bottom: none;
-}
 .main .thr .scroll-view {
   position: absolute;
   top: 0;