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.
38 lines
2.0 KiB
38 lines
2.0 KiB
<!--pages/enterprise/address-new/index.wxml-->
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">{{ id ? '编辑' : '新增' }}地址</view>
|
|
</cu-custom>
|
|
|
|
|
|
<view class="cu-form-group margin-top">
|
|
<view class="title">收货人:</view>
|
|
<input id="receiver" disabled="{{disabled}}" placeholder-style="color:#aaa" placeholder="请输入收货人" value="{{form.receiver}}" bindinput="bindinput"></input>
|
|
</view>
|
|
<view class="cu-form-group">
|
|
<view class="title">手机号码:</view>
|
|
<input id="receiverMobile" disabled="{{disabled}}" placeholder-style="color:#aaa" placeholder="请输入手机号码" value="{{form.receiverMobile}}" bindinput="bindinput"></input>
|
|
</view>
|
|
<view class="cu-form-group" data-index="1" style="border-top: 1px solid #f3f3f3" bindtap="showRegion">
|
|
<view class="flex text-sg">所在地区:
|
|
<view class="{{form.areaStr||'input-grey'}}">{{form.areaStr||'请选择所在地区'}}</view>
|
|
</view>
|
|
<text class="cuIcon-right text-gray" wx:if="{{!disabled}}"></text>
|
|
</view>
|
|
<view class="cu-form-group" style="border-top: 1rpx solid #f3f3f3">
|
|
<view class="title">详细地址:</view>
|
|
<input id="detail" disabled="{{disabled}}" placeholder-style="color:#aaa" placeholder="请输入详细地址" value="{{form.detail}}" bindinput="bindinput"></input>
|
|
</view>
|
|
|
|
<view class="cu-form-group" style="border-top: 1rpx solid #f3f3f3">
|
|
<view class="title">设为默认地址:</view>
|
|
<van-switch checked="{{ form.isDefault ? true : false }}" bind:change="onChange" />
|
|
</view>
|
|
|
|
<view style="margin-top:48rpx;padding:30rpx 60rpx;">
|
|
<van-button block type="danger" loading="{{requesting}}" wx:if="{{id}}" bind:click="deleteForm" custom-style="margin-bottom: 24rpx">删除</van-button>
|
|
<van-button block type="info" loading="{{requesting}}" bind:click="submitForm">保存</van-button>
|
|
</view>
|
|
|
|
<van-popup show="{{ show }}" position="bottom" bind:close="onClose">
|
|
<van-area area-list="{{ areaList }}" value="{{form.districtId}}" bind:confirm="onConfirm" bind:cancel="onClose"/>
|
|
</van-popup>
|