diff --git a/src/pages/exchangepage/edittemplate/couponConfig/bottomBar.js b/src/pages/exchangepage/edittemplate/couponConfig/bottomBar.js index 1db98797..111037e4 100644 --- a/src/pages/exchangepage/edittemplate/couponConfig/bottomBar.js +++ b/src/pages/exchangepage/edittemplate/couponConfig/bottomBar.js @@ -5,11 +5,43 @@ export default class bottomBar extends React.Component { constructor(props) { super(props) this.state={ - navList:[], + navList:[ + { + id:1, + iswitch:true, + name:'index', + pic:{ + show:'', + selectShow:'' + }, + text:'首页' + }, + { + id:2, + iswitch:true, + name:'order', + pic:{ + show:'', + selectShow:'' + }, + text:'订单' + }, + { + id:3, + iswitch:true, + name:'coupon', + pic:{ + show:'', + selectShow:'' + }, + text:'我的券' + } + ], active:0 } } componentWillReceiveProps(nextProps){ + console.log(1313); let navList=nextProps.bottomBarConfig.navlist; let naVisual=navList.filter(item=>item.iswitch); this.setState({navList:naVisual});