瀏覽代碼

品牌丢失问题

xiaohaizhao 1 年之前
父節點
當前提交
3632a0eb6c
共有 1 個文件被更改,包括 2 次插入1 次删除
  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,
           }