68 lines
2.6 KiB
Plaintext
68 lines
2.6 KiB
Plaintext
<view class="cells shadow editor">
|
||
<view class="cell">
|
||
<view class="cell-hd not-empty">绑定小区</view>
|
||
<view class="cell-bd">
|
||
{{communityName}}
|
||
</view>
|
||
</view>
|
||
|
||
<view class="cell">
|
||
<view class="cell-hd not-empty">用户姓名</view>
|
||
<view class="cell-bd">
|
||
<input class="input" placeholder="请输入用户名" model:value="{{name}}"
|
||
animation="{{nameAnimation}}" focus="{{nameFocus}}"/>
|
||
<view class="error">{{nameMessage}}</view>
|
||
</view>
|
||
<view class="cell-ft">
|
||
<radio-group bindchange="genderChange" class="radio-group">
|
||
<label class="item">
|
||
<radio value="MALE" class="radio" checked="{{gender=='MALE'}}"></radio>
|
||
<label>先生</label>
|
||
</label>
|
||
<label class="item">
|
||
<radio value="FEMALE" class="radio" checked="{{gender=='FEMALE'}}"></radio>
|
||
<label>女士</label>
|
||
</label>
|
||
</radio-group>
|
||
</view>
|
||
</view>
|
||
|
||
|
||
<view class="cell">
|
||
<view class="cell-hd not-empty">手机号码</view>
|
||
<view class="cell-bd">
|
||
<input class="value" placeholder="请输入手机号码" model:value="{{phone}}"
|
||
animation="{{phoneAnimation}}" focus="{{phoneFocus}}"/>
|
||
<view class="error">{{phoneMessage}}</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="cell cell-access">
|
||
<view class="cell-hd not-empty">选择楼栋</view>
|
||
<picker class="cell-bd picker" range="{{buildingList}}" range-key="building_name" bindchange="buildingChange" model:value="{{buildingIndex}}">
|
||
<input class="value" placeholder="请选择" disabled value="{{buildingList[buildingIndex].building_name}}" animation="{{buildingIndexAnimation}}" focus="{{buildingIndexFocus}}"/>
|
||
<view class="error">{{buildingIndexMessage}}</view>
|
||
</picker>
|
||
<view class="cell-ft"></view>
|
||
</view>
|
||
|
||
<view class="cell no-border">
|
||
<view class="cell-hd not-empty">详细地址</view>
|
||
<view class="cell-bd">
|
||
<input class="value" placeholder="例:1 单元1301" model:value="{{address_detail}}"
|
||
animation="{{address_detailAnimation}}" focus="{{address_detailFocus}}"/>
|
||
<view class="error">{{address_detailMessage}}</view>
|
||
</view>
|
||
</view>
|
||
|
||
|
||
<button class="button" type="primary" bind:tap="save">
|
||
{{editType=='add'?'保存并使用':'保存'}}
|
||
</button>
|
||
<button wx:if="{{editType=='edit'}}" type="primary" plain bind:tap="showModal"
|
||
class="button">删除</button>
|
||
</view>
|
||
|
||
<modal-view titleText="确定删除此地址吗" show="{{isShowConfirm}}" bind:ok="deleteAddress"
|
||
cancelButtonText="再想想" okButtonText="删除"></modal-view>
|