|
@@ -23,6 +23,11 @@ jqMultipleShow("click", ".navList", ".tab", ".con");
|
|
|
nature:'',//公司性质
|
|
|
turnover:'',//年营业额
|
|
|
},
|
|
|
+ form:{
|
|
|
+ townID:'',
|
|
|
+ provinceID: '',//省id
|
|
|
+ cityID: '',
|
|
|
+ },
|
|
|
params2:{
|
|
|
userID:'',
|
|
|
shopID:'',
|
|
@@ -123,6 +128,12 @@ jqMultipleShow("click", ".navList", ".tab", ".con");
|
|
|
_this.params3.certificateHonor = shop.hygienicLicense;
|
|
|
_this.HonorImagesList = res.data.certificateHonor;
|
|
|
_this.productImagesList = res.data.productCertification;
|
|
|
+ if(shop.cityID!=''&&shop.cityID!=null){
|
|
|
+ _this.getcity()
|
|
|
+ }
|
|
|
+ if(shop.townID!=''&&shop.townID!=null){
|
|
|
+ _this.getcTown();
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -307,12 +318,14 @@ jqMultipleShow("click", ".navList", ".tab", ".con");
|
|
|
province:function () {
|
|
|
var _this = this;
|
|
|
_this.params.provinceID = event.target.value;
|
|
|
- if(_this.params.provinceID==''){//省为请选择时市区初始化
|
|
|
+ if(_this.params.provinceID==0){//省为请选择时市区初始化
|
|
|
_this.cityArray=[];
|
|
|
_this.townArray=[];
|
|
|
- _this.params.townID=''
|
|
|
+ _this.params.townID=0;
|
|
|
+ _this.params.cityID = 0;
|
|
|
}else {
|
|
|
_this.getcity();
|
|
|
+ _this.params.cityID = 0;
|
|
|
}
|
|
|
},
|
|
|
getcity:function(event){//加载市
|
|
@@ -321,10 +334,12 @@ jqMultipleShow("click", ".navList", ".tab", ".con");
|
|
|
if(response.code == 0 ){
|
|
|
_this.cityArray = response.data;
|
|
|
_this.params.cityID = event.target.value;
|
|
|
- if(_this.params.cityID==''){
|
|
|
+ if(_this.params.cityID==0){
|
|
|
_this.townArray=[];
|
|
|
+ _this.params.townID = 0;
|
|
|
}else {
|
|
|
_this.getcTown();
|
|
|
+ _this.params.townID = 0;
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -335,7 +350,6 @@ jqMultipleShow("click", ".navList", ".tab", ".con");
|
|
|
if(response.code == 0 ){
|
|
|
_this.townArray = response.data;
|
|
|
_this.params.townID = event.target.value;
|
|
|
- console.log(_this.params.townID)
|
|
|
}else{
|
|
|
CAIMEI.Alert(response.msg, '确定', false);
|
|
|
}
|
|
@@ -349,11 +363,13 @@ jqMultipleShow("click", ".navList", ".tab", ".con");
|
|
|
return newArr
|
|
|
},
|
|
|
setNewScope:function(arr){//回显处理主营内容
|
|
|
+ if (arr!=null){
|
|
|
var newArr = [];
|
|
|
- arr.split('/').forEach(function(item){
|
|
|
- newArr.push(item);
|
|
|
- });
|
|
|
- return newArr
|
|
|
+ arr.split('/').forEach(function(item){
|
|
|
+ newArr.push(item);
|
|
|
+ });
|
|
|
+ return newArr
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
mounted:function () {
|