@@ -59,7 +59,7 @@ | |||
//获取当前页面路径 | |||
let path = this.$route.path; | |||
//判断是否在可滑动切换页面的列表中 | |||
if(allPage.indexOf(path)==-1 || scrollTop || this.$store.state.menuState){ | |||
if(allPage.indexOf(path)==-1 || scrollTop || this.$store.state.menuState || this.$store.state.commonWin){ | |||
return; | |||
} | |||
//判断是否只可向一个方向滑动 |
@@ -5,6 +5,7 @@ Vue.use(Vuex) | |||
export default new Vuex.Store({ | |||
state: { | |||
commonWin:false, | |||
menuState:false, | |||
imgBaseUrl: '', | |||
pagePath: [ |
@@ -129,9 +129,12 @@ | |||
.item:active { | |||
transform:scale(0.9); | |||
} | |||
.item{ | |||
div:focus{ | |||
outline:none; | |||
} | |||
div{ | |||
-webkit-tap-highlight-color:rgba(0,0,0,0); | |||
} | |||
.item1 { | |||
margin-top: calc(93/750*100vw); |
@@ -14,8 +14,12 @@ | |||
props:['product','category','detailName'], | |||
methods:{ | |||
closeWin(){ | |||
this.$store.state.commonWin = false; | |||
this.$emit('hiddenWin'); | |||
} | |||
}, | |||
mounted() { | |||
this.$store.state.commonWin = true; | |||
} | |||
} | |||
</script> |