💪 optimize: 优化代码
This commit is contained in:
parent
e60e189ac6
commit
5e80c71cd4
|
@ -196,20 +196,24 @@ const Combining = forwardRef((props, ref) => {
|
|||
receive_mode,
|
||||
instruction,
|
||||
timer_type: time_limit.receive_time.start_time ? 2 : 1,
|
||||
group_cover: [
|
||||
{
|
||||
id: new Date().getTime(),
|
||||
src: group_cover,
|
||||
name: "商品展示"
|
||||
}
|
||||
],
|
||||
group_image: [
|
||||
{
|
||||
id: new Date().getTime(),
|
||||
src: group_image,
|
||||
name: "商品描述"
|
||||
}
|
||||
],
|
||||
group_cover: group_cover
|
||||
? [
|
||||
{
|
||||
id: new Date().getTime(),
|
||||
src: group_cover,
|
||||
name: "商品展示"
|
||||
}
|
||||
]
|
||||
: [],
|
||||
group_image: group_image
|
||||
? [
|
||||
{
|
||||
id: new Date().getTime(),
|
||||
src: group_image,
|
||||
name: "商品描述"
|
||||
}
|
||||
]
|
||||
: [],
|
||||
timer: [time_limit.receive_time.start_time, time_limit.receive_time.end_time]
|
||||
})
|
||||
sessionStorage.setItem("knockGoldData", JSON.stringify(propsData.product.reduce))
|
||||
|
|
|
@ -144,20 +144,24 @@ export default class combiningAdd extends React.Component {
|
|||
restrict: reqCopy.restrict,
|
||||
instruction,
|
||||
date_time: [reqCopy.begin_time, reqCopy.end_time],
|
||||
group_cover: [
|
||||
{
|
||||
id: new Date().getTime(),
|
||||
src: group_cover,
|
||||
name: "商品展示"
|
||||
}
|
||||
],
|
||||
group_image: [
|
||||
{
|
||||
id: new Date().getTime(),
|
||||
src: group_image,
|
||||
name: "商品描述"
|
||||
}
|
||||
],
|
||||
group_cover: group_cover
|
||||
? [
|
||||
{
|
||||
id: new Date().getTime(),
|
||||
src: group_cover,
|
||||
name: "商品展示"
|
||||
}
|
||||
]
|
||||
: [],
|
||||
group_image: group_image
|
||||
? [
|
||||
{
|
||||
id: new Date().getTime(),
|
||||
src: group_image,
|
||||
name: "商品描述"
|
||||
}
|
||||
]
|
||||
: [],
|
||||
timer: time_limit.receive_time.start_time
|
||||
? [time_limit.receive_time.start_time, time_limit.receive_time.end_time]
|
||||
: [],
|
||||
|
|
Loading…
Reference in New Issue