baid222u 6 anni fa
parent
commit
a1a8370f68
5 ha cambiato i file con 10 aggiunte e 6 eliminazioni
  1. 2 1
      assets/a.scss
  2. 1 1
      components/titles.vue
  3. 5 2
      pages/bidding/index.vue
  4. 1 1
      pages/index.vue
  5. 1 1
      pages/project/index.vue

+ 2 - 1
assets/a.scss

@@ -95,6 +95,7 @@ body {
         height    : 44px;
         padding   : 7px 17px;
         background: #fff;
+        text-align: center;
 
         input {
             width              : 73%;
@@ -126,7 +127,7 @@ body {
         padding-bottom  : 75px;
         background-color: #f8f9fa;
         height          : 90%;
-
+        
 
         li {
             height          : 302px*$a;

+ 1 - 1
components/titles.vue

@@ -18,7 +18,7 @@ export default {
   watch: {}
 }
 </script>
-<style>
+<style scoped>
 .head img {
   float: left;
   padding-left: 6px;

+ 5 - 2
pages/bidding/index.vue

@@ -1,7 +1,7 @@
 <template>
   <section class="detaile">
     <div class="head">
-      <img src="~/static/img/back.png" alt>
+      <img src="~/static/img/back.png" alt @click="go">
       <span>项目详情</span>
       <img src="~/static/img/NotCollection.png" alt>
       <img src="~/static/img/share.png" alt>
@@ -210,7 +210,7 @@ export default {
     }
   },
   created: function() {
-    this.$store.commit('equal',30)
+    this.$store.commit('equal', 30)
   },
   mounted() {
     console.log(this.$store.state.counter)
@@ -224,6 +224,9 @@ export default {
   methods: {
     payments(e) {
       this.payment = true
+    },
+    go(e) {
+      this.$router.go(-1)
     }
   }
 }

+ 1 - 1
pages/index.vue

@@ -103,7 +103,7 @@ export default {
 .bid {
   height: 100%;
 }
-body div {
+body  div {
   height: 100%;
 }
 .p1 {

+ 1 - 1
pages/project/index.vue

@@ -100,7 +100,7 @@ export default {
 }
 </script>
 
-<style>
+<style scoped>
 .bid {
   height: 100%;
 }