2018-12-07 17:17:46 +08:00
|
|
|
|
|
|
|
|
|
import Taro, { Component } from '@tarojs/taro'
|
2019-02-13 18:05:21 +08:00
|
|
|
|
import { View, Text, Button, Input } from '@tarojs/components'
|
2019-01-10 17:36:45 +08:00
|
|
|
|
import { AtInput, AtImagePicker, AtTextarea, Picker } from 'taro-ui'
|
2018-12-10 17:38:17 +08:00
|
|
|
|
|
2019-01-10 17:36:45 +08:00
|
|
|
|
import CopyrightComponent from '../../component/copyrightComponent/copyrightComponent'
|
2019-02-12 17:21:31 +08:00
|
|
|
|
import LoginService from '../../LoginService'
|
2018-12-07 17:17:46 +08:00
|
|
|
|
|
2019-02-12 17:21:31 +08:00
|
|
|
|
import URL from '../../serviceAPI.config'
|
2018-12-11 17:34:06 +08:00
|
|
|
|
import './supplyDemandPublish.scss'
|
2018-12-07 17:17:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SupplyDemand extends Component {
|
|
|
|
|
|
|
|
|
|
config = {
|
|
|
|
|
navigationBarTitleText: '供求发布'
|
|
|
|
|
}
|
|
|
|
|
constructor() {
|
|
|
|
|
super(...arguments)
|
|
|
|
|
this.state = {
|
2019-01-02 17:31:07 +08:00
|
|
|
|
demandingSupplyCate: [{ name: '需求', id: '1' }, { name: '供应', id: '2' }, { name: '人才', id: '3' }], //供求类型选择
|
|
|
|
|
demandingSupplyCateSelected: { name: '需求', id: '1' },// 当前供求类型
|
|
|
|
|
demandingSupplyState: [{ name: '上架', id: '1' }, { name: '下架', id: '0' }], // 状态选择
|
|
|
|
|
demandingSupplyStateSelected: { name: '上架', id: '1' },// 当前状态
|
2018-12-18 17:37:23 +08:00
|
|
|
|
title: '',
|
2019-01-09 16:46:57 +08:00
|
|
|
|
contactName: Taro.getStorageSync('user_identity').username,
|
|
|
|
|
contactNumber: Taro.getStorageSync('user_identity').userphone,
|
2018-12-18 17:37:23 +08:00
|
|
|
|
contactAddress: '',
|
|
|
|
|
content: '',
|
2018-12-24 17:35:51 +08:00
|
|
|
|
pickerImageUrl: [], // 上传的图片
|
|
|
|
|
ImagesInfo: [],// 后台传回来的图片信息
|
2019-01-17 08:52:30 +08:00
|
|
|
|
isPublish: false,//是否点击发布按钮
|
|
|
|
|
isPublishAndNew: false,//是否点击发布新增按钮
|
2018-12-07 17:17:46 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2018-12-18 17:37:23 +08:00
|
|
|
|
|
2018-12-24 17:35:51 +08:00
|
|
|
|
|
2019-01-02 17:31:07 +08:00
|
|
|
|
|
2018-12-24 17:35:51 +08:00
|
|
|
|
// 这个需要写一个uploadDemSup 上传供求 的api
|
2019-01-02 17:31:07 +08:00
|
|
|
|
uploadDemSup({ sd_type = this.state.demandingSupplyCateSelected.id,
|
|
|
|
|
sd_title = this.state.title,
|
|
|
|
|
user_name = this.state.contactName,
|
|
|
|
|
user_phone = this.state.contactNumber,
|
|
|
|
|
user_address = this.state.contactAddress,
|
|
|
|
|
sd_desc = this.state.content,
|
|
|
|
|
state = this.state.demandingSupplyStateSelected.id }) {
|
|
|
|
|
const file_path = [];
|
|
|
|
|
this.state.ImagesInfo.forEach((item) => {
|
|
|
|
|
file_path.push({
|
|
|
|
|
file_name: item.file_name,
|
|
|
|
|
file_size: item.file_size,
|
|
|
|
|
file_path: item.file_path,
|
|
|
|
|
thumb_path: item.thumb_path
|
2018-12-26 17:32:35 +08:00
|
|
|
|
})
|
2019-01-02 17:31:07 +08:00
|
|
|
|
})
|
|
|
|
|
Taro.request({
|
2018-12-26 17:32:35 +08:00
|
|
|
|
url: URL.UploadSupplyDemand,
|
|
|
|
|
method: 'POST',
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
data: {
|
|
|
|
|
action: 1,
|
|
|
|
|
sdInfo: JSON.stringify({
|
|
|
|
|
sd_type: sd_type,
|
|
|
|
|
sd_title: sd_title,
|
2019-01-02 17:31:07 +08:00
|
|
|
|
user_name: user_name,
|
2018-12-26 17:32:35 +08:00
|
|
|
|
user_phone: user_phone,
|
|
|
|
|
user_address: user_address,
|
|
|
|
|
sd_desc: sd_desc,
|
2019-01-02 17:31:07 +08:00
|
|
|
|
state: state,
|
|
|
|
|
file_path: file_path
|
|
|
|
|
})
|
2018-12-26 17:32:35 +08:00
|
|
|
|
},
|
|
|
|
|
header: {
|
|
|
|
|
'content-type': 'application/x-www-form-urlencoded',
|
|
|
|
|
'Cookie': 'PFWSSS=' + Taro.getStorageSync('session_id'),
|
|
|
|
|
'X-Requested-With': 'XMLHttpRequest'
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.then(res => {
|
|
|
|
|
console.log('上传供求', res)
|
2019-01-17 08:52:30 +08:00
|
|
|
|
Taro.hideLoading()
|
2019-01-02 17:31:07 +08:00
|
|
|
|
if (res.data.err_msg === 'success') {
|
|
|
|
|
Taro.showToast({
|
|
|
|
|
title: '上传成功',
|
|
|
|
|
icon: 'success',
|
2019-01-17 08:52:30 +08:00
|
|
|
|
duration: 1000
|
2019-01-02 17:31:07 +08:00
|
|
|
|
}).then(() => {
|
2018-12-26 17:32:35 +08:00
|
|
|
|
setTimeout(() => {
|
2019-01-17 08:52:30 +08:00
|
|
|
|
if (this.state.isPublish) {
|
|
|
|
|
Taro.navigateTo({
|
|
|
|
|
url: '/pages/myDemandSupplyEdit/myDemandSupplyEdit?sdId=' + res.data.sd_id
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
} else if (this.state.isPublishAndNew) {
|
2019-02-13 18:05:21 +08:00
|
|
|
|
Taro.switchTab({
|
2019-01-17 08:52:30 +08:00
|
|
|
|
url: '/pages/supplyDemandPublish/supplyDemandPublish'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}, 1000);
|
2019-01-02 17:31:07 +08:00
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
Taro.showToast({
|
|
|
|
|
title: '上传失败',
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 1500
|
2018-12-26 17:32:35 +08:00
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
}
|
2018-12-24 17:35:51 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 上传图片
|
|
|
|
|
onChangeImg(files, operationType, index) {
|
|
|
|
|
const that = this
|
|
|
|
|
if (operationType === 'add') {
|
|
|
|
|
Taro.uploadFile({
|
2018-12-26 17:32:35 +08:00
|
|
|
|
url: URL.UploadDSPorductImage,
|
2018-12-24 17:35:51 +08:00
|
|
|
|
filePath: files[files.length - 1].url,
|
|
|
|
|
name: 'file',
|
2019-01-17 08:52:30 +08:00
|
|
|
|
formData: {
|
|
|
|
|
'key': 'michael',
|
|
|
|
|
},
|
2018-12-24 17:35:51 +08:00
|
|
|
|
header: {
|
2018-12-26 17:32:35 +08:00
|
|
|
|
'content-type': 'multipart/form-data; boundary=----WebKitFormBoundaryAWxeadaAVmRVQCiz',
|
2018-12-24 17:35:51 +08:00
|
|
|
|
'Cookie': 'PFWSSS=' + Taro.getStorageSync('session_id'),
|
|
|
|
|
'X-Requested-With': 'XMLHttpRequest'
|
|
|
|
|
},
|
|
|
|
|
success(response) {
|
2019-02-13 18:05:21 +08:00
|
|
|
|
console.log('response', response)
|
2018-12-24 17:35:51 +08:00
|
|
|
|
const data = JSON.parse(response.data)
|
2019-02-13 18:05:21 +08:00
|
|
|
|
if (data.err_code === 0) {
|
|
|
|
|
const imagePath = URL.Base + data.file_path
|
|
|
|
|
const newPickerImageUrl = that.state.pickerImageUrl.concat({ url: imagePath })
|
|
|
|
|
const newImageInfo = that.state.ImagesInfo.concat(data)
|
|
|
|
|
that.setState({ pickerImageUrl: newPickerImageUrl, ImagesInfo: newImageInfo })
|
|
|
|
|
Taro.showToast({
|
|
|
|
|
title: '上传成功',
|
|
|
|
|
icon: 'success',
|
|
|
|
|
duration: 1500
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
Taro.showToast({
|
|
|
|
|
title: data.err_msg,
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 1500
|
|
|
|
|
})
|
|
|
|
|
}
|
2019-01-02 17:31:07 +08:00
|
|
|
|
|
2018-12-24 17:35:51 +08:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (operationType === 'remove') {
|
2019-01-02 17:31:07 +08:00
|
|
|
|
this.state.ImagesInfo.splice(index, 1) // 删除显示的图片
|
|
|
|
|
this.state.pickerImageUrl.splice(index, 1)// 删除图片param
|
2019-01-17 08:52:30 +08:00
|
|
|
|
that.setState({
|
|
|
|
|
pockerImageUrl: this.state.pickerImageUrl,
|
|
|
|
|
ImagesInfo: this.state.ImagesInfo,
|
|
|
|
|
})
|
|
|
|
|
Taro.showToast({
|
|
|
|
|
title: '删除成功',
|
|
|
|
|
icon: 'success',
|
|
|
|
|
duration: 1500
|
|
|
|
|
})
|
|
|
|
|
}
|
2018-12-18 17:37:23 +08:00
|
|
|
|
}
|
2018-12-11 17:34:06 +08:00
|
|
|
|
// 修改供求类型
|
|
|
|
|
demandingSupplyCate = e => {
|
2018-12-07 17:17:46 +08:00
|
|
|
|
this.setState({
|
2018-12-11 17:34:06 +08:00
|
|
|
|
demandingSupplyCateSelected: this.state.demandingSupplyCate[e.detail.value]
|
2018-12-07 17:17:46 +08:00
|
|
|
|
})
|
|
|
|
|
}
|
2018-12-11 17:34:06 +08:00
|
|
|
|
// 修改供求状态
|
|
|
|
|
demSupplyStateChange = e => {
|
|
|
|
|
this.setState({
|
|
|
|
|
demandingSupplyStateSelected: this.state.demandingSupplyState[e.detail.value]
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//改标题
|
2018-12-18 17:37:23 +08:00
|
|
|
|
titleChange(event) {
|
|
|
|
|
this.setState({ title: event })
|
2018-12-11 17:34:06 +08:00
|
|
|
|
}
|
2018-12-18 17:37:23 +08:00
|
|
|
|
contactNameChange(event) {
|
|
|
|
|
this.setState({ contactName: event })
|
2018-12-11 17:34:06 +08:00
|
|
|
|
}
|
2019-02-13 18:05:21 +08:00
|
|
|
|
contactNumberChange(e) {
|
|
|
|
|
this.setState({ contactNumber: e.detail.value })
|
2018-12-11 17:34:06 +08:00
|
|
|
|
}
|
2018-12-18 17:37:23 +08:00
|
|
|
|
contactAddressChange(event) {
|
|
|
|
|
this.setState({ contactAddress: event.target.value })
|
2018-12-11 17:34:06 +08:00
|
|
|
|
}
|
2018-12-18 17:37:23 +08:00
|
|
|
|
contentChange(event) {
|
|
|
|
|
this.setState({ content: event.target.value })
|
2018-12-11 17:34:06 +08:00
|
|
|
|
}
|
2019-01-17 08:52:30 +08:00
|
|
|
|
|
|
|
|
|
// 上传供求api
|
|
|
|
|
publishButtonHandler() {
|
2019-02-12 17:21:31 +08:00
|
|
|
|
if (!Taro.getStorageSync('userInfo').user_id) {
|
|
|
|
|
LoginService()
|
|
|
|
|
return
|
|
|
|
|
}
|
2019-01-17 08:52:30 +08:00
|
|
|
|
if (this.state.demandingSupplyCateSelected && this.state.title && this.state.contactName && this.state.contactNumber && this.state.content && this.state.demandingSupplyStateSelected) {
|
|
|
|
|
|
|
|
|
|
Taro.showLoading({ title: '发布中' }).then(() => {
|
|
|
|
|
this.setState({ isPublish: true }, () => {
|
|
|
|
|
this.uploadDemSup({})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
Taro.showToast({
|
|
|
|
|
title: '请填写完表格',
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 1500
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
publishAndNewButton() {
|
2019-02-12 17:21:31 +08:00
|
|
|
|
if (!Taro.getStorageSync('userInfo').user_id) {
|
|
|
|
|
LoginService()
|
|
|
|
|
return
|
|
|
|
|
}
|
2019-01-17 08:52:30 +08:00
|
|
|
|
if (this.state.demandingSupplyCateSelected && this.state.title && this.state.contactName && this.state.contactNumber && this.state.content && this.state.demandingSupplyStateSelected) {
|
|
|
|
|
|
|
|
|
|
Taro.showLoading({ title: '发布中' }).then(() => {
|
|
|
|
|
this.setState({ isPublishAndNew: true }, () => {
|
|
|
|
|
this.uploadDemSup({})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
Taro.showToast({
|
|
|
|
|
title: '请填写完表格',
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 1500
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-01-02 17:31:07 +08:00
|
|
|
|
goToMyDemSupPage() {
|
2019-02-12 17:21:31 +08:00
|
|
|
|
if (!Taro.getStorageSync('userInfo').user_id) {
|
|
|
|
|
LoginService()
|
|
|
|
|
return
|
|
|
|
|
}
|
2019-02-13 18:05:21 +08:00
|
|
|
|
Taro.switchTab({
|
2019-01-02 17:31:07 +08:00
|
|
|
|
url: '/pages/mySupplyDemand/mySupplyDemand'
|
|
|
|
|
})
|
2018-12-25 17:26:35 +08:00
|
|
|
|
}
|
2019-02-13 18:05:21 +08:00
|
|
|
|
componentWillMount() {
|
|
|
|
|
|
2019-02-12 17:21:31 +08:00
|
|
|
|
}
|
2018-12-24 17:35:51 +08:00
|
|
|
|
|
|
|
|
|
componentDidMount() {
|
2019-01-17 08:52:30 +08:00
|
|
|
|
|
2018-12-18 17:37:23 +08:00
|
|
|
|
}
|
2018-12-07 17:17:46 +08:00
|
|
|
|
componentWillReceiveProps(nextProps) {
|
2019-02-13 18:05:21 +08:00
|
|
|
|
// console.log(this.props, nextProps)
|
2018-12-07 17:17:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentWillUnmount() { }
|
|
|
|
|
|
2019-02-12 17:21:31 +08:00
|
|
|
|
componentDidShow() {
|
|
|
|
|
if (!Taro.getStorageSync('userInfo').user_id) {
|
|
|
|
|
LoginService()
|
|
|
|
|
return
|
|
|
|
|
}
|
2019-02-13 18:05:21 +08:00
|
|
|
|
}
|
2018-12-07 17:17:46 +08:00
|
|
|
|
|
|
|
|
|
componentDidHide() { }
|
|
|
|
|
|
|
|
|
|
render() {
|
2019-02-13 18:05:21 +08:00
|
|
|
|
|
2019-01-02 17:31:07 +08:00
|
|
|
|
|
2018-12-07 17:17:46 +08:00
|
|
|
|
return (
|
|
|
|
|
<View className='supply-demand'>
|
2019-01-17 08:52:30 +08:00
|
|
|
|
|
2019-01-02 17:31:07 +08:00
|
|
|
|
|
2018-12-07 17:17:46 +08:00
|
|
|
|
<View className='page-section'>
|
|
|
|
|
<View>
|
2018-12-29 17:15:59 +08:00
|
|
|
|
<Picker mode='selector' rangeKey='name' range={this.state.demandingSupplyCate} onChange={this.demandingSupplyCate.bind(this)}>
|
2018-12-07 17:17:46 +08:00
|
|
|
|
<View className='picker'>
|
2018-12-18 17:37:23 +08:00
|
|
|
|
<View className='title-box'>
|
2018-12-29 17:15:59 +08:00
|
|
|
|
<Text className='title'><Text className='require'>*</Text>供求类型:</Text> <Text className='selected'>{this.state.demandingSupplyCateSelected.name}</Text>
|
2018-12-18 17:37:23 +08:00
|
|
|
|
</View>
|
|
|
|
|
|
2018-12-07 17:17:46 +08:00
|
|
|
|
</View>
|
|
|
|
|
</Picker>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='border-box'>
|
|
|
|
|
<Text className='require'>*</Text><AtInput
|
2019-01-02 17:31:07 +08:00
|
|
|
|
name='value'
|
|
|
|
|
title='需求标题:'
|
|
|
|
|
type='text'
|
|
|
|
|
value={this.state.title}
|
|
|
|
|
onChange={this.titleChange.bind(this)}
|
2019-01-10 17:36:45 +08:00
|
|
|
|
border={false}
|
2018-12-07 17:17:46 +08:00
|
|
|
|
/>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='input-box'>
|
|
|
|
|
<Text className='require'>*</Text>
|
|
|
|
|
<AtInput
|
2019-01-02 17:31:07 +08:00
|
|
|
|
name='value'
|
|
|
|
|
title='联系人:'
|
|
|
|
|
type='text'
|
|
|
|
|
value={this.state.contactName}
|
|
|
|
|
onChange={this.contactNameChange.bind(this)}
|
2019-01-10 17:36:45 +08:00
|
|
|
|
border={false}
|
2018-12-07 17:17:46 +08:00
|
|
|
|
/>
|
|
|
|
|
</View>
|
2019-01-17 08:52:30 +08:00
|
|
|
|
<View className='input-box' style='padding:24rpx 0;font-size:32rpx'>
|
|
|
|
|
<View className='title' style='font-weight:bold;'>
|
|
|
|
|
<Text style='color:red'>*</Text>
|
|
|
|
|
<Text>联系电话:</Text>
|
|
|
|
|
</View>
|
|
|
|
|
<View style='margin-left:5%;'>
|
|
|
|
|
<Input name='value'
|
|
|
|
|
maxLength='11'
|
|
|
|
|
type='number'
|
|
|
|
|
value={this.state.contactNumber}
|
|
|
|
|
onInput={this.contactNumberChange.bind(this)}
|
|
|
|
|
/></View>
|
2018-12-07 17:17:46 +08:00
|
|
|
|
</View>
|
2019-02-13 18:05:21 +08:00
|
|
|
|
|
2018-12-10 17:38:17 +08:00
|
|
|
|
<View className='demanding-box'>
|
2018-12-11 17:34:06 +08:00
|
|
|
|
<View className='title-box'>
|
2019-01-02 17:31:07 +08:00
|
|
|
|
<Text className='title'>联系地址:</Text>
|
2018-12-11 17:34:06 +08:00
|
|
|
|
</View>
|
2018-12-07 17:17:46 +08:00
|
|
|
|
|
|
|
|
|
<AtTextarea
|
2019-01-02 17:31:07 +08:00
|
|
|
|
value={this.state.contactAddress}
|
|
|
|
|
onChange={this.contactAddressChange.bind(this)}
|
|
|
|
|
maxlength='200'
|
|
|
|
|
placeholder='联系地址'
|
2018-12-07 17:17:46 +08:00
|
|
|
|
/>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='demanding-box'>
|
|
|
|
|
<View className='title-box'>
|
|
|
|
|
<Text className='title'><Text className='require'>*</Text>需求内容:</Text>
|
|
|
|
|
</View>
|
|
|
|
|
<AtTextarea
|
2019-01-02 17:31:07 +08:00
|
|
|
|
value={this.state.content}
|
|
|
|
|
onChange={this.contentChange.bind(this)}
|
|
|
|
|
maxlength='200'
|
|
|
|
|
placeholder=''
|
2018-12-07 17:17:46 +08:00
|
|
|
|
/>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='img-box'>
|
|
|
|
|
<View className='title-box'>
|
|
|
|
|
<Text className='title'>需求图片:</Text>
|
|
|
|
|
<View className='warn'>(最多4张)</View>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
<View className='img-container'>
|
|
|
|
|
<AtImagePicker
|
2019-01-02 17:31:07 +08:00
|
|
|
|
multiple
|
|
|
|
|
showAddBtn={this.state.pickerImageUrl.length < 4}
|
|
|
|
|
files={this.state.pickerImageUrl}
|
|
|
|
|
onChange={this.onChangeImg.bind(this)}
|
|
|
|
|
onFail={this.onFail.bind(this)}
|
|
|
|
|
onImageClick={this.onImageClick.bind(this)}
|
2018-12-07 17:17:46 +08:00
|
|
|
|
/>
|
|
|
|
|
</View>
|
2018-12-18 17:37:23 +08:00
|
|
|
|
|
2018-12-07 17:17:46 +08:00
|
|
|
|
</View>
|
|
|
|
|
<View className='page-section'>
|
|
|
|
|
|
|
|
|
|
<View>
|
2018-12-29 17:15:59 +08:00
|
|
|
|
<Picker mode='selector' rangeKey='name' range={this.state.demandingSupplyState} onChange={this.demSupplyStateChange}>
|
2018-12-07 17:17:46 +08:00
|
|
|
|
<View className='picker'>
|
|
|
|
|
<View className='title-box'>
|
2018-12-29 17:15:59 +08:00
|
|
|
|
<Text className='title'> <Text className='require'>*</Text>状态:</Text> <Text className='selected'>{this.state.demandingSupplyStateSelected.name}</Text>
|
2018-12-07 17:17:46 +08:00
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
</View>
|
|
|
|
|
</Picker>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
<View className='button-box'>
|
2019-01-17 08:52:30 +08:00
|
|
|
|
<View className='button' onClick={this.publishButtonHandler.bind(this)}>
|
2019-01-10 17:36:45 +08:00
|
|
|
|
<Button size='mini' className='button-orange' >发布</Button>
|
2018-12-07 17:17:46 +08:00
|
|
|
|
</View>
|
2019-01-17 08:52:30 +08:00
|
|
|
|
<View className='button' onClick={this.publishAndNewButton.bind(this)}>
|
|
|
|
|
<Button size='mini' className='button-green' >发布并新增</Button>
|
|
|
|
|
</View>
|
2018-12-25 17:26:35 +08:00
|
|
|
|
<View className='button' onClick={this.goToMyDemSupPage.bind(this)}>
|
2019-01-10 17:36:45 +08:00
|
|
|
|
<Button size='mini' className='button-green' >我的供求</Button>
|
2018-12-07 17:17:46 +08:00
|
|
|
|
</View>
|
|
|
|
|
</View>
|
2019-01-10 17:36:45 +08:00
|
|
|
|
<CopyrightComponent></CopyrightComponent>
|
2018-12-07 17:17:46 +08:00
|
|
|
|
|
2018-12-18 17:37:23 +08:00
|
|
|
|
|
2018-12-07 17:17:46 +08:00
|
|
|
|
</View>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default SupplyDemand
|