@@ -37,6 +37,18 @@ import Breadcrumb from '@/components/Breadcrumb'
import Hamburger from '@/components/Hamburger'
export default {
+ data() {
+ return {
+ isShow: true
+ }
+ },
+ mounted() {
+ if(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) {
+ this.isShow = false
+ } else {
+ this.isShow = true
+ }
+ },
components: {
Breadcrumb,
Hamburger
diff --git a/src/main.js b/src/main.js
index f87c5c7..38a968d 100644
--- a/src/main.js
+++ b/src/main.js
@@ -14,11 +14,15 @@ import store from './store'
import router from './router'
// import WeVue from 'we-vue'
// import 'we-vue/lib/style.css'
-import { Button, Cell, CellGroup, Image, List, PullRefresh, SwipeCell, Col, Row, Divider, Sticky } from 'vant';
+import { Button, Cell, CellGroup, Image, List, PullRefresh, SwipeCell, Col, Row, Divider, Sticky, NavBar, Icon, Tabbar, TabbarItem} from 'vant';
import '@/icons' // icon
import '@/permission' // permission control
+import VueTouch from"vue-touch";
+
+Vue.use(VueTouch, {name:'v-touch'})
+
/**
* If you don't want to use mock-server
* you want to use MockJs for mock api
@@ -50,6 +54,10 @@ Vue.use(Col);
Vue.use(Row);
Vue.use(Divider);
Vue.use(Sticky);
+Vue.use(NavBar);
+Vue.use(Icon);
+Vue.use(Tabbar);
+Vue.use(TabbarItem);
Vue.use(uploader)
Vue.use(EVueContextmenu)
@@ -66,7 +74,7 @@ new Vue({
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) {
Vue.prototype.$pc = false
} else {
- Vue.prototype.$pc = true
+ Vue.prototype.$pc = false
let winWidth = document.documentElement.offsetWidth ||
document.body.offsetWidth
winWidth = winWidth < 1366 ? 1366 : winWidth
diff --git a/src/views/home/mobile/index.vue b/src/views/home/mobile/index.vue
index 4525f78..8a776ff 100644
--- a/src/views/home/mobile/index.vue
+++ b/src/views/home/mobile/index.vue
@@ -6,6 +6,7 @@
:finished="finished"
:finished-text="statistics()"
@load="getFileList(true)"
+ @scroll="swipeUp"
>
+
+
+
+
+
+
+
+
+
+ {{test}} {{diffTabbarTop}} {{lastTabbarOffsetTop}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -50,32 +86,68 @@
-
-
-
- {{item.name}}
-
-
- {{formatTime(item.agoTime)}} {{formatSize(item.size)}}
+
+
+ {{item.name}}
+
+
+
+ {{formatTime(item.agoTime)}} {{formatSize(item.size)}}
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ 浏览
+ 最近
+ 收藏
+ 设置
+
+
+
+
+ 浏览
+ 最近
+ 收藏
+ 设置
+
+
+
+ 浏览
+ 最近
+ 收藏
+ 设置
+
+
+