fix(系统营销模板):修复优惠券中,上传背景图设置,上传成功后,前端未展示
This commit is contained in:
parent
402b877caf
commit
6109e4809c
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue