12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <view class="add-address">
- <view class="add-form">
- <view class="form-item">
- <input class="input" bindinput="bindinputName" placeholder="姓名" value="{{address.name}}" auto-focus/>
- </view>
- <view class="form-item">
- <input class="input" bindinput="bindinputMobile" value="{{address.tel}}" type="number" placeholder="手机号码" maxlength="11"/>
- </view>
- <!-- bindtap="chooseRegion" -->
- <view class="form-item" bindtap="goMap">
- <input class="input" value="{{address.province + address.city + address.county}}" disabled="true" placeholder="省份、城市、区县" />
- </view>
- <view class="form-item" bindtap="goMap">
- <input class="input" value="{{address.addressname}}" placeholder="请选择地址" disabled/>
- </view>
- <view class="form-item" >
- <input class="input" bindinput="bindinputAddress" value="{{address.detail}}" placeholder="请输入门牌号" />
- </view>
- <view class="form-default">
- <van-checkbox value="{{ address.isDefault == 1 }}" bind:change="bindIsDefault">设为默认地址</van-checkbox>
- </view>
- <view class="form-item" wx:if="{{address.id>0}}">
- <button style="background: #19B3FF;color: white;" data-address-id="{{address.id}}" bindtap="deleteAddress">删除地址</button>
- </view>
- </view>
- <view class="btns">
- <button class="cannel" bindtap="cancelAddress">取消</button>
- <button class="save" bindtap="saveAddress">保存</button>
- </view>
- <view class="region-select" wx:if="{{openSelectRegion}}">
- <view class="hd">
- <view class="region-selected">
- <view class="item {{item.code == 0 ? 'disabled' : ''}} {{(regionType -1) === index ? 'selected' : ''}}" bindtap="selectRegionType" data-region-type-index="{{index}}" wx:for="{{selectRegionList}}" wx:key="code">{{item.name}}</view>
- </view>
- <view class="done {{selectRegionDone ? '' : 'disabled'}}" bindtap="doneSelectRegion">确定</view>
- </view>
- <view class="bd">
- <scroll-view scroll-y class="region-list">
- <view class="item {{item.selected ? 'selected' : ''}}" bindtap="selectRegion" data-region-index="{{index}}" wx:for="{{regionList}}" wx:key="code">{{item.name}}</view>
- </scroll-view>
- </view>
- </view>
- </view>
- <view class="bg-mask" bindtap="cancelSelectRegion" wx:if="{{openSelectRegion}}"></view>
|