diff --git a/src/pages/exchangepage/couponTemplate/goodsPage/config/bottomBar.js b/src/pages/exchangepage/couponTemplate/goodsPage/config/bottomBar.js index c5fedfae..8a719ce9 100644 --- a/src/pages/exchangepage/couponTemplate/goodsPage/config/bottomBar.js +++ b/src/pages/exchangepage/couponTemplate/goodsPage/config/bottomBar.js @@ -197,11 +197,8 @@ export default class edittemplate extends React.Component {
首页 -

显示 - this.handleChangeStatus(0,checked)} - />

+

显示 +

@@ -246,13 +243,13 @@ export default class edittemplate extends React.Component { this.setState({ navlist: model2 }) Bus.emit('navlist', model2) }} - value={this.state.navlist[0].text} placeholder={"请输入"} labelWidth={'0px'} maxLength={4} height={'36px'} width={'300px'} alignment={'left'} /> + value={this.state.navlist[0].text} placeholder={"首页"} labelWidth={'0px'} maxLength={5} height={'36px'} width={'300px'} alignment={'left'} />
订单 -

显示 +

{this.state.navlist[1].iswitch?'显示':'隐藏'} this.handleChangeStatus(1,checked)} @@ -301,13 +298,13 @@ export default class edittemplate extends React.Component { Bus.emit('navlist', model2) this.setState({ navlist: model2 }) }} - value={this.state.navlist[1].text} placeholder={"请输入"} labelWidth={'0px'} maxLength={4} height={'36px'} width={'300px'} alignment={'left'} /> + value={this.state.navlist[1].text} placeholder={"订单"} labelWidth={'0px'} maxLength={5} height={'36px'} width={'300px'} alignment={'left'} />

我的券 -

显示 +

{this.state.navlist[2].iswitch?'显示':'隐藏'} this.handleChangeStatus(2,checked)} @@ -356,7 +353,7 @@ export default class edittemplate extends React.Component { this.setState({ navlist:model2}) Bus.emit('navlist', model2) }} - value={this.state.navlist[2].text} placeholder={"请输入"} labelWidth={'0px'} maxLength={4} height={'36px'} width={'300px'} alignment={'left'} /> + value={this.state.navlist[2].text} placeholder={"我的券"} labelWidth={'0px'} maxLength={5} height={'36px'} width={'300px'} alignment={'left'} />

diff --git a/src/pages/exchangepage/edittemplate/goodstemplate.js b/src/pages/exchangepage/edittemplate/goodstemplate.js index a7bdd09e..3bb453fe 100644 --- a/src/pages/exchangepage/edittemplate/goodstemplate.js +++ b/src/pages/exchangepage/edittemplate/goodstemplate.js @@ -12,7 +12,7 @@ export default class edittemplate extends React.Component { this.state = { clientY: 0, selectDom: '', - icon: '' + icon: '', } } opendescFn() { @@ -49,6 +49,7 @@ export default class edittemplate extends React.Component { render() { let goodsConfig = this.props.goodsdata; let {backgroundImg,search,picture,title,bottomBar}=goodsConfig; + let naVisual=bottomBar.navlist.filter(item=>item.iswitch); return (
{ @@ -87,7 +88,7 @@ export default class edittemplate extends React.Component { goodsConfig.describe.type == 2 ? : null } { - bottomBar && bottomBar.iswitch ?
this.customComponent(e, 'bottomBar', 'marketing-list')} className={this.state.selectDom == 'bottomBar' ? 'selectBottomBorder' : ''}>
: null + bottomBar && bottomBar.iswitch&&naVisual.length>1 ?
this.customComponent(e, 'bottomBar', 'marketing-list')} className={this.state.selectDom == 'bottomBar' ? 'selectBottomBorder' : ''}>
: null } {