Quellcode durchsuchen

品牌丢失问题

xiaohaizhao vor 1 Jahr
Ursprung
Commit
3632a0eb6c
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      packageA/favorites/index.js

+ 2 - 1
packageA/favorites/index.js

@@ -165,12 +165,13 @@ Page({
         istool: 0,
         type: "标准订单",
         "tradefield": data.type, //必选
+        sa_brandid: this.data.sa_brandid,
         "items": data.list.map(v => {
           return {
             "sa_orderitemsid": 0,
             "itemid": v.itemid,
             "qty": v.favoritesqty,
-            sa_brandid: this.data.sa_brandid,
+            "sa_brandid": v.brand.length ? v.brand[0].sa_brandid : this.data.sa_brandid || 0,
             width: v.favoriteswidth || 0,
             length: v.favoriteslength || 0,
           }