fix(系统营销模板):修复优惠券中,上传背景图设置,上传成功后,前端未展示

This commit is contained in:
Apple 2022-10-11 19:03:11 +08:00
parent 402b877caf
commit 6109e4809c
1 changed files with 3 additions and 2 deletions

View File

@ -18,8 +18,9 @@ export default class backPicture extends React.Component {
componentWillMount(e) {
let config = JSON.parse(sessionStorage.getItem('editorConfig'));
if (config && config.coupon && config.coupon.product_list) {
let { bgimg } = config.coupon.product_list.backgroundImg;
this.setState({ bgimg });
let bgimg = config.coupon.product_list.backgroundImg.bgImg;
let {bgColor} = config.coupon.product_list.backgroundImg;
this.setState({ bgimg,bgColor });
}
}
bgColorFn(color){