|
@@ -469,6 +469,7 @@ var fleaMarketForm = new Vue({
|
|
|
province:function () {
|
|
|
var _this = this;
|
|
|
_this.from.province = event.target.value;
|
|
|
+ console.log('aaa', _this.from.province)
|
|
|
if(_this.from.province==''){//省为请选择时市区初始化
|
|
|
_this.cityArray=[];
|
|
|
_this.townArray=[];
|
|
@@ -491,12 +492,10 @@ var fleaMarketForm = new Vue({
|
|
|
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
getcTown:function(event){
|
|
|
var _this = this;
|
|
|
- PublicApi.GetTown({cityId:_this.from.city},function(response){
|
|
|
+ PublicApi.GetTown({ type:2, parentId:_this.from.city},function(response){
|
|
|
if(response.code == 0 ){
|
|
|
_this.townArray = response.data;
|
|
|
_this.secondParams.townId = event.target.value;
|
|
@@ -528,6 +527,4 @@ var fleaMarketForm = new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
})
|