import Taro, { Component } from '@tarojs/taro' import { View, Button, Text, Input, Radio, RadioGroup, Label } from '@tarojs/components' import { AtInput, AtForm, AtImagePicker, AtTextarea, AtRadio, AtButton } from 'taro-ui' import copyrightComponent from '../../component/copyrightComponent/copyrightComponent' import './goodsPublish.scss' class GoodsPublish extends Component { config = { navigationBarTitleText: '商品发布' } constructor() { super(...arguments) this.state = { 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 } ] } } 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.list.map((item, i) => { return ( ) })} 国家: {this.state.list.map((item, i) => { return ( ) })} 国家: {this.state.list.map((item, i) => { return ( ) })} 商品简介: 发布 发布并新增 商品列表 ) } } export default GoodsPublish