Skip to content

Commit

Permalink
修复article,rank页面下拉刷新的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
eteplus committed Jan 31, 2016
1 parent 37bf4a7 commit dcf9cc3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import app from './main'
Vue.use(VueRouter)

const router = new VueRouter({
hashbang: true
hashbang: true,
history: false,
saveScrollPosition: true,
suppressTransitionError: true
})

routerConfig(router)
Expand Down
11 changes: 10 additions & 1 deletion src/views/article.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="content article">
<div class="article">
<v-bar type="nav">
<h1 class="title" v-text="title"></h1>
<v-button types="nav link"
Expand Down Expand Up @@ -137,6 +137,15 @@ export default {
</script>

<style>
.article {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.article-tabs .buttons-tab {
z-index: 10;
margin-top:2.2rem;
Expand Down
11 changes: 10 additions & 1 deletion src/views/home/rank.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="content rank">
<div class="rank">
<v-bar type="nav">
<h1 class="title" v-text="title"></h1>
<v-button types="nav link"
Expand Down Expand Up @@ -129,6 +129,15 @@ export default {
</script>

<style>
.rank {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.rank .content-block-title {
margin: .75rem .75rem .5rem;
}
Expand Down

0 comments on commit dcf9cc3

Please sign in to comment.