Skip to content

Commit

Permalink
初步完成
Browse files Browse the repository at this point in the history
  • Loading branch information
jmh65535 committed Oct 15, 2018
1 parent 28fe2c6 commit 3c2d21e
Show file tree
Hide file tree
Showing 11 changed files with 377 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.DS_Store
node_modules
/dist
#/dist

# local env files
.env.local
Expand Down
28 changes: 21 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
this.flag.love = love
this.flag.home = home
this.flag.user = user
console.log(this.flag)
},
/*
* header: show
Expand All @@ -76,6 +75,7 @@
this.show = true
this.showBackBtn = false
this.showFooterTab = true
// 路由个性设定
switch (nVal) {
case 'index':
Expand All @@ -91,6 +91,7 @@
}
this.showBackBtn = true
this.selected = '首页'
this.showFooterTab = false
this.tabbarFlag({p24: true})
break
case 'service':
Expand All @@ -115,6 +116,7 @@
this.title = '我家'
this.selected = '我家'
this.tabbarFlag({home: true})
// this.showFooterTab = false
break
case 'user':
this.show = false
Expand All @@ -138,6 +140,9 @@
default:
this.showBackBtn = false
}
// 图片预览关闭
if(window.IPre) window.IPre.close()
}
},
watch: {
Expand Down
10 changes: 8 additions & 2 deletions src/components/cart/Cart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,14 @@
},
},
mounted() {
new BScroll('.ct-cates-wrap')
this.scroll = new BScroll('.ct-products-scroll-wrap')
new BScroll('.ct-cates-wrap', {
// better-scroll 会将点击事件去掉,要在这里开启,同时点击在PC 会被执行两次,要在这里控制
tap: true
})
this.scroll = new BScroll('.ct-products-scroll-wrap', {
// better-scroll 会将点击事件去掉,要在这里开启,同时点击在PC 会被执行两次,要在这里控制
tap: true
})
}
}
</script>
Expand Down
Loading

0 comments on commit 3c2d21e

Please sign in to comment.