123456789101112131415161718192021222324252627282930313233 |
- <!--pages/address/index.wxml-->
- <view class="container addressContainer">
- <navigation-bar title="{{ id ? '修改地址' : '创建新地址' }}"></navigation-bar>
- <view class="section">
- <van-cell-group border="{{ false }}" class="cell-group">
- <van-field model:value="{{ name }}" placeholder="姓名" placeholder-style="color: #C0C0C0" maxlength="15">
- <view class="required" slot="label">收货人<text>*</text></view>
- </van-field>
- <van-field model:value="{{ phoneNumber }}" type="number" placeholder-style="color: #C0C0C0" placeholder="手机号码" maxlength="11">
- <view class="required" slot="label">联系电话<text>*</text></view>
- </van-field>
- <van-field value="{{ provinceName ? provinceName + '/' + cityName + (regionName ? '/' + regionName : '' ) : '' }}" placeholder-style="color: #C0C0C0" placeholder="省、市、区" readonly bind:tap="onShowAreaList">
- <view class="required" slot="label">所在地区<text>*</text></view>
- </van-field>
- <van-field model:value="{{ detailAddress }}" type="textarea" placeholder-style="color: #C0C0C0" placeholder="小区、门牌号等" input-class="textarea" autosize maxlength="100">
- <view class="required" slot="label">详细地址<text>*</text></view>
- </van-field>
- </van-cell-group>
- </view>
- <view class="pop-btn-group">
- <button class="submit-btn" disabled="{{ btnLoading }}" bind:tap="onOperationAddress">保存地址</button>
- </view>
- <!-- 地区 -->
- <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{103}}" show="{{showArea}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseAreaList" bind:after-leave="onAreaAfterLeave" bind:before-enter="onAreaBeforeEnter">
- <van-area wx:if="{{ !showAreaAfterLeave }}" id='area1' areaList="{{areaList}}" visible-item-count="6" item-height="46" value="{{ regionCode || cityCode }}" bind:cancel="onCloseAreaList" bind:confirm="submitArea" />
- </van-popup>
- </view>
|