address-detail.wxml 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. <!--pages/address/index.wxml-->
  2. <view class="container addressContainer">
  3. <navigation-bar title="{{ id ? '修改地址' : '创建新地址' }}"></navigation-bar>
  4. <view class="section">
  5. <van-cell-group border="{{ false }}" class="cell-group">
  6. <van-field model:value="{{ name }}" placeholder="姓名" placeholder-style="color: #C0C0C0" maxlength="15">
  7. <view class="required" slot="label">收货人<text>*</text></view>
  8. </van-field>
  9. <van-field model:value="{{ phoneNumber }}" type="number" placeholder-style="color: #C0C0C0" placeholder="手机号码" maxlength="11">
  10. <view class="required" slot="label">联系电话<text>*</text></view>
  11. </van-field>
  12. <van-field value="{{ provinceName ? provinceName + '/' + cityName + (regionName ? '/' + regionName : '' ) : '' }}" placeholder-style="color: #C0C0C0" placeholder="省、市、区" readonly bind:tap="onShowAreaList">
  13. <view class="required" slot="label">所在地区<text>*</text></view>
  14. </van-field>
  15. <van-field model:value="{{ detailAddress }}" type="textarea" placeholder-style="color: #C0C0C0" placeholder="小区、门牌号等" input-class="textarea" autosize maxlength="100">
  16. <view class="required" slot="label">详细地址<text>*</text></view>
  17. </van-field>
  18. </van-cell-group>
  19. </view>
  20. <view class="pop-btn-group">
  21. <button class="submit-btn" disabled="{{ btnLoading }}" bind:tap="onOperationAddress">保存地址</button>
  22. </view>
  23. <!-- 地区 -->
  24. <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">
  25. <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" />
  26. </van-popup>
  27. </view>