|
@@ -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(); //调用筛选
|