Your Name hace 5 años
padre
commit
e69b72880f

+ 24 - 21
pages/index/index.js

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

+ 49 - 1
pages/index_details/index_details.js

@@ -262,7 +262,55 @@ console.log(that.data.uploadImages)
262 262
         });
263 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 70
             that.setData({
71 71
               SubmissionHidden: false
72 72
             })
@@ -162,8 +162,12 @@ Page({
162 162
                                         icon: 'none',  // 不显示图标
163 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 226
                                 icon: 'none',  // 不显示图标
223 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 295
                     icon: 'none',  // 不显示图标
288 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