| //获取当前页面路径 | //获取当前页面路径 | ||||
| let path = this.$route.path; | 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; | return; | ||||
| } | } | ||||
| //判断是否只可向一个方向滑动 | //判断是否只可向一个方向滑动 |
| export default new Vuex.Store({ | export default new Vuex.Store({ | ||||
| state: { | state: { | ||||
| commonWin:false, | |||||
| menuState:false, | menuState:false, | ||||
| imgBaseUrl: '', | imgBaseUrl: '', | ||||
| pagePath: [ | pagePath: [ |
| .item:active { | .item:active { | ||||
| transform:scale(0.9); | transform:scale(0.9); | ||||
| } | } | ||||
| .item{ | |||||
| div:focus{ | |||||
| outline:none; | outline:none; | ||||
| } | } | ||||
| div{ | |||||
| -webkit-tap-highlight-color:rgba(0,0,0,0); | |||||
| } | |||||
| .item1 { | .item1 { | ||||
| margin-top: calc(93/750*100vw); | margin-top: calc(93/750*100vw); |
| props:['product','category','detailName'], | props:['product','category','detailName'], | ||||
| methods:{ | methods:{ | ||||
| closeWin(){ | closeWin(){ | ||||
| this.$store.state.commonWin = false; | |||||
| this.$emit('hiddenWin'); | this.$emit('hiddenWin'); | ||||
| } | } | ||||
| }, | |||||
| mounted() { | |||||
| this.$store.state.commonWin = true; | |||||
| } | } | ||||
| } | } | ||||
| </script> | </script> |