From fc038e74da1bd734b057fb43837f943882b683b5 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Thu, 30 Jun 2022 14:39:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=9B=BE=E7=89=87Key?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=94=AF=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/product/add.js | 6 +++--- src/pages/plan/product/add.js | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/pages/exchangecode/product/add.js b/src/pages/exchangecode/product/add.js index ea61751e..f6ec1e85 100644 --- a/src/pages/exchangecode/product/add.js +++ b/src/pages/exchangecode/product/add.js @@ -256,21 +256,21 @@ export default class adduserinfo extends React.Component { let picItem = window.goods.find((item) => { return item.id == cur_product.product_category_id }) + console.log(picItem) const obj1 = [] const obj2 = [] if (picItem.describe_url) { - let id_name = new Date().getTime() picItem?.describe_url.map((item) => { obj1.push({ src: item, - id: id_name, + id: item, type: 'add', name: picItem.name }) obj2.push({ url: item, - id: id_name, + id: item, type: 'add', name: picItem.name }) diff --git a/src/pages/plan/product/add.js b/src/pages/plan/product/add.js index 66a850a3..6e25049c 100644 --- a/src/pages/plan/product/add.js +++ b/src/pages/plan/product/add.js @@ -256,17 +256,16 @@ export default class adduserinfo extends React.Component { const obj1 = [] const obj2 = [] - const _id = new Date().getTime() + '48153461544' picItem?.describe_url.map((item) => { obj1.push({ src: item, name: 'xxx.png', - id: _id + id: item }) obj2.push({ url: item, name: 'xxx.png', - id: _id + id: item }) }) model2.describe_url = obj1