Browse Source

搜索企业列表增加分页

menc 2 năm trước cách đây
mục cha
commit
7fa4e744d0

+ 1 - 0
base/httputil.js

@@ -1,6 +1,7 @@
 // let BASE_Server = "http://127.0.0.1:8329"
     // let BASE_Server = "https://192.168.1.109:8080"
 let BASE_Server = "https://sookajs.top:18080"
+// let BASE_Server = "http://192.168.2.9:18080"
 
 
 

+ 4 - 4
pages/search/search.js

@@ -91,7 +91,7 @@ Page({
    
      var that = this
  
-     if(res.data.rows.length==0){
+     if(res.rows.length==0){
        wx.showToast({
          title: '暂无更多数据',
          icon:"none"
@@ -104,8 +104,8 @@ Page({
      }
      if (this.data.isRefresh) {
        this.setData({
-         enterpriseList: res.data.rows,
-         total: res.data.total
+         enterpriseList: res.rows,
+         total: res.total
        })
  
  
@@ -124,7 +124,7 @@ Page({
  
      } else {
        this.setData({
-         enterpriseList: this.data.enterpriseList.concat(res.data.rows)
+         enterpriseList: this.data.enterpriseList.concat(res.rows)
        })
        // 隐藏加载框
  

+ 3 - 0
pages/search/search.wxml

@@ -19,6 +19,9 @@
       <i class="iconfont icon-xiangyou list_right"></i>
     </view>
 
+    <view class='data-loading' hidden='{{hidden}}'>
+    数据加载中...
+  </view>
   </view>
 
 

+ 9 - 1
pages/search/search.wxss

@@ -1 +1,9 @@
-/* pages/search/search.wxss */
+/* pages/search/search.wxss */
+
+.data-loading {
+  height: 100rpx;
+  line-height: 100rpx;
+  background-color: #fff;
+  text-align: center;
+  font-size: 14px;
+}

+ 5 - 3
pages/xunjian/xunjian.wxss

@@ -1,12 +1,14 @@
 /* pages/xunjian/xunjian.wxss */
 
 .xj_nav{
-  height: 90rpx;
-  line-height: 90rpx;
+  /* height: 90rpx; */
+  line-height: 40rpx;
   display: flex;
   flex-wrap: wrap;
   background: rgb(255, 249, 248);
   padding-left: 30rpx;
+  padding-top: 20rpx;
+  padding-bottom: 20rpx;
 }
 .xj_nav .nav_text1{
   font-size: 38rpx;
@@ -263,7 +265,7 @@ line-height: 28rpx;
 }
 .section2 input{
 color: #f94b0e;
-width: 80rpx;
+width: 60rpx;
 height: 50rpx;
   line-height: 50rpx;
 }

+ 1 - 1
pages/xunjiancz/xunjiancz.wxml

@@ -41,7 +41,7 @@
       </view>
       <!-- 内容布局 -->
       <swiper class='swiperTtemBox' bindchange='pagechange' current='{{currentIndex}}'>
-        <swiper-item class='swiperTtemBox' data-swiper="0">
+        <swiper-item class='swiperTtemBox' data-swiper="0" style="height: 80%;">
           <view class="tab_vi">
             <text wx:for="{{items_first}}" wx:for-item="item" wx:for-index="index" wx:key="index" bindtap="change_color_1" data-busitemsid='{{item.busItemsId}}' class="{{myclick==item.busItemsId?selt:noselt}}">{{index+1}}.{{item.busItemsName}}</text>
           </view>

+ 9 - 4
pages/xunjiancz/xunjiancz.wxss

@@ -1,11 +1,13 @@
 /* pages/xunjiancz/xunjiancz.wxss */
 .xj_nav{
-  height: 90rpx;
-  line-height: 90rpx;
+  /* height: 90rpx; */
+  line-height: 40rpx;
   display: flex;
   flex-wrap: wrap;
   background: rgb(255, 249, 248);
   padding-left: 30rpx;
+  padding-top: 20rpx;
+  padding-bottom: 20rpx;
 }
 .xj_nav .nav_text1{
   font-size: 40rpx;
@@ -17,7 +19,7 @@
   color: #999;
 }
 .xj_nav .nav_text2{
-  font-size: 30rpx;
+  font-size: 28rpx;
   color:#999 ;
 }
 .hui{
@@ -87,7 +89,7 @@
 /* 底部导航 */
 .nav_bottom{
   position: fixed;
-  bottom: 0rpx;
+  bottom: 5vh;
   width: 100%;
   height: 65vh;
   transition: all  .25s  ease-in;
@@ -208,4 +210,7 @@
 .hide{
   bottom:-57vh;
   transition: all  .25s  ease-in;
+}
+.pop_height{
+  height: 90%;
 }