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