Task:多店铺选择
This commit is contained in:
@@ -38,7 +38,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
open(records) {
|
open(records) {
|
||||||
console.log(records);
|
|
||||||
if(!records) return;
|
if(!records) return;
|
||||||
this.show = true;
|
this.show = true;
|
||||||
this.list = records && [...records] || []
|
this.list = records && [...records] || []
|
||||||
|
|||||||
@@ -595,9 +595,26 @@ export default {
|
|||||||
}
|
}
|
||||||
this.fetchInnDetail()
|
this.fetchInnDetail()
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
activeIndex: {
|
||||||
|
handler(val) {
|
||||||
|
console.log(val);
|
||||||
|
if (val === 1) {
|
||||||
|
this.fetchInnInfoList()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
deep: true,
|
||||||
|
immediate: true
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goHome(e) {
|
goHome(e) {
|
||||||
this.id = e.id
|
this.id = e.id
|
||||||
|
if(this.activeIndex !==1) {
|
||||||
|
this.activeInde = 1
|
||||||
|
} else {
|
||||||
|
this.fetchInnInfoList()
|
||||||
|
}
|
||||||
this.fetchInnDetail()
|
this.fetchInnDetail()
|
||||||
},
|
},
|
||||||
changeHome() {
|
changeHome() {
|
||||||
|
|||||||
Reference in New Issue
Block a user