租房掌柜微信小程序Api以及小程序前端模板
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.
 
 
 
 
 
 

114 lines
4.2 KiB

<cu-custom bgColor="bg-blue" isCustom="{{true}}">
<view slot="backText">返回</view>
<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>
<input name="room_number" value="{{data.room.room_number}}" placeholder="请输入子房间编号"></input>
</view>
<view class="cu-form-group">
<view class="title">租金</view>
<input type="number" name="rent" value="{{data.room.rent}}" placeholder="请输入租金"></input>元/月
</view>
<view class="cu-form-group">
<view class="title">物业费</view>
<input type="number" name="property_fee" value="{{data.room.property_fee}}" placeholder="请输入物业费/月"></input>元/月
</view>
<view class="cu-form-group">
<view class="title">钥匙押金</view>
<input type="number" name="key_deposit" value="{{data.room.key_deposit}}" placeholder="请输入钥匙押金/人"></input>元/人
</view>
<view class="cu-form-group">
<view class="title">宽带费</view>
<input type="number" name="broadband_fee" value="{{data.room.broadband_fee}}" placeholder="请输入宽带费/月"></input>元/月
</view>
<view class="cu-form-group">
<view class="title">面积 </view>
<input name="measure" value="{{data.room.measure}}" placeholder="请输入面积(平方米)"></input>平方米
</view>
<view class="cu-form-group">
<view class="title">收租方式 </view>
<radio-group name="rent_type" class="radio-group padding-sm">
<label class="radio block" wx:for="{{rent_type}}">
<radio value="{{index}}" checked="{{data.room.rent_type==index ?true:false }}" /> {{item}}
</label>
</radio-group>
</view>
<view class="cu-bar bg-white margin-top">
<view class="action">
房间相册
</view>
<view class="action">
{{imgList.length}}/10
</view>
</view>
<input style="display:none;" maxlength="500" type="text" name="photo" value="{{photo}}"></input>
<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-form-group">
<view class="title">是否上架</view>
<switch name="is_up" class="orange radius sm"></switch>
</view>
<view class="cu-form-group" wx:if="{{id > 0}}">
<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" wx:if="{{id > 0}}">
<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 align-start">
<view class="title">说 明</view>
<textarea name="notes" value="{{data.room.notes}}" maxlength="200" disabled="{{modalName!=null}}" bindinput="textareaBInput" placeholder="请输入房间说明"></textarea>
</view>
<input name="house_id" style="display:none;" value="{{house_id}}"></input>
<input name="id" style="display:none;" value="{{id}}"></input>
<view class="box text-center">
<button class="cu-btn bg-blue margin-tb-sm lg" form-type="submit">立即保存
</button>
</view>
</form>