diff --git a/rc-busness/pages/productdetails/productlist.vue b/rc-busness/pages/productdetails/productlist.vue index 999ab243..b7d8e122 100644 --- a/rc-busness/pages/productdetails/productlist.vue +++ b/rc-busness/pages/productdetails/productlist.vue @@ -321,7 +321,7 @@ export default { value: "", isLoading: false, userstype: [], - activeIndex: 0, + activeIndex: "0", allacindex: 0, userishwo: true, userishwo4: true, @@ -477,16 +477,13 @@ export default { }, created() { this.routeParams=this.$route.query; - - 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; + stype = (stype=='1'?1:0); + if(stype>-1){ + this.activeIndex = stype;//Initialized pet type selection + } this.$nextTick(() => { this.$refs.userstandard[0].style.margin = 0 + "px"; });