diff --git a/src/pages/exchangepage/edittemplate/goodstemplate.js b/src/pages/exchangepage/edittemplate/goodstemplate.js index 52257719..3db26675 100644 --- a/src/pages/exchangepage/edittemplate/goodstemplate.js +++ b/src/pages/exchangepage/edittemplate/goodstemplate.js @@ -46,17 +46,15 @@ export default class edittemplate extends React.Component { render() { let goodsConfig = this.props.goodsdata; - console.log(49,goodsConfig); let naVisual = [] if (goodsConfig.bottomBar) { - naVisual = goodsConfig.bottomBar.navlist.filter(item => item.iswitch); + naVisual = goodsConfig.bottomBar.navlist.filter(item => item.iswitch==1); } - console.log(54,naVisual); return (
{ - goodsConfig.search && goodsConfig.search.iswitch ? + goodsConfig.search && goodsConfig.search.iswitch==1 ?
this.customComponent(e, 'search', 'marketing-sousuolan-', '搜索栏')} className={this.state.selectDom == 'search' ? 'selectBorder' : ''} ref="search">
: null } @@ -66,19 +64,19 @@ export default class edittemplate extends React.Component { } { - goodsConfig.picture && goodsConfig.picture.iswitch ?
this.customComponent(e, 'picture', 'marketing-tupian', '图片')} ref="picture" className={this.state.selectDom == 'picture' ? 'selectBorder' : ''}>
: null + goodsConfig.picture && goodsConfig.picture.iswitch==1 ?
this.customComponent(e, 'picture', 'marketing-tupian', '图片')} ref="picture" className={this.state.selectDom == 'picture' ? 'selectBorder' : ''}>
: null } { - goodsConfig.title && goodsConfig.title.iswitch && goodsConfig.title.comstyle == 1 ?
this.customComponent(e, 'title', 'marketing-fuwenbenkuang', '标题')} ref="title" className={this.state.selectDom == 'title' ? 'selectBorder' : ''}>
{goodsConfig.title.text}
: null + goodsConfig.title && goodsConfig.title.iswitch==1 && goodsConfig.title.comstyle == 1 ?
this.customComponent(e, 'title', 'marketing-fuwenbenkuang', '标题')} ref="title" className={this.state.selectDom == 'title' ? 'selectBorder' : ''}>
{goodsConfig.title.text}
: null } { - goodsConfig.title && goodsConfig.title.iswitch && goodsConfig.title.comstyle == 2 ?
this.customComponent(e, 'title', 'marketing-fuwenbenkuang', '标题')} ref="title" className={this.state.selectDom == 'title' ? 'selectBorder' : ''}> + goodsConfig.title && goodsConfig.title.iswitch==1 && goodsConfig.title.comstyle == 2 ?
this.customComponent(e, 'title', 'marketing-fuwenbenkuang', '标题')} ref="title" className={this.state.selectDom == 'title' ? 'selectBorder' : ''}>
: null } { - goodsConfig.title && goodsConfig.title.iswitch && goodsConfig.title.text || goodsConfig.picture && goodsConfig.picture.iswitch && goodsConfig.picture.img ?
: null + goodsConfig.title && goodsConfig.title.iswitch==1 && goodsConfig.title.text || goodsConfig.picture && goodsConfig.picture.iswitch==1 && goodsConfig.picture.img ?
: null } { goodsConfig.list == 2 ? : goodsConfig.list == 3 ? : @@ -95,7 +93,7 @@ export default class edittemplate extends React.Component { : null } { - goodsConfig.bottomBar && goodsConfig.bottomBar.iswitch ?
this.customComponent(e, 'bottomBar', 'marketing-list', '底部栏')} className={this.state.selectDom == 'bottomBar' ? 'selectBottomBorder' : ''}>
: null + goodsConfig.bottomBar && goodsConfig.bottomBar.iswitch==1 ?
this.customComponent(e, 'bottomBar', 'marketing-list', '底部栏')} className={this.state.selectDom == 'bottomBar' ? 'selectBottomBorder' : ''}>
: null }
{