|
@@ -127,16 +127,16 @@ export default class SelectSize extends Component { |
|
@@ -127,16 +127,16 @@ export default class SelectSize extends Component { |
127
|
</View>
|
127
|
</View>
|
128
|
}
|
128
|
}
|
129
|
{
|
129
|
{
|
130
|
- this.state.canBuy && this.state.curPrice > this.state.curLowestPrice ?
|
130
|
+ this.state.canBuy ?
|
131
|
(<View className='btn-group'>
|
131
|
(<View className='btn-group'>
|
132
|
<Button className='buy-btn btn-col' hover-class='none' onClick={this.onClickBuy.bind(this, this.state.canBuy)} data-can-buy={this.state.canBuy}>
|
132
|
<Button className='buy-btn btn-col' hover-class='none' onClick={this.onClickBuy.bind(this, this.state.canBuy)} data-can-buy={this.state.canBuy}>
|
133
|
现货购买
|
133
|
现货购买
|
134
|
{
|
134
|
{
|
135
|
- this.state.canBuy && this.state.curPrice &&
|
135
|
+ this.state.curPrice &&
|
136
|
<Text className="price"> ¥{this.state.curPrice}</Text>
|
136
|
<Text className="price"> ¥{this.state.curPrice}</Text>
|
137
|
}
|
137
|
}
|
138
|
</Button>
|
138
|
</Button>
|
139
|
- {this.state.canBuy && <Button className='dowload-btn btn-col' hover-class='none'>
|
139
|
+ {this.state.curPrice > this.state.curLowestPrice && <Button className='dowload-btn btn-col' hover-class='none'>
|
140
|
<Text>下载有货app体验</Text>
|
140
|
<Text>下载有货app体验</Text>
|
141
|
<Text className="price"> 更低价 ¥{this.state.curLowestPrice}</Text>
|
141
|
<Text className="price"> 更低价 ¥{this.state.curLowestPrice}</Text>
|
142
|
</Button>}
|
142
|
</Button>}
|