Merge branch 'addMenu'

This commit is contained in:
Apple 2022-07-25 10:36:33 +08:00
commit 3ea63de86b
7 changed files with 8153 additions and 20 deletions

View File

@ -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

2235
public/goods_new_v3.js Normal file

File diff suppressed because it is too large Load Diff

5883
public/goods_new_v4.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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.

View File

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

View File

@ -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