瀏覽代碼

bug修复

master
suizhijia 5 年之前
父節點
當前提交
426b6df790
共有 4 個文件被更改,包括 10 次插入2 次删除
  1. +1
    -1
      src/App.vue
  2. +1
    -0
      src/store/index.js
  3. +4
    -1
      src/views/List.vue
  4. +4
    -0
      src/views/phone_appliances_win.vue

+ 1
- 1
src/App.vue 查看文件

//获取当前页面路径 //获取当前页面路径
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;
} }
//判断是否只可向一个方向滑动 //判断是否只可向一个方向滑动

+ 1
- 0
src/store/index.js 查看文件



export default new Vuex.Store({ export default new Vuex.Store({
state: { state: {
commonWin:false,
menuState:false, menuState:false,
imgBaseUrl: '', imgBaseUrl: '',
pagePath: [ pagePath: [

+ 4
- 1
src/views/List.vue 查看文件

.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);

+ 4
- 0
src/views/phone_appliances_win.vue 查看文件

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>

Loading…
取消
儲存