2018-12-24 17:35:51 +08:00
|
|
|
|
todo list:
|
2018-12-25 17:26:35 +08:00
|
|
|
|
首页:
|
|
|
|
|
商品发布页面:
|
|
|
|
|
|
|
|
|
|
供求发布页面
|
2018-12-24 17:35:51 +08:00
|
|
|
|
全部业主需求页面:
|
|
|
|
|
我的供求页面:
|
2018-12-26 17:32:35 +08:00
|
|
|
|
我的商品列表页面
|
2018-12-27 17:31:17 +08:00
|
|
|
|
商品编辑页面
|
|
|
|
|
|
2019-01-14 17:04:08 +08:00
|
|
|
|
我的需求列表页面:
|
2018-12-29 17:15:59 +08:00
|
|
|
|
接口问题:
|
|
|
|
|
优惠卷和询价
|
2019-01-02 17:31:07 +08:00
|
|
|
|
bug: 商品编辑 增加图片后 图片顺序乱了
|
2019-01-04 17:33:38 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-08 13:51:26 +08:00
|
|
|
|
等待后台--- 单个我的商品页面的图片顺序,单个我的需求页面的接口, 当个我哦的需求编辑页面的接口
|
|
|
|
|
|
2019-01-17 17:32:38 +08:00
|
|
|
|
|
|
|
|
|
|
2019-01-27 17:35:20 +08:00
|
|
|
|
const selfAndAvailable = localStoageUserId === this.state.userId && this.state.stateId === '1' && <View className='button-box'>
|
|
|
|
|
<View className='button' onClick={this.goMyNeedsPublishPage.bind(this)}>
|
|
|
|
|
<Button size='mini' className='button-green'>
|
|
|
|
|
<AtIcon value='add' size='12' color='white'></AtIcon>
|
|
|
|
|
新增</Button>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='button' onClick={this.goToMyNeedsPage.bind(this)}>
|
|
|
|
|
<Button size='mini' className='button-green'>
|
|
|
|
|
<AtIcon value='' size='12' color='white'></AtIcon>
|
|
|
|
|
我的需求</Button>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='button' onClick={this.goMyNeedEditPage.bind(this)}>
|
|
|
|
|
<Button size='mini' className='button-orange'>
|
|
|
|
|
<AtIcon value='settings' size='12' color='white'></AtIcon>
|
|
|
|
|
修改</Button>
|
2019-01-14 17:04:08 +08:00
|
|
|
|
</View>
|
|
|
|
|
|
2019-01-27 17:35:20 +08:00
|
|
|
|
<View className='button' onClick={this.deleteButton.bind(this)}>
|
|
|
|
|
<Button size='mini' className='button-dark-red'>
|
|
|
|
|
<AtIcon value='trash' size='12' color='white'></AtIcon>
|
|
|
|
|
删除</Button>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
2019-01-17 08:52:30 +08:00
|
|
|
|
|
2019-01-27 17:35:20 +08:00
|
|
|
|
const selfAndUnAvaialble = localStoageUserId === this.state.userId && this.state.stateId != '1' && <View className='button-box'>
|
|
|
|
|
<View className='button' onClick={this.goMyNeedsPublishPage.bind(this)}>
|
|
|
|
|
<Button size='mini' className='button-green'>
|
|
|
|
|
<AtIcon value='add' size='12' color='white'></AtIcon>
|
|
|
|
|
新增</Button>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='button' onClick={this.goToMyNeedsPage.bind(this)}>
|
|
|
|
|
<Button size='mini' className='button-green'>
|
|
|
|
|
<AtIcon value='' size='12' color='white'></AtIcon>
|
|
|
|
|
我的需求</Button>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
const Avaialble = this.state.stateId === '1' && <View className='button' onClick={this.grabButtonHandler.bind(this)}>
|
|
|
|
|
<Button size='mini' className='button-orange'>抢单</Button>
|
|
|
|
|
</View>
|
|
|
|
|
const Unavailable = this.state.stateId === '2' && <View className='button'>
|
|
|
|
|
<Button size='mini' className='button-orange blur'>{this.state.stateName}</Button>
|
|
|
|
|
</View>
|
|
|
|
|
const SoldOut = this.state.stateId === '3' && <View className='button'>
|
|
|
|
|
<Button size='mini' className='button-orange blur'>{this.state.stateName}</Button>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
const ButtonElement = selfAndAvailable || selfAndUnAvaialble || Avaialble || Unavailable || SoldOut
|
2019-01-17 17:32:38 +08:00
|
|
|
|
|