dm-wechat-mini/pages/help/address/edit/index.wxml
2025-02-15 23:33:33 +08:00

45 lines
1.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<view class="page-container shadow editor">
<!-- <picker range="{{communityList}}" range-key="name" value="{{communityIndex}}" bindchange="chooseCommonity"> -->
<view class="item">
<label class="key">绑定小区</label>
<label class="value">
{{communityName}}
</label>
</view>
<!-- </picker> -->
<view class="item">
<label class="key">用户姓名</label>
<view class="value">
<input class="input" placeholder="请输入用户名" model:value="{{name}}"/>
</view>
<radio-group class="radio-group" model:value="{{gender}}">
<label>
<radio value="MALE" class="radio" checked="{{gender=='MALE'}}"></radio>
<label>先生</label>
</label>
<label>
<radio value="FEMALE" class="radio" checked="{{gender=='FEMALE'}}"></radio>
<label>女士</label>
</label>
</radio-group>
</view>
<view class="item">
<label class="key">手机号码</label>
<input class="value" placeholder="请输入手机号码" model:value="{{phone}}"/>
</view>
<picker range="{{buildingList}}" range-key="building_name" bindchange="buildingChange"
model:value="{{buildingIndex}}">
<view class="item">
<label class="key">选择楼栋</label>
<input class="value" placeholder="请选择" disabled value="{{buildingList[buildingIndex].building_name}}" />
<image class="right-icon" src="/assets/icon/help/arrow-right@2x.png"/>
</view>
</picker>
<view class="item no-border">
<label class="key">详细地址</label>
<input class="value" placeholder="例1 单元1301" model:value="{{address_detail}}"/>
</view>
<button type="primary" bind:tap="save">{{editType=='add'?'保存并使用':'保存'}}</button>
<button wx:if="{{editType=='edit'}}" type="primary" plain bind:tap="deleteAddress">删除</button>
</view>