import Taro, { Component } from '@tarojs/taro' import { View, Button, Text, Input, Radio, RadioGroup, Label } from '@tarojs/components' import { AtInput, AtForm, AtImagePicker, AtTextarea, AtRadio, AtButton, Picker } from 'taro-ui' import SearchBarComponent from '../../component/searchBarComponent/searchBarComponent' import copyrightComponent from '../../component/copyrightComponent/copyrightComponent' import './goodsPublish.scss' class GoodsPublish extends Component { config = { navigationBarTitleText: '商品发布' } constructor() { super(...arguments) this.state = { selector: ['需求', '供应', '人才'], selectorChecked: '需求', files: [{ url: 'https://jimczj.gitee.io/lazyrepay/aragaki1.jpeg', }, { url: 'https://jimczj.gitee.io/lazyrepay/aragaki2.jpeg', }, { url: 'https://jimczj.gitee.io/lazyrepay/aragaki3.png', }], list: [ { value: '美国', text: '美国', checked: false }, { value: '中国', text: '中国', checked: true }, { value: '巴西', text: '巴西', checked: false }, { value: '日本', text: '日本', checked: false } ] } } onChange1 = e => { this.setState({ selectorChecked: this.state.selector[e.detail.value] }) } onChange(files) { this.setState({ files }) } onFail(mes) { console.log(mes) } onImageClick(index, file) { console.log(index, file) } componentWillReceiveProps(nextProps) { console.log(this.props, nextProps) } componentWillUnmount() { } componentDidShow() { } componentDidHide() { } render() { return ( *商品分类: {this.state.selectorChecked} * * * * 上传图片: * 店铺分类: 国家: {this.state.list.map((item, i) => { return ( ) })} 国家: {this.state.list.map((item, i) => { return ( ) })} 国家: {this.state.list.map((item, i) => { return ( ) })} 商品简介: 发布 发布并新增 商品列表 ) } } export default GoodsPublish