소스 검색

品牌丢失问题

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,
           }