Your Name 6 years ago
parent
commit
e69b72880f
3 changed files with 87 additions and 23 deletions
  1. 24 21
      pages/index/index.js
  2. 49 1
      pages/index_details/index_details.js
  3. 14 1
      pages/personal_core/Realname/Realname.js

+ 24 - 21
pages/index/index.js

@@ -146,8 +146,8 @@ Page({
146
         cityName: _cityname, // 市名称
146
         cityName: _cityname, // 市名称
147
         areaName: _areaname,  // 区名称
147
         areaName: _areaname,  // 区名称
148
       })
148
       })
149
-      // console.log(_provincename)
149
+      console.log(_provincename)
150
-      // console.log(_cityname)
150
+      console.log(_cityname)
151
     } else if (_provincename == '' && _cityname == '' &&  _Selection == 1){
151
     } else if (_provincename == '' && _cityname == '' &&  _Selection == 1){
152
       that.setData({
152
       that.setData({
153
         city: _city,
153
         city: _city,
@@ -604,14 +604,14 @@ Page({
604
         // console.log(res.data);
604
         // console.log(res.data);
605
         var home = that.data.home
605
         var home = that.data.home
606
 
606
 
607
-        var moreTxt = '';
607
+        // var moreTxt = '';
608
-        if (0 < (res.data.length < 10)) {
608
+        // if (0 < (res.data.length < 10)) {
609
-          moreTxt = res.msg;
609
+        //   moreTxt = res.msg;
610
-          // console.log('无')
610
+        //   // console.log('无')
611
-        } else {
611
+        // } else {
612
-          moreTxt = ''
612
+        //   moreTxt = ''
613
-          // console.log('有')
613
+        //   // console.log('有')
614
-        }
614
+        // }
615
 
615
 
616
         // 设置数据
616
         // 设置数据
617
         for (var i = 0; i < res.data.length; i++) {
617
         for (var i = 0; i < res.data.length; i++) {
@@ -620,8 +620,7 @@ Page({
620
 
620
 
621
         that.setData({
621
         that.setData({
622
           home: home,
622
           home: home,
623
-          morehide: false,
623
+          morehide: true,
624
-          moreTxt: res.msg,
625
         })
624
         })
626
 
625
 
627
         that.cancelLoading();   //数据加载完关闭
626
         that.cancelLoading();   //数据加载完关闭
@@ -686,19 +685,21 @@ Page({
686
         inputValue: '',
685
         inputValue: '',
687
       })
686
       })
688
 
687
 
688
+      var moreTxt = '';
689
+      
689
       if (res.code == 201) {
690
       if (res.code == 201) {
690
 
691
 
691
-        var moreTxt = '';
692
+   
692
-        if (res.data.length < 10) {
693
+        // if (res.data.length < 10) {
693
-          moreTxt = res.msg
694
+        //   moreTxt = res.msg
694
-        } else {
695
+        // } else {
695
-          moreTxt = ''
696
+        //   moreTxt = ''
696
-        }
697
+        // }
697
 
698
 
698
         // console.log(res.data);
699
         // console.log(res.data);
699
         that.setData({
700
         that.setData({
700
           home: res.data,
701
           home: res.data,
701
-          moreTxt: res.msg,
702
+          morehide: true,
702
           home_code: res.code,
703
           home_code: res.code,
703
         })
704
         })
704
 
705
 
@@ -867,6 +868,7 @@ Page({
867
           provinceName: that.data.provincetext, // 省名字
868
           provinceName: that.data.provincetext, // 省名字
868
           cityName: '',   // 市名字清空
869
           cityName: '',   // 市名字清空
869
           areaName: "",  //  区名字
870
           areaName: "",  //  区名字
871
+          page: 1,
870
         })
872
         })
871
         break;
873
         break;
872
 
874
 
@@ -877,6 +879,7 @@ Page({
877
           provinceName: that.data.provincetext, // 省名字
879
           provinceName: that.data.provincetext, // 省名字
878
           cityName: that.data.citytext, // 省名字
880
           cityName: that.data.citytext, // 省名字
879
           areaName: "",  //  区名字
881
           areaName: "",  //  区名字
882
+          page: 1,
880
         })
883
         })
881
         break;
884
         break;
882
 
885
 
@@ -888,7 +891,7 @@ Page({
888
           provinceName: that.data.provincetext, // 省名字
891
           provinceName: that.data.provincetext, // 省名字
889
           cityName: that.data.citytext, // 省名字
892
           cityName: that.data.citytext, // 省名字
890
           areaName: areatext,   //  区名字
893
           areaName: areatext,   //  区名字
891
-
894
+          page: 1,
892
         })
895
         })
893
         break;
896
         break;
894
 
897
 
@@ -907,7 +910,6 @@ Page({
907
       provincetext: '北京', //省 名字
910
       provincetext: '北京', //省 名字
908
       cityidx: 0,
911
       cityidx: 0,
909
       citytext: '',
912
       citytext: '',
910
-    
911
     })
913
     })
912
 
914
 
913
     app.globalData.Selection = 0;    //  是否选中  
915
     app.globalData.Selection = 0;    //  是否选中  
@@ -927,6 +929,7 @@ Page({
927
       city: 0,   // 市数据清空
929
       city: 0,   // 市数据清空
928
       cityName: '',   // 市名字清空
930
       cityName: '',   // 市名字清空
929
       areaName: "",  //  区名字
931
       areaName: "",  //  区名字
932
+      page: 1,//当前页码
930
     })
933
     })
931
 
934
 
932
     that.list(); //调用筛选
935
     that.list(); //调用筛选

+ 49 - 1
pages/index_details/index_details.js

@@ -262,7 +262,55 @@ console.log(that.data.uploadImages)
262
         });
262
         });
263
         return ;
263
         return ;
264
       } 
264
       } 
265
-      app.Tips(res.msg);
265
+
266
+      if (res.data.location == 'shiming') {
267
+    
268
+            wx.showModal({
269
+              title: '实名认证',
270
+              content: res.msg,
271
+              success(res) {
272
+                if (res.confirm) {
273
+                    // console.log('用户点击确定');
274
+                      wx.navigateTo({
275
+                        url: '/pages/personal_core/Realname/Realname'
276
+                      });
277
+                } else if (res.cancel) {
278
+                  // console.log('用户点击取消')
279
+                }
280
+              }
281
+            })
282
+
283
+      }
284
+
285
+      if (res.data.location == 'huiyuan') {
286
+        wx.showModal({
287
+          title: '开通会员',
288
+          content: res.msg,
289
+          success(res) {
290
+            if (res.confirm) {
291
+              // console.log('用户点击确定');
292
+              wx.navigateTo({
293
+                url: '/pages/payment/Member/Member'
294
+              });
295
+            } else if (res.cancel) {
296
+              // console.log('用户点击取消')
297
+            }
298
+          }
299
+        })
300
+
301
+      }
302
+
303
+      // if (res.data.location == shiming) {
304
+      //   wx.navigateTo({
305
+      //     url: '../chat/chat?to_id=' + that.to_id + '&myheadurl=' + that.myheadurl + '&headUrl=' + that.data.options_img
306
+      //   });
307
+      // }
308
+
309
+
310
+    
311
+
312
+
313
+      // app.Tips(res.msg);
266
 
314
 
267
     })
315
     })
268
 
316
 

+ 14 - 1
pages/personal_core/Realname/Realname.js

@@ -66,7 +66,7 @@ Page({
66
         })
66
         })
67
       }
67
       }
68
 
68
 
69
-      if (res.data.save_status == 2){   //如果审核通过  隐藏掉提交按钮
69
+      if (res.data.status == 2){   //如果审核通过  隐藏掉提交按钮
70
             that.setData({
70
             that.setData({
71
               SubmissionHidden: false
71
               SubmissionHidden: false
72
             })
72
             })
@@ -162,8 +162,12 @@ Page({
162
                                         icon: 'none',  // 不显示图标
162
                                         icon: 'none',  // 不显示图标
163
                                         duration: 2000
163
                                         duration: 2000
164
                                       })
164
                                       })
165
+
166
+                                 return;     
165
                             }
167
                             }
166
 
168
 
169
+                                app.Tips(res.msg);
170
+ 
167
                           });
171
                           });
168
                       
172
                       
169
                   }
173
                   }
@@ -222,8 +226,12 @@ Page({
222
                                 icon: 'none',  // 不显示图标
226
                                 icon: 'none',  // 不显示图标
223
                                 duration: 2000
227
                                 duration: 2000
224
                               })
228
                               })
229
+
230
+                             return;     
225
                       }
231
                       }
226
 
232
 
233
+                      app.Tips(res.msg); 
234
+
227
                 });
235
                 });
228
 
236
 
229
 
237
 
@@ -287,8 +295,13 @@ Page({
287
                     icon: 'none',  // 不显示图标
295
                     icon: 'none',  // 不显示图标
288
                     duration: 2000
296
                     duration: 2000
289
                   })
297
                   })
298
+
299
+                      return;    
290
               }
300
               }
291
 
301
 
302
+
303
+               app.Tips(res.msg);
304
+
292
         });
305
         });
293
 
306
 
294
 
307