import React, {Component} from 'react' import { NavBar } from 'antd-mobile'; import CartItem from "./CartItem"; import CartEdit from "./CartEdit"; class Cart extends Component { constructor(props) { super(props); this.state = { content:true } } changeCartPage =()=>{ this.setState({ content:!this.state.content }) }; render() { let {content} = this.state; return (
{content ? "编辑":"完成"} ]} >购物袋 { content ? : }
) } } export default Cart