import Taro, { Component } from '@tarojs/taro' import { View, Button, Text } from '@tarojs/components' import { AtInput, AtButton, Picker,AtIcon } from 'taro-ui' import copyrightComponent from '../../component/copyrightComponent/copyrightComponent' import searchBarComponent from '../../component/searchBarComponent/searchBarComponent' import './mySupplyDemand.scss' console.log('hi') class MySupplyDemand extends Component { config = { navigationBarTitleText: '我的供求' } constructor() { super(...arguments) this.state = { selector: ['全部','需求', '供应', '人才'], selectorChecked: '全部', selector1: ['全部','上架', '下架'], selectorChecked1: '全部', dateSel: '2018-04-22', } } onChange = e => { this.setState({ selectorChecked: this.state.selector[e.detail.value] }) } onChange1 = e => { this.setState({ selectorChecked1: this.state.selector1[e.detail.value] }) } onDateChange = e => { this.setState({ dateSel: e.detail.value }) } componentWillReceiveProps(nextProps) { console.log(this.props, nextProps) } componentWillUnmount() { } componentDidShow() { } componentDidHide() { } render() { return ( *供求类型: {this.state.selectorChecked} *供求状态: {this.state.selectorChecked1} * *开始日期: {this.state.dateSel} *结束日期: {this.state.dateSel} 搜索 新增 一共20 条记录 需求类型: 1 需求标题: 1 联系人: 1 电话号码: 1 需求状态: 更新时间: 1 查看 编辑 删除 ) } } export default MySupplyDemand