Browse Source

验收问题修改

yangc 8 years ago
parent
commit
024f815f2f

+ 3 - 0
components/applyPurchase/ApplyFooter.vue

@@ -149,6 +149,9 @@
 </script>
 <style lang="scss" scoped>
   .apply-footer {
+    position: absolute;
+    width: 100%;
+    top: 1575px;
     .good-provider {
       height: 330px;
       text-align: center;

+ 8 - 1
components/applyPurchase/ApplyInfo.vue

@@ -43,7 +43,8 @@
           <span class="number-content"><img src="/images/applyPurchase/hot-fire.png" alt="" v-if="purchaseMan.offerAmount > 10"><span :style="purchaseMan.offerAmount > 10 ? 'color: #ff9a00': ''">{{purchaseMan.offerAmount || 0}}</span>&nbsp;条</span>
           <span class="btn-content">
             <a>联系买家</a>
-            <a @click="sayPrice(purchaseMan)" v-text="purchaseMan.isOffer ? '已报价' : '我要报价'"></a>
+            <a v-if="!purchaseMan.isOffer" @click="sayPrice(purchaseMan)">我要报价</a>
+            <span v-else>已报价 <img src="/images/applyPurchase/green-check.png" alt=""></span>
           </span>
           <div class="expand-content">
             <div>
@@ -440,6 +441,12 @@
                   margin-right: 10px;
                 }
               }
+              span {
+                color: #39ae05;
+                img {
+                  margin-bottom: 2px;
+                }
+              }
             }
           }
           .expand-content {

+ 20 - 0
components/default/Footer.vue

@@ -84,6 +84,26 @@
           title: '迈迪杰科技'
         }]
       }
+    },
+    watch: {
+      $route: function (val, oldVal) {
+        let footer = document.getElementsByClassName('footer')[0]
+        if (this.$route.path === '/applyPurchase') {
+          footer.style.position = 'absolute'
+          footer.style.top = '2556px'
+        } else {
+          footer.style.position = 'initial'
+        }
+      }
+    },
+    mounted () {
+      let footer = document.getElementsByClassName('footer')[0]
+      if (this.$route.path === '/applyPurchase') {
+        footer.style.position = 'absolute'
+        footer.style.top = '2556px'
+      } else {
+        footer.style.position = 'initial'
+      }
     }
   }
 </script>

+ 6 - 1
pages/applyPurchase/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div>
+  <div class="seek">
     <publish-apply></publish-apply>
     <apply-info></apply-info>
     <apply-footer></apply-footer>
@@ -23,3 +23,8 @@
     }
   }
 </script>
+<style>
+  .seek {
+    position: relative;
+  }
+</style>

BIN
static/images/applyPurchase/green-check.png