租房掌柜微信小程序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.
 
 
 
 
 
 

66 lines
2.5 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-form-group margin-top">
<view class="title">姓 名</view>
<input name="name" value="{{data.tenant.name}}" placeholder="请输入租客姓名"></input>
</view>
<view class="cu-form-group">
<view class="title">手机号</view>
<input type="number" name="phone" value="{{data.tenant.phone}}" placeholder="请输入手机号"></input>
</view>
<view class="cu-form-group">
<view class="title">身份证</view>
<input type="idcard" name="card_id" value="{{data.tenant.card_id}}" placeholder="请输入身份证号码"></input>
</view>
<view class="cu-form-group">
<view class="title">性 别 </view>
<radio-group name="sex" class="radio-group" bindchange="radioChange">
<label class="radio" wx:for="{{sex}}">
<radio value="{{index}}" checked="{{data.tenant.sex_id==index ? true:false }}" /> {{item}}
</label>
</radio-group>
</view>
<view class="cu-form-group show" wx:if="{{!id}}">
<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}}">
<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.tenant.notes}}" maxlength="200" disabled="{{modalName!=null}}" bindinput="textareaBInput" placeholder="请输入备注信息"></textarea>
</view>
<input type="number" style="display:none" name="room_id" value="{{room_id}}" />
<input type="number" style="display:none" name="rent_type" value="{{rent_type}}" />
<input type="number" style="display:none" name="id" value="{{id}}" />
<view>
<button class="cu-btn block bg-blue margin-tb-sm lg" form-type="submit">
<text></text> 立即保存
</button>
</view>
</form>