You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
203 lines
7.5 KiB
203 lines
7.5 KiB
<cu-custom bgColor="bg-blue" isCustom="{{true}}">
|
|
<view slot="content">房源管理</view>
|
|
</cu-custom>
|
|
|
|
<form bindsubmit="formSubmit" bindreset="formReset">
|
|
|
|
<view class="cu-bar bg-white solid-bottom ">
|
|
<view class='action'>
|
|
<text class='cuIcon-titles text-orange '></text> 房源信息
|
|
</view>
|
|
</view>
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">小区名称</view>
|
|
<button class="cu-btn bg-green shadow" bindtap="getLocation">获取位置</button>
|
|
<input class="margin-lr" name="name" value="{{data.house.name?data.house.name:areaName}}" disabled="true" placeholder="请获取小区位置信息"></input>
|
|
|
|
</view>
|
|
|
|
<view style="display:none;" class="cu-form-group">
|
|
<view class="title">地址</view>
|
|
<input name="address" value="{{data.house.address?data.house.address:address}}" placeholder="请输入地址"></input>
|
|
</view>
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">地址选择</view>
|
|
<picker mode="region" bindchange="RegionChange" value="{{region}}" custom-item="{{customItem}}">
|
|
<view class="picker">
|
|
{{region[0]}},{{region[1]}},{{region[2]}}
|
|
<input style="display:none;" name="province" value="{{region[0]}}"></input>
|
|
<input style="display:none;" name="city" value="{{region[1]}}"></input>
|
|
<input style="display:none;" name="area" value="{{region[2]}}"></input>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">经度</view>
|
|
<input name="longitude" disabled="true" value="{{data.house.longitude?data.house.longitude:longitude}}" placeholder="自动获取请勿修改"></input>
|
|
</view>
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">纬度</view>
|
|
<input name="latitude" disabled="true" value="{{data.house.latitude?data.house.latitude:latitude}}" placeholder="自动获取请勿修改"></input>
|
|
</view>
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">门牌号</view>
|
|
<input name="door_number" value="{{data.house.door_number}}" placeholder="请输入小区门牌号"></input>
|
|
</view>
|
|
<view class="cu-form-group">
|
|
<view class="title">租金</view>
|
|
<input type="number" name="rent" value="{{data.house.rent}}" placeholder="请输入租金"></input>
|
|
</view>
|
|
|
|
<!--
|
|
<view class="cu-form-group">
|
|
<view class="title">户型 </view>
|
|
<input name="apartment" value="{{data.house.apartment}}" placeholder="请输入户型 "></input>
|
|
</view>-->
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">户型</view>
|
|
<picker mode="selector" value="{{apartment}}" range="{{apartment_array}}" bindchange="bindapartment">
|
|
<view class="picker">
|
|
{{apartment}}
|
|
<input style="display:none;" name="apartment" value="{{apartment}}"></input>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">面积 </view>
|
|
<input name="measure" value="{{data.house.measure}}" placeholder="请输入面积(平方米)"></input>
|
|
</view>
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">水费 </view>
|
|
<input type="number" name="water_money" value="{{data.house.water_money}}" placeholder="请输入水费(以元为单位)"></input>
|
|
</view>
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">燃气费 </view>
|
|
<input type="number" name="gas_money" value="{{data.house.gas_money}}" placeholder="请输入燃气费(以元为单位)"></input>
|
|
</view>
|
|
|
|
<!--
|
|
<view class="cu-form-group">
|
|
<view class="title">楼层 </view>
|
|
<input name="floor_num" value="{{data.house.floor_num}}" placeholder="请输入楼层"></input>
|
|
</view>-->
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">楼层</view>
|
|
<picker mode="selector" value="{{floor_num}}" range="{{floornum_array}}" bindchange="bindfloorNum">
|
|
<view class="picker">
|
|
{{floornum_array[floor_num]}}
|
|
<input style="display:none;" name="floor_num" value="{{floornum_array[floor_num]}}"></input>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">开始日期</view>
|
|
<picker mode="date" value="{{startTime}}" start="2000-09-01" end="2030-09-01" bindchange="startTimeChange">
|
|
<view class="picker">
|
|
{{startTime}}
|
|
<input style="display:none;" name="start_time" value="{{startTime}}"></input>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">到期日期</view>
|
|
<picker mode="date" value="{{endTime}}" start="2000-09-01" end="2030-09-01" bindchange="endTimeChange">
|
|
<view class="picker">
|
|
{{endTime}}
|
|
<input style="display:none;" name="end_time" value="{{endTime}}"></input>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">房源配置 </view>
|
|
</view>
|
|
|
|
<checkbox-group name="housing_allocation">
|
|
<view class="cu-form-group grid col-3">
|
|
<view class="title" wx:for="{{housingAllocation}}">
|
|
<label>
|
|
<checkbox checked="{{item.checked}}" value="{{index}}" /> {{item.name}}
|
|
</label>
|
|
</view>
|
|
</view>
|
|
</checkbox-group>
|
|
|
|
<view class="cu-bar bg-white margin-top">
|
|
<view class="action">
|
|
房间相册
|
|
</view>
|
|
<view class="action">
|
|
{{imgList.length}}/10
|
|
</view>
|
|
</view>
|
|
|
|
<view class="cu-form-group">
|
|
<view class="grid col-4 grid-square flex-sub">
|
|
<view class="bg-img" wx:for="{{imgList}}" wx:key="{{index}}" bindtap="ViewImage" data-url="{{imgList[index]}}">
|
|
<image src='{{imgList[index]}}' mode='aspectFill'></image>
|
|
|
|
<view class="cu-tag bg-red" catchtap="DelImg" data-index="{{index}}">
|
|
<text class="cuIcon-close"></text>
|
|
</view>
|
|
</view>
|
|
<view class="solids" bindtap="ChooseImage" wx:if="{{imgList.length<10}}">
|
|
<text class="cuIcon-cameraadd"></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="cu-bar bg-white solid-bottom ">
|
|
<view class='action'>
|
|
<text class='cuIcon-titles text-orange '></text> 房东信息
|
|
</view>
|
|
</view>
|
|
|
|
<view class="cu-form-group margin-top">
|
|
<view class="title">姓 名</view>
|
|
<input name="holder_name" value="{{data.holder.holder_name}}" placeholder="请输入房东姓名"></input>
|
|
</view>
|
|
|
|
<view class="cu-form-group">
|
|
<view class="title">手机号</view>
|
|
<input type="number" name="phone" value="{{data.holder.phone}}" placeholder="请输入手机号"></input>
|
|
</view>
|
|
|
|
<!-- <view class="cu-form-group">
|
|
<view class="title">状 态 </view>
|
|
<radio-group name="status" class="radio-group" bindchange="radioChange">
|
|
<label class="radio" wx:for="{{status}}">
|
|
<radio value="{{index}}" checked="{{data.holder.status==index ?true:false }}" /> {{item}}
|
|
</label>
|
|
</radio-group>
|
|
</view> -->
|
|
|
|
<view class="cu-form-group align-start">
|
|
<view class="title">收款信息</view>
|
|
<textarea name="pay_info" value="{{data.holder.pay_info}}" maxlength="200" disabled="{{modalName!=null}}" placeholder="请输入收款信息"></textarea>
|
|
</view>
|
|
|
|
<input name="id" style="display:none;" value="{{id}}"></input>
|
|
<input name="holder_id" style="display:none;" value="{{data.holder.id}}"></input>
|
|
|
|
<view class="cu-form-group align-start">
|
|
<view class="title">备 注</view>
|
|
<textarea name="notes" value="{{data.holder.notes}}" maxlength="200" disabled="{{modalName!=null}}" placeholder="请输入备注信息"></textarea>
|
|
</view>
|
|
<input style="display:none;" maxlength="500" type="text" name="photo" value="{{photo}}"></input>
|
|
<view class="box text-center">
|
|
<button class="cu-btn bg-blue margin-bottom-lg lg" form-type="submit">立即保存
|
|
</button>
|
|
</view>
|
|
</form>
|