Merge branch 'addMenu'
This commit is contained in:
commit
3ea63de86b
|
@ -261,7 +261,9 @@ module.exports = function (webpackEnv) {
|
|||
// https://github.com/facebook/create-react-app/issues/5250
|
||||
// Pending further investigation:
|
||||
// https://github.com/terser-js/terser/issues/120
|
||||
inline: 2
|
||||
inline: 2,
|
||||
drop_console: true,
|
||||
drop_debugger: true
|
||||
},
|
||||
mangle: {
|
||||
safari10: true
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,3 +1,11 @@
|
|||
<!--
|
||||
* @Author: Wind
|
||||
* @Date: 2022-07-15 17:48:05
|
||||
* @LastEditors: Wind
|
||||
* @LastEditTime: 2022-07-25 09:55:19
|
||||
* @Description:
|
||||
* @FilePath: \frontend\public\index.html
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
|
@ -12,11 +20,9 @@
|
|||
manifest.json provides metadata used when your web app is installed on a
|
||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
-->
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/goods_new_v2.js?v4">
|
||||
|
||||
</script>
|
||||
<!--
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/goods_new_v3.js?v3"></script>
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
Only files inside the `public` folder can be referenced from the HTML.
|
||||
|
|
|
@ -257,22 +257,25 @@ 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 productItem = picItem?.products.find(
|
||||
(item) => item.id == cur_product.id
|
||||
)
|
||||
|
||||
const obj1 = []
|
||||
const obj2 = []
|
||||
|
||||
picItem?.describe_url.map((item, index) => {
|
||||
productItem?.pic.map((item, index) => {
|
||||
obj1.push({
|
||||
src: item,
|
||||
id: item,
|
||||
id: item + index,
|
||||
type: 'add',
|
||||
name: picItem.name + index
|
||||
name: productItem.title + index
|
||||
})
|
||||
obj2.push({
|
||||
url: item,
|
||||
id: item,
|
||||
id: item + index,
|
||||
type: 'add',
|
||||
name: picItem.name + index
|
||||
name: productItem.title + index
|
||||
})
|
||||
})
|
||||
console.log(' picItem =>', picItem)
|
||||
|
@ -633,7 +636,7 @@ export default class adduserinfo extends React.Component {
|
|||
}}
|
||||
fileList={
|
||||
this.state.model.show_url
|
||||
? [{ src: this.state.model.show_url }]
|
||||
? [{ src: this.state.model.show_url, id: 1 }]
|
||||
: null
|
||||
}
|
||||
value={this.state.model.show_url}
|
||||
|
|
|
@ -256,16 +256,20 @@ export default class adduserinfo extends React.Component {
|
|||
const obj1 = []
|
||||
const obj2 = []
|
||||
|
||||
picItem?.describe_url.map((item, index) => {
|
||||
const productItem = picItem?.products.find(
|
||||
(item) => item.id == cur_product.id
|
||||
)
|
||||
|
||||
productItem?.pic.map((item, index) => {
|
||||
obj1.push({
|
||||
src: item,
|
||||
name: item + index,
|
||||
id: item
|
||||
id: item + index,
|
||||
name: productItem.title + index
|
||||
})
|
||||
obj2.push({
|
||||
url: item,
|
||||
name: item + index,
|
||||
id: item
|
||||
id: item + index,
|
||||
name: productItem.title + index
|
||||
})
|
||||
})
|
||||
model2.describe_url = obj1
|
||||
|
|
Loading…
Reference in New Issue