Ver código fonte

详情商品佣金显示不正确

xiansin 4 anos atrás
pai
commit
1795ee544b

+ 5 - 1
components/page-component/app-order-goods-info/app-order-goods-info.vue

xqd xqd
@@ -20,7 +20,7 @@
                             ¥{{pluginData.price_list ? pluginData.price_list[pluginIndex].value : goods.total_price}}
                         </view>
                     </view>
-                    <view class="share-price" v-if="isShare">佣金¥{{goods.share_price?goods.share_price:0}}</view>
+                    <view class="share-price" v-if="isShare">佣金¥{{sharePrice?sharePrice:0}}</view>
                 </view>
                 <view class="composition-price" v-if="plugin == 'composition'">
                     搭配套餐价<text>¥{{goods.total_price}}</text>
@@ -44,6 +44,10 @@ export default {
             type: String,
             default: ''
         },
+        sharePrice: {
+            type: String,
+            default: ''
+        },
         isLastOne: {
             type: Boolean,
             default: true

+ 2 - 0
pages/order/order-detail/order-detail.vue

xqd xqd
@@ -377,6 +377,7 @@
                                                   :plugin-data="orderDetail.plugin_data"
                                                   :plugin-index="index"
                                                   :is-share="is_share"
+                                                  :share-price="list.share_price"
                             ></app-order-goods-info>
                             <block v-if='orderDetail.is_send == 1 && (list.show || index == 0)'>
                                 <view class='dir-left-nowrap sale-box'>
@@ -416,6 +417,7 @@
                             <app-order-goods-info style="width:100%;" :goods='item.goods_info'
                                                   :plugin-data="orderDetail.plugin_data"
                                                   :plugin-index="index"
+                                                  :share-price="item.share_price"
                                                   :is-share="is_share"></app-order-goods-info>
                         </app-jump-button>
                         <block v-if='orderDetail.is_send == 1 && !is_share'>