Browse Source

适应pc端

baid222u 4 years ago
parent
commit
f5ac1d4a54
3 changed files with 6 additions and 4 deletions
  1. 5 1
      assets/a.scss
  2. 1 1
      pages/bidding/sub.vue
  3. 0 2
      plugins/auth.js

+ 5 - 1
assets/a.scss

@@ -11,9 +11,12 @@ body {
     padding-bottom   : $table;
     font-size        : 1.5rem;
     height           : 100%;
+    position         : relative;
+    max-width        : 500px;
+    margin           : auto;
 
     .table {
-        position        : fixed;
+        position        : absolute;
         bottom          : 0;
         left            : 0;
         width           : 100%;
@@ -22,6 +25,7 @@ body {
         background-color: #fff;
         padding-top     : 15px;
         z-index         : 10000;
+        max-width       : 500px;
 
         ul {
             width : 100%;

+ 1 - 1
pages/bidding/sub.vue

@@ -55,7 +55,7 @@ export default {
   },
   methods: {
     Subscribe(e) {
-      this.$router.push({ path: '/bidding/sub?id=20' })
+      this.$router.push({ path: '/bidding/' })
     }
   }
 }

+ 0 - 2
plugins/auth.js

@@ -1,7 +1,5 @@
 export default ({ app }) => {
-  console.log($store)
   app.router.beforeEach((to, from, next) => {
-      console.log(this)
       next();
   });
 };