|
|
@@ -0,0 +1,29 @@
|
|
|
+import React, { Component } from 'react';
|
|
|
+import { NavBar, Icon } from 'antd-mobile';
|
|
|
+
|
|
|
+import './NavBar.css'
|
|
|
+
|
|
|
+export default class NavBars extends Component{
|
|
|
+ goBack(){
|
|
|
+ console.log('back')
|
|
|
+ }
|
|
|
+ render(){
|
|
|
+ return(
|
|
|
+ <div className="navBars">
|
|
|
+ <NavBar
|
|
|
+ mode="dark"
|
|
|
+ icon={<Icon type="left" />}
|
|
|
+ onLeftClick={() => this.goBack()}
|
|
|
+ rightContent={[
|
|
|
+ <Icon key="0" type="search" style={{ marginRight: '16px' }} />,
|
|
|
+ <Icon key="1" type="ellipsis" />,
|
|
|
+ ]}
|
|
|
+ ><span style={{fontSize:'14px'}}>电商小程序</span>
|
|
|
+ </NavBar>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|