yangc 7 жил өмнө
parent
commit
075c9d3520

+ 47 - 9
components/applyPurchase/ApplyInfo.vue

@@ -160,7 +160,12 @@
                <input type="text" class="form-control" placeholder="数量">-->
             </div>
             <div class="form-item form-right">
-              <span><i>*</i>单价({{purchaseManList.content[currentSayPriceIndex].currency == 'USD' ? '$' : '¥'}}):</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>
+                <option value="USD">$</option>
+              </select>
               <input type="number" class="form-control" @input="onReplyPriceInput(index)" @blur="onReplyPriceBlur(index)" placeholder="单价" v-model="reply.price">
               <i class="fa fa-minus-circle" v-if="sayPriceObj.replies.length > 1" @click="setReplies('sub', index)"></i>
               <i class="fa fa-plus-circle" v-if="sayPriceObj.replies.length < 5" @click="setReplies('add', index)"></i>
@@ -308,6 +313,9 @@
               purchaseMan.vendUU = this.user.data.enterprise.uu
               purchaseMan.vendorUserUU = this.user.data.userUU
               purchaseMan.qutoApp = 'MALL'
+              if (!purchaseMan.currency) {
+                purchaseMan.currency = this.sayPriceObj.currency
+              }
               this.$http.post('/inquiry/sale/item/save', purchaseMan).then(response => {
                 this.showLoading = false
                 if (response.data.success === false) {
@@ -995,13 +1003,12 @@
     }
     .say-price-box {
       position: fixed;
-      width: 527px;
+      width: 456px;
       top: 30%;
       left: 33%;
-      border-radius: 5px;
-      -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
-      -moz-box-shadow: 0 5px 15px rgba(0,0,0,.5);
-      box-shadow: 0 5px 15px rgba(0,0,0,.5);
+      /*-webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);*/
+      /*-moz-box-shadow: 0 5px 15px rgba(0,0,0,.5);*/
+      /*box-shadow: 0 5px 15px rgba(0,0,0,.5);*/
       z-index: 1;
       .title {
         position: relative;
@@ -1009,10 +1016,14 @@
         background: #4290f7;
         line-height: 44px;
         color: #fff;
+        border: {
+          top-right-radius: 5px;
+          top-left-radius: 5px;
+        }
         > div {
           display: inline-block;
-          padding-left: 66px;
-          width: 49%;
+          padding-left: 57px;
+          width: 47%;
           overflow: hidden;
           text-overflow: ellipsis;
           white-space: nowrap;
@@ -1097,9 +1108,32 @@
             }
             &.form-right {
               padding-left: 13px;
+              position: relative;
               input {
                 width: 101px;
               }
+              select {
+                position: absolute;
+                top: 0;
+                width: 32px;
+                height: 28px;
+                background: url(/images/applyPurchase/arrow-down.png) no-repeat right center;
+                border: {
+                  left: none;
+                  top: none;
+                  bottom: none;
+                  right: 1px solid #bfbfbf;
+                  bottom-left-radius: 4px;
+                  top-left-radius: 4px;
+                }
+                color: #5392f9;
+                font: small-caption;
+                padding-left: 8px;
+                outline: none;
+                & + input {
+                  padding-left: 36px;
+                }
+              }
               > i {
                 margin-left: 4px;
               }
@@ -1108,11 +1142,15 @@
         }
       }
       .operate {
-        border-top: 1px solid #e4e5e6;
         background: #fff;
         height: 62px;
         text-align: center;
         padding-top: 15px;
+        border: {
+          top: 1px solid #e4e5e6;
+          bottom-left-radius: 5px;
+          bottom-right-radius: 5px;
+        }
         span {
           display: inline-block;
           width: 64px;

+ 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>{{successResult.goodsAmount || 0}}</span>个求购型号有现货在售,您可前往“<span>买家中心-我的求购</span>”查询并直接购买</p>
+        <p><span v-if="successResult.goodsAmount && successResult.goodsAmount > 0">其中<span class="count">{{successResult.goodsAmount || 0}}</span>个求购型号有现货在售,</span>您可前往“<span class="count">买家中心-我的求购</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;
           }
-          span {
+          .count {
             color: #007aff;
           }
           &:last-child {