12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <view class="add-address">
- <view class="add-form">
- <view class="form-item">
- <view class="label">联系人</view>
- <view class="content">
- <input class="input" bindinput="bindinputName" placeholder="姓名" value="{{address.name}}" auto-focus />
- </view>
- </view>
- <view class="form-item">
- <view class="label">电 话</view>
- <view class="content">
- <input class="input" bindinput="bindinputMobile" value="{{address.tel}}" type="number" placeholder="手机号码" maxlength="11" />
- </view>
- </view>
- <!-- bindtap="chooseRegion" -->
- <view class="form-item" bindtap="goMap">
- <view class="label">服务地址</view>
- <view class="content">
- <!-- <image src="/static/images/address.png" style="width: 28rpx;height: 35rpx;margin-right: 10rpx;"></image> -->
- <view style="flex: 1;">
- <view wx:if="{{address.addressName}}" style="height: 36rpx;line-height: 36rpx;font-weight: bold;">{{address.addressName}}</view>
- <input class="input input1" value="{{address.province + address.city + address.county+address.address }}" disabled="true" placeholder="请选择服务地址" placeholder-style="color:#09afff;font-weight:500"/>
- </view>
- <image src="/static/images/arrow.png" style="width: 12rpx;height: 20rpx;margin-right: 10rpx;margin-top: 10rpx;"></image>
- </view>
- </view>
- <view class="form-item">
- <view class="label">门牌号</view>
- <view class="content">
- <input class="input" bindinput="bindinputAddress" value="{{address.detail}}" placeholder="例:9号楼1505室" />
- </view>
- </view>
- </view>
- <view class="form-default">
- <view style="display: flex;flex-direction: column;">
- <text class="title">设为默认地址</text>
- <text class="des">提醒:每次下单会默认推荐使用该地址</text>
- </view>
- <switch style="margin-right: 10rpx;" checked="{{address.isDefault == 1}}" bindchange="bindIsDefault" />
- </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 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>
|