yangc il y a 7 ans
Parent
commit
2b1abecb9f

+ 6 - 1
components/applyPurchase/ApplyInfo.vue

@@ -160,7 +160,7 @@
                <input type="text" class="form-control" placeholder="数量">-->
             </div>
             <div class="form-item form-right">
-              <span><i>*</i>单价<span v-if="purchaseManList.content[currentSayPriceIndex].currency" v-text="purchaseManList.content[currentSayPriceIndex].currency == 'USD' ? '$' : '¥'"></span>:</span>
+              <span><i>*</i>单价<span v-if="purchaseManList.content[currentSayPriceIndex].currency" v-text="purchaseManList.content[currentSayPriceIndex].currency == 'USD' ? '($)' : '(¥)'"></span>:</span>
               <!--{{purchaseManList.content[currentSayPriceIndex].currency == 'USD' ? '$' : '¥'}})-->
               <select v-if="!purchaseManList.content[currentSayPriceIndex].currency" v-model="sayPriceObj.currency">
                 <option value="RMB">¥</option>
@@ -447,6 +447,11 @@
         return {index: -1}
       },
       checkValid: function () {
+        for (let i = 0; i < this.sayPriceObj.replies.length; i++) {
+          if (!this.sayPriceObj.replies[i].lapQty || !this.sayPriceObj.replies[i].price) {
+            return false
+          }
+        }
         return this.validSayPrice.leadtime && this.validSayPrice.repliesLapQty && this.validSayPrice.repliesPrice
       },
 //      onUnitPriceBlur: function () {

+ 2 - 2
components/applyPurchase/BatchPublish.vue

@@ -141,7 +141,7 @@
         <!--<p style="line-height: 20px;margin-top: 10px;padding:0 10px">非常抱歉,目前暂无此品牌!<br>若直接前往“品牌申请”,我们将为您先开通寄售功能,待申请通过后再提交开店申请。</p>-->
         <!--<p style="line-height: 20px;">前往<a @click="goBrandApply()"  target="_blank" style="color: #5078CB">品牌申请&nbsp;<i class="fa fa-arrow-right"></i></a></p>-->
         <p><img src="/images/applyPurchase/check.png" alt="">成功发布{{successResult.successAmount || 0}}个</p>
-        <p><span v-if="successResult.goodsAmount && successResult.goodsAmount > 0">其中<span class="count">{{successResult.goodsAmount || 0}}</span>个求购型号有现货在售,</span>您可前往“<span class="count">买家中心-我的求购</span>”查询并直接购买</p>
+        <p v-if="successResult.goodsAmount && successResult.goodsAmount > 0 ">其中<span>{{successResult.goodsAmount || 0}}</span>个求购型号有现货在售,您可前往“<span>买家中心-我的求购</span>”查询并直接购买</p>
         <div>
           <a @click="showRemindBox = false">继续发布</a>
           <a href="/user#/seekPurchase" target="_blank">前往我的求购</a>
@@ -887,7 +887,7 @@
             font-size: 16px;
             margin-right: 10px;
           }
-          .count {
+          span {
             color: #007aff;
           }
           &:last-child {

+ 1 - 1
components/applyPurchase/PublishApply.vue

@@ -291,7 +291,7 @@
             inquiryItem.userTel = this.user.data.userTel
             inquiryItem.needquantity = this.applyObj.amount
             inquiryItem.inbrand = this.applyObj.brand
-            inquiryItem.currency = this.applyObj.currency
+            inquiryItem.currency = this.applyObj.unitPrice ? this.applyObj.currency : null
             inquiryItem.cmpCode = this.applyObj.code
             inquiryItem.unitPrice = this.applyObj.unitPrice
             inquiryItem.produceDate = this.applyObj.produceDate

+ 9 - 9
components/default/Footer.vue

@@ -95,16 +95,16 @@
           footer.style.position = 'initial'
         }
       }
-    },
-    mounted () {
-      let footer = document.getElementsByClassName('footer')[0]
-      if (this.$route.path === '/applyPurchase') {
-        footer.style.position = 'absolute'
-        footer.style.top = '2581px'
-      } else {
-        footer.style.position = 'initial'
-      }
     }
+//    mounted () {
+//      let footer = document.getElementsByClassName('footer')[0]
+//      if (this.$route.path === '/applyPurchase') {
+//        footer.style.position = 'absolute'
+//        footer.style.top = '2581px'
+//      } else {
+//        footer.style.position = 'initial'
+//      }
+//    }
   }
 </script>
 <style lang="scss" scoped>

+ 1 - 1
pages/applyPurchase/index.vue

@@ -2,7 +2,7 @@
   <div class="seek">
     <publish-apply></publish-apply>
     <apply-info></apply-info>
-    <apply-footer></apply-footer>
+    <!--<apply-footer></apply-footer>-->
   </div>
 </template>
 <script>