diff --git a/src/components/backtop/AlBackTop.vue b/src/components/backtop/AlBackTop.vue new file mode 100644 index 0000000..5ed7953 --- /dev/null +++ b/src/components/backtop/AlBackTop.vue @@ -0,0 +1,142 @@ + + + + + + + + + + + diff --git a/src/layout/index.vue b/src/layout/index.vue index 315f247..0221de3 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -50,20 +50,15 @@ export default { }, mounted() { if(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) { - this.isShow = false window.pc = false } else { - this.isShow = true window.pc = true } - console.log(getToken()) if(getToken()){ - this.isShow = true - window.pc = true + this.isShow = window.pc; }else{ this.isShow = false - window.pc = false } }, methods: { diff --git a/src/views/public/p/index.vue b/src/views/public/p/index.vue index 43f3509..e164fca 100644 --- a/src/views/public/p/index.vue +++ b/src/views/public/p/index.vue @@ -1,41 +1,50 @@ - + + - Scroll down to see the bottom-right button. - - - UP - - + + {{leftContent}}d + + + + + + + + + + + + + + + + + + +