This commit is contained in:
曹辉 2023-04-07 09:57:10 +08:00
parent a6ed3961e4
commit 3f99c4f3f2
2 changed files with 14 additions and 0 deletions

View File

@ -157,6 +157,7 @@
* 点击城市后回调
*/
async changCity(index, item) {
console.log(index, this.tabCurrentIndex)
if (this.tabbars[index].id != item.id) {
this.tabbars[index].localName = item.areaName;
this.tabbars[index].id = item.areaCode;
@ -177,6 +178,18 @@
children: data.data,
};
this.tabbars.push(current);
if (this.tabCurrentIndex == 2) {
this.tabbars[3].children.unshift({
areaCode: "",
areaLevel: 4,
areaName: "暂不选择",
children: null,
id: 999999,
parentId: 999999999,
sort: null,
})
console.log(this.tabbars)
}
this.tabCurrentIndex++;
//
this.$set(this, 'scrollTop', 0)

View File

@ -170,6 +170,7 @@
this.infolist.address = ''
this.infolist.areaCode = ''
if (e && e.length >= 1) {
e = e.filter(ele => ele.localName != '暂不选择')
e.forEach(el => {
this.infolist.address = this.infolist.address + el.localName
})