Explorar el Código

品牌丢失问题

xiaohaizhao hace 1 año
padre
commit
3632a0eb6c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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,
           }