Browse Source

修改BUG

shenjj 7 years ago
parent
commit
a1dc1394f3

+ 1 - 0
pages/mobile/center/vendor/productList/index.vue

@@ -135,6 +135,7 @@
     methods: {
       closeMoreinfo() {},
       update(item) {
+        console.log(item)
         this.$store.commit('product/brand/GET_ONSALE_DETAILS_SUCCESS', item)
         localStorage.setItem('ProductListItem', JSON.stringify(item))
         this.$router.push('/mobile/center/vendor/productdetails')

+ 4 - 1
pages/mobile/center/vendor/productdetails.vue

@@ -519,7 +519,10 @@
             return false
           }
         }
-        this.chooseItem.selfSale = 2
+        this.chooseItem.selfSale = this.storeInfoStore.uuid ? 1 : 2
+        if (!this.chooseItem.storeInfoOms) {
+          this.chooseItem.storeInfoOms = this.chooseItem.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'
+        }
         if (this.storeInfoStore.uuid) {
           if (this.chooseItem.storeInfoOms === '寄售') {
             this.chooseItem.selfSale = 2

+ 3 - 3
pages/mobile/order/details.vue

@@ -288,9 +288,9 @@
               <div class="pull-left">{{invoiceAddress.bankName}}:</div>
               <div class="pull-left">{{invoiceAddress.bankAccount}}</div>
             </div>
-            <div class="invoiceList clearfix">
-              <div class="pull-left">{{invoiceAddress.name}}:</div>
-              <div class="pull-left">{{invoiceAddress.telephone || '空'}}</div>
+            <div class="invoiceList clearfix" >
+              <div class="pull-left" :style="orderList.invoicetype === 1206 ? 'width: auto;text-align: left' : ''">{{invoiceAddress.name}}:</div>
+              <div class="pull-left" :style="orderList.invoicetype === 1206 ? 'width: auto;text-align: left' : ''">{{invoiceAddress.telephone || '空'}}</div>
             </div>
             <div class="invoiceList clearfix">
               {{invoiceAddress.area}}{{invoiceAddress.detailAddress}}

+ 7 - 1
pages/mobile/order/index.vue

@@ -28,7 +28,13 @@
           <div class="pull-left" v-if="vendorType !== 'buyer'" @click="toShopdetails(item)">
             <span>买家:</span>
             <!--<span class="labelInfo_ForItem" v-if="item.storeid === '33069557578d44e69bd91ad12d28a8d4'">寄售</span>-->
-            <span>{{item.buyentername || '(个人账户)'}}</span><span>&nbsp;|&nbsp;{{item.buyername}}</span>
+            <template v-if="item.buyentername === item.buyername">
+              <span>{{item.buyentername || '(个人账户)'}}</span>
+            </template>
+            <template v-else>
+              <span>{{item.buyentername}}</span><span>&nbsp;|&nbsp;{{item.buyername}}</span>
+            </template>
+
           </div>
           <div class="pull-left" v-else @click="toShopdetails(item)">卖家:
             <!--<span class="labelInfo_ForItem" v-if="item.storeid === '33069557578d44e69bd91ad12d28a8d4'">寄售</span>-->