addressInput error fixed

This commit is contained in:
Vion
2022-01-21 19:28:46 +08:00
parent 33647c2f6c
commit f3c9a9c65b
4 changed files with 605 additions and 13 deletions

View File

@@ -477,11 +477,15 @@ export default {
},
created() {
this.routeParams=this.$route.query;
if(this.routeParams.stype)
let stype = this.routeParams.stype;
stype = (stype=='0'?0:1);
if(stype>-1)
this.activeIndex = this.routeParams.stype;//Initialized pet type selection
},
mounted() {
let stype = this.routeParams.stype;
this.$nextTick(() => {
this.$refs.userstandard[0].style.margin = 0 + "px";
});
@@ -539,7 +543,7 @@ export default {
this.userstype = data;
this.isLoading = false;
}
this.usercatlist = this.userstype.filter((item) => item.petType == "0");
this.usercatlist = this.userstype.filter((item) => item.petType == this.activeIndex);
this.usercatlist.map((element) => {
if (element.name == "品种") {
pinzhong.push(element);
@@ -569,7 +573,7 @@ export default {
element.checked = false;
});
}
console.log(pinzhong);
//console.log(pinzhong);
// debugger
});
let _self = this;