Bläddra i källkod

Merge branch 'master' of gitpfg.pinfangw.com:gaofangming/yhb

chenxiaofeng 6 år sedan
förälder
incheckning
de0cea6408

+ 33 - 4
pages/index/index.js

@@ -57,7 +57,7 @@ Page({
57 57
     page: 1,//当前页码
58 58
     limit: 10,//获取条数
59 59
     morehide: false,   //暂无更多信息显示隐藏
60
-    moreTxt:'',
60
+    moreTxt: '', 
61 61
 
62 62
   },
63 63
 
@@ -69,6 +69,12 @@ Page({
69 69
 
70 70
   onShow: function (options) {
71 71
     var that = this;
72
+
73
+    that.setData({
74
+      page: 1,//当前页码
75
+    })
76
+
77
+
72 78
     getApp().showLoading();   //提示加载中
73 79
     
74 80
     // console.log(app.globalData.height);
@@ -766,28 +772,42 @@ Page({
766 772
       // area: that.data.area,                    // 区
767 773
     };
768 774
     app.postRequest(home_url, home_data, function (res) {
775
+
769 776
       if (res.code == 201) {
770 777
         // console.log(res.data);
771 778
         var home = that.data.home
779
+
780
+        var moreTxt = '';
781
+        if (0 < (res.data.length < 10)) {
782
+          moreTxt = '暂无更多数据。'
783
+          console.log('无')
784
+        } else {
785
+          moreTxt = ''
786
+          console.log('有')
787
+        }
788
+
772 789
         // 设置数据
773 790
         for (var i = 0; i < res.data.length; i++) {
774 791
           home.push(res.data[i]);
775 792
         }
776 793
      
777
-
778 794
         that.setData({
779 795
           home: home,
796
+          morehide: true,
797
+          moreTxt: moreTxt,
780 798
         })
781 799
 
782 800
         that.cancelLoading();   //数据加载完关闭
783 801
         return;
784 802
       }
803
+
804
+
785 805
         that.cancelLoading();   //数据加载完关闭
786 806
 
787 807
         that.setData({
788 808
           home_code: res.code,
789 809
           morehide: true,
790
-          moreTxt :'暂无更多数据。'
810
+          moreTxt:"暂无更多数据。"
791 811
         })
792 812
 
793 813
         
@@ -828,9 +848,18 @@ Page({
828 848
     };
829 849
     app.postRequest(home_url, home_data, function (res) {
830 850
       if (res.code == 201) {
851
+
852
+        var moreTxt = '';
853
+        if (res.data.length < 10) {
854
+          moreTxt = '暂无更多数据。'
855
+        } else {
856
+          moreTxt = ''
857
+        }
858
+
831 859
         console.log(res.data);
832 860
         that.setData({
833 861
           home: res.data,
862
+          moreTxt: moreTxt,
834 863
           home_code: res.code,
835 864
         })
836 865
 
@@ -842,7 +871,7 @@ Page({
842 871
         that.cancelLoading();   //数据加载完关闭
843 872
 
844 873
         that.setData({
845
-          home_code: res.code,
874
+          home: res.data,
846 875
           morehide: true,
847 876
           moreTxt: '暂无更多数据。'
848 877
         })

+ 1 - 1
pages/index/index.wxml

@@ -195,7 +195,7 @@
195 195
 
196 196
         <block wx:for='{{home}}' wx:key="item" wx:for-index="id">
197 197
               
198
-                <view class='m_wntj_list c' wx:if="{{home_code == 201}}">
198
+                <view class='m_wntj_list c'>
199 199
                         <navigator hover-class="none" url="/pages/index_details/index_details?uid={{item.uid}}&img={{item.img}}"></navigator>
200 200
                         <view class='m_wntj_list_img'>
201 201
                               <image mode="aspectFill" src='{{item.img}}'></image>

+ 2 - 2
pages/index_details/index_details.wxss

@@ -25,9 +25,9 @@
25 25
 .information_r text{font-size:18rpx;color:#FFF;display:block;text-align:center;position:relative;z-index:10;top:51rpx;}
26 26
 
27 27
 /* 个人信息  */
28
-.data_box{margin-top:20rpx;padding:0 30rpx;}
28
+.data_box{margin-top:20rpx;padding:0 30rpx 10rpx 30rpx;}
29 29
 
30
-.data_title{border-bottom:1px solid #f8f8f8;padding-bottom:16rpx;}
30
+.data_title{border-bottom:1px solid #f8f8f8;padding-bottom:20rpx;}
31 31
 .data_title_l{float:left;font-size:24rpx;color:#292828;font-weight:600;}
32 32
 .data_title_l image{height:0;}
33 33
 .data_title_r{float:right;font-size:24rpx;color:#A7A6A6;}

+ 19 - 52
pages/personal_core/home_list/home_list.js

@@ -1,66 +1,33 @@
1
-// pages/personal_core/home_list/home_list.js
1
+const app = getApp();
2 2
 Page({
3 3
 
4
-  /**
5
-   * 页面的初始数据
6
-   */
4
+ 
7 5
   data: {
8
-
9
-  },
10
-
11
-  /**
12
-   * 生命周期函数--监听页面加载
13
-   */
14
-  onLoad: function (options) {
15
-
6
+    optioninfo:'',
16 7
   },
17 8
 
18
-  /**
19
-   * 生命周期函数--监听页面初次渲染完成
20
-   */
21
-  onReady: function () {
22 9
 
23
-  },
24
-
25
-  /**
26
-   * 生命周期函数--监听页面显示
27
-   */
28
-  onShow: function () {
29
-
30
-  },
31
-
32
-  /**
33
-   * 生命周期函数--监听页面隐藏
34
-   */
35
-  onHide: function () {
36
-
37
-  },
38
-
39
-  /**
40
-   * 生命周期函数--监听页面卸载
41
-   */
42
-  onUnload: function () {
10
+  onLoad: function (options) {
43 11
 
44
-  },
12
+        var that = this;
13
+        // console.log(options.uid)
45 14
 
46
-  /**
47
-   * 页面相关事件处理函数--监听用户下拉动作
48
-   */
49
-  onPullDownRefresh: function () {
15
+        //  认证信息
16
+    let optioninfo_url = 'my/authentication/adopticonone';
17
+        let optioninfo_data = {
18
+          // uid: options.uid,
19
+        };
20
+        app.postRequest(optioninfo_url, optioninfo_data, function (res) {
21
+          console.log(res.data);
22
+          if (res.code == 201) {
50 23
 
51
-  },
24
+            that.setData({
25
+              optioninfo: res.data,
52 26
 
53
-  /**
54
-   * 页面上拉触底事件的处理函数
55
-   */
56
-  onReachBottom: function () {
27
+            })
28
+          }
29
+        })
57 30
 
58 31
   },
59 32
 
60
-  /**
61
-   * 用户点击右上角分享
62
-   */
63
-  onShareAppMessage: function () {
64
-
65
-  }
66 33
 })

+ 1 - 1
pages/personal_core/home_list/home_list.json

@@ -1,3 +1,3 @@
1 1
 {
2
-  "usingComponents": {}
2
+  "navigationBarTitleText": "认证信息"
3 3
 }

+ 8 - 0
pages/personal_core/home_list/home_list.wxml

@@ -2,6 +2,8 @@
2 2
         <navigator class='yzlist'  hover-class="none" url="/pages/personal_core/Realname/Realname">
3 3
                 <image src='/image/yz1.png' mode="widthFix"></image>
4 4
                 <text>实名认证</text>
5
+
6
+                <view class='yzlist_text'>{{optioninfo.shenfenzheng.status}}</view>
5 7
         </navigator>
6 8
 
7 9
         <!-- <navigator class='yzlist'  hover-class="none">
@@ -12,16 +14,22 @@
12 14
         <navigator class='yzlist'  hover-class="none"  url="/pages/personal_core/Adegreein/Adegreein">
13 15
                 <image src='/image/yz3.png' mode="widthFix"></image>
14 16
                 <text>学历认证</text>
17
+
18
+                <view class='yzlist_text'>{{optioninfo.xueli.status}}</view>
15 19
         </navigator>
16 20
 
17 21
         <navigator class='yzlist'  hover-class="none" url="/pages/personal_core/vehicle/vehicle">
18 22
                 <image src='/image/yz4.png' mode="widthFix"></image>
19 23
                 <text>车辆认证</text>
24
+
25
+                <view class='yzlist_text'>{{optioninfo.chenliang.status}}</view>
20 26
         </navigator>
21 27
 
22 28
         <navigator class='yzlist'  hover-class="none"  url="/pages/personal_core/Realestate/Realestate">
23 29
                 <image src='/image/yz5.png' mode="widthFix"></image>
24 30
                 <text>房产认证</text>
31
+
32
+                <view class='yzlist_text'>{{optioninfo.fangchan.status}}</view>
25 33
         </navigator>
26 34
 </view>
27 35
 

+ 3 - 2
pages/personal_core/home_list/home_list.wxss

@@ -1,10 +1,11 @@
1 1
 
2
-.yzlist{border-bottom:1px solid #F5F5F5;display:flex;align-items:center;padding:30rpx 30rpx;}
2
+.yzlist{border-bottom:1px solid #F5F5F5;display:flex;align-items:center;padding:30rpx 30rpx;position:relative;}
3 3
 .yzlist image{width:56rpx;height:0;}
4 4
 .yzlist text{font-size:32rpx;color:#000;font-weight:600;margin-left:20rpx;}
5
+.yzlist .yzlist_text{font-size:28rpx;color: #666;position:absolute;top:40rpx;right:40rpx;}
5 6
 
6 7
 
7
-.yztext{border:1px solid #DCDCDC;width:90%;margin:auto;margin-top:30rpx;background: #F5F5F5;padding:30rpx 20rpx;}
8
+.yztext{border:1px solid #DCDCDC;width:90%;margin:auto;margin-top:36rpx;background: #F5F5F5;padding:30rpx 20rpx;}
8 9
 .yztext_title{font-size:28rpx;color:#808080;margin-bottom:20rpx;}
9 10
 .yztext text{font-size:24rpx;color:#A7A6A6;display:block;}
10 11
 .yztext text +text{margin-top:10rpx;}

+ 9 - 6
pages/personal_core/personaldata/personaldata.wxml

@@ -48,7 +48,7 @@
48 48
 </view>
49 49
 
50 50
 <!-- 个人资料 -->
51
-<view class='information c'>
51
+<!-- <view class='information c'>
52 52
       <view class='information_l'>
53 53
               <view class='information_l_title'>{{information.nickname}} <text>{{information.age}}</text></view>
54 54
               <view class='information_l_id'>ID:{{information.number}}</view>
@@ -62,11 +62,11 @@
62 62
                  <image mode="aspectFill"  src='/image/personal03.png'></image>
63 63
                 <text>125</text>
64 64
       </view>
65
-</view>
65
+</view> -->
66 66
 
67 67
 
68 68
 <!-- 个人信息 -->
69
-<view class='data_box' style='margin-top:100rpx;'>
69
+<view class='data_box' style='margin-top:20rpx;'>
70 70
       <view class='data_title c'>
71 71
                 <view class='data_title_l'> <image src='/image/xtb2.png'  mode="widthFix" style='position:relative;top:2px;width: 40rpx;'></image> 个人资料</view>
72 72
 
@@ -83,12 +83,14 @@
83 83
               <text wx:if='{{information.height}}'>{{information.height}}</text>
84 84
               <text wx:if='{{information.education}}'>{{information.education}}</text>
85 85
               <text wx:if='{{information.marry}}'>{{information.marry}}</text>
86
-              <text wx:if='{{information.income}}'>{{information.income}}/月</text>
86
+              <text wx:if='{{information.income}}'>{{information.income}}</text>
87 87
               <text wx:if='{{information.occupation}}'>{{information.occupation}}</text>
88 88
               <text wx:if='{{information.nickname &&  information.province && information.city}}'>{{information.province}}-{{information.city}}-{{information.area}}</text>
89 89
       </view>
90 90
 </view>
91 91
 
92
+<view style='height:10rpx;background:#fafafa;margin:20rpx 0;'></view>
93
+
92 94
 <!-- 择偶要求 -->
93 95
 <view class='data_box'>
94 96
       <view class='data_title c'>
@@ -105,7 +107,7 @@
105 107
               <text wx:if='{{optioninfo.marry}}'>{{optioninfo.marry}}</text>
106 108
               <text wx:if='{{optioninfo.height}}'>{{optioninfo.height}}</text>
107 109
               <text wx:if='{{optioninfo.education}}'>{{optioninfo.education}}</text>
108
-              <text wx:if='{{optioninfo.income_min && optioninfo.income_max}}'>{{optioninfo.income_min}}-{{optioninfo.income_max}}/月</text>
110
+              <text wx:if='{{optioninfo.income_min && optioninfo.income_max}}'>{{optioninfo.income_min}}-{{optioninfo.income_max}}</text>
109 111
               <text wx:if='{{optioninfo.occupation}}'>职业:{{optioninfo.occupation}}</text>
110 112
               <text wx:if='{{optioninfo.city}}'>{{optioninfo.city}}</text>
111 113
       </view>
@@ -115,12 +117,13 @@
115 117
       </view>
116 118
 </view>
117 119
 
120
+<view style='height:10rpx;background:#fafafa;margin:20rpx 0;'></view>
118 121
 
119 122
 <!-- 认证信息 -->
120 123
 <view class='data_box'>
121 124
       <view class='data_title c'>
122 125
                 <view class='data_title_l'> <image src='/image/xtb4.png'  mode="widthFix" style='position:relative;top:6rpx;width: 32rpx;'></image> 认证信息</view>
123
-                
126
+
124 127
                 <navigator class='data_title_r' hover-class="none" url='/pages/personal_core/home_list/home_list'>
125 128
                         <text>去认证</text>
126 129
                         <image src='/image/personal5.png' mode="widthFix"></image>

+ 2 - 2
pages/personal_core/personaldata/personaldata.wxss

@@ -26,9 +26,9 @@
26 26
 .information_r text{font-size:18rpx;color:#FFF;display:block;text-align:center;position:relative;z-index:10;top:50rpx;}
27 27
 
28 28
 /* 个人信息  */
29
-.data_box{margin-top:80rpx;padding:0 30rpx;}
29
+.data_box{margin-top:20rpx;padding:0 30rpx 10rpx 30rpx;}
30 30
 
31
-.data_title{border-bottom:1px solid #ECECEC;padding-bottom:16rpx;}
31
+.data_title{border-bottom:1px solid #ECECEC;padding-bottom:20rpx;}
32 32
 .data_title_l{float:left;font-size:24rpx;color:#292828;font-weight:600;}
33 33
 .data_title_l image{height:0;}
34 34
 .data_title_r{float:right;font-size:24rpx;color:#A7A6A6;}

+ 1 - 1
pages/personal_core/personaldataModifythe/personaldataModifythe.wxml

@@ -4,7 +4,7 @@
4 4
 <view class='data_box'>
5 5
 
6 6
        <view class='data_name c'>  <!--  姓名 -->
7
-             <text>我的姓名</text>
7
+             <text>我的昵称</text>
8 8
             <input type='text' placeholder="填写您的姓名" bindinput="getPhone"  value="{{personal.nickname}}"></input>
9 9
        </view>
10 10