|
@@ -440,6 +440,30 @@ class Index extends Component {
|
|
|
</View>
|
|
|
)
|
|
|
}
|
|
|
+ renderCheckOnly () {
|
|
|
+ const { formObj, addr1, addr2, addr3 } = this.state
|
|
|
+ return (
|
|
|
+ <View className="scoped-checkout-only" onClick={() => {
|
|
|
+ if (!formObj.estate_id) {
|
|
|
+ Taro.$msg('请选择楼盘')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let house_no = ''
|
|
|
+ if (addr1 && addr2 && addr3) {
|
|
|
+ house_no = `${addr1}-${addr2}-${addr3}`
|
|
|
+ } else {
|
|
|
+ Taro.$msg('请输入楼栋单号房间号')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ Taro.api.room.apieshousecheck({
|
|
|
+ estate_id: formObj.estate_id,
|
|
|
+ house_no,
|
|
|
+ }).then(res => {
|
|
|
+ Taro.$msg(res.errmsg)
|
|
|
+ })
|
|
|
+ }}>检测房源唯一</View>
|
|
|
+ )
|
|
|
+ }
|
|
|
renderHouseType () {
|
|
|
const { hType1, hType2, hType3 } = this.state
|
|
|
return (
|
|
@@ -668,6 +692,7 @@ class Index extends Component {
|
|
|
keyStr="地址(必填)"
|
|
|
/>
|
|
|
{this.renderAddr()}
|
|
|
+ {this.renderCheckOnly()}
|
|
|
</View>
|
|
|
<View className="l-floor-pos2">
|
|
|
<LFormGroup
|