From 1e7997b3efbd4353708259b46f173b1ec08d2f08 Mon Sep 17 00:00:00 2001 From: Apple <> Date: Fri, 23 Sep 2022 15:20:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E6=95=B4=E4=BD=93?= =?UTF-8?q?=E8=87=AA=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exchangepage/edittemplate/goodstemplate.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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 }
{