修改
This commit is contained in:
parent
a6ed3961e4
commit
3f99c4f3f2
@ -157,6 +157,7 @@
|
|||||||
* 点击城市后回调
|
* 点击城市后回调
|
||||||
*/
|
*/
|
||||||
async changCity(index, item) {
|
async changCity(index, item) {
|
||||||
|
console.log(index, this.tabCurrentIndex)
|
||||||
if (this.tabbars[index].id != item.id) {
|
if (this.tabbars[index].id != item.id) {
|
||||||
this.tabbars[index].localName = item.areaName;
|
this.tabbars[index].localName = item.areaName;
|
||||||
this.tabbars[index].id = item.areaCode;
|
this.tabbars[index].id = item.areaCode;
|
||||||
@ -177,6 +178,18 @@
|
|||||||
children: data.data,
|
children: data.data,
|
||||||
};
|
};
|
||||||
this.tabbars.push(current);
|
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.tabCurrentIndex++;
|
||||||
// 当前距离重新为最上面
|
// 当前距离重新为最上面
|
||||||
this.$set(this, 'scrollTop', 0)
|
this.$set(this, 'scrollTop', 0)
|
||||||
|
|||||||
@ -170,6 +170,7 @@
|
|||||||
this.infolist.address = ''
|
this.infolist.address = ''
|
||||||
this.infolist.areaCode = ''
|
this.infolist.areaCode = ''
|
||||||
if (e && e.length >= 1) {
|
if (e && e.length >= 1) {
|
||||||
|
e = e.filter(ele => ele.localName != '暂不选择')
|
||||||
e.forEach(el => {
|
e.forEach(el => {
|
||||||
this.infolist.address = this.infolist.address + el.localName
|
this.infolist.address = this.infolist.address + el.localName
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user