fix(系统营销模板):修复优惠券中,上传背景图设置,上传成功后,前端未展示
This commit is contained in:
parent
402b877caf
commit
6109e4809c
|
@ -18,8 +18,9 @@ export default class backPicture extends React.Component {
|
||||||
componentWillMount(e) {
|
componentWillMount(e) {
|
||||||
let config = JSON.parse(sessionStorage.getItem('editorConfig'));
|
let config = JSON.parse(sessionStorage.getItem('editorConfig'));
|
||||||
if (config && config.coupon && config.coupon.product_list) {
|
if (config && config.coupon && config.coupon.product_list) {
|
||||||
let { bgimg } = config.coupon.product_list.backgroundImg;
|
let bgimg = config.coupon.product_list.backgroundImg.bgImg;
|
||||||
this.setState({ bgimg });
|
let {bgColor} = config.coupon.product_list.backgroundImg;
|
||||||
|
this.setState({ bgimg,bgColor });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bgColorFn(color){
|
bgColorFn(color){
|
||||||
|
|
Loading…
Reference in New Issue