From 03289ae434e37d2cd7b088415c275e0197d36071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E7=BA=A2=E6=A2=85?= <1924913374@qq.com> Date: Wed, 7 Sep 2022 18:55:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=BA=95=E9=83=A8=E6=A0=8Fre?= =?UTF-8?q?nder=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edittemplate/couponConfig/bottomBar.js | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) 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});