|
@@ -140,8 +140,7 @@
|
|
},
|
|
},
|
|
hotCity:{
|
|
hotCity:{
|
|
type:Array,
|
|
type:Array,
|
|
- default:()=>[]
|
|
|
|
- // ["江西省","南昌市"],["北京市"],["广东省","广州市"],["浙江省","杭州市"],["重庆市"],["湖南省","长沙市"],["湖北省","武汉市"],["四川省","成都市"]
|
|
|
|
|
|
+ default:()=>[["江西省","南昌市"],["北京市"],["广东省","广州市"],["浙江省","杭州市"],["重庆市"],["湖南省","长沙市"],["湖北省","武汉市"],["四川省","成都市"]]
|
|
},
|
|
},
|
|
color:{
|
|
color:{
|
|
type:String,
|
|
type:String,
|
|
@@ -167,7 +166,7 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
-
|
|
|
|
|
|
+ remen:[["江西省","南昌市"],["北京市"],["广东省","广州市"],["浙江省","杭州市"],["重庆市"],["湖南省","长沙市"],["湖北省","武汉市"],["四川省","成都市"]],
|
|
list:[],
|
|
list:[],
|
|
active:0,
|
|
active:0,
|
|
active_2:0,
|
|
active_2:0,
|
|
@@ -264,17 +263,15 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
async selectedDefaultHot(index){
|
|
async selectedDefaultHot(index){
|
|
-
|
|
|
|
- this.$emit('update:defaultValue',this.hotCity[index]);
|
|
|
|
|
|
+ var a=[["江西省","南昌市"],["北京市"],["广东省","广州市"],["浙江省","杭州市"],["重庆市"],["湖南省","长沙市"],["湖北省","武汉市"],["四川省","成都市"]];
|
|
|
|
+ this.$emit('update:defaultValue',a[index]);
|
|
let chl = this.childrenIndx[0];
|
|
let chl = this.childrenIndx[0];
|
|
if(chl){
|
|
if(chl){
|
|
this.$set(this.list[chl.index].children[chl.childrenIndex],'checked',false)
|
|
this.$set(this.list[chl.index].children[chl.childrenIndex],'checked',false)
|
|
}
|
|
}
|
|
this.childrenIndx=[null,null,null];
|
|
this.childrenIndx=[null,null,null];
|
|
this.$nextTick(async function(){
|
|
this.$nextTick(async function(){
|
|
-
|
|
|
|
await this.setDefaultValue()
|
|
await this.setDefaultValue()
|
|
-
|
|
|
|
this.cityClick_pr(this.list[this.childrenIndx[0]],this.childrenIndx[0])
|
|
this.cityClick_pr(this.list[this.childrenIndx[0]],this.childrenIndx[0])
|
|
})
|
|
})
|
|
},
|
|
},
|