addressEditer.wxml 2.85 KB
<addressPicker id='addressPicker' 
  editeAddressPage="{{editeAddressPage}}" bind:updateAddress="updateAddress" bind:selectAddressFinish="selectAddressFinish" bind:didTouchCancelButton="didTouchCancelButton">
</addressPicker>

    <view class="addressEditerContainer">
        <text class='address-title'>{{addressTitle}}</text>

        <view class="page-container">
            <view class="cell-container cell-bottom-border">
                <text class="cell-title">收货人</text>
                <input data-id="txtConsignee" class="cell-input" placeholder-class='cell-placeholder'  placeholder="请写姓名" bindinput="onInputChanged" value="{{editeAddressPage._consignee}}"/>
            </view>
            <view class="cell-container cell-bottom-border">
                <text class="cell-title">手机号</text>
                <input data-id="txtMobile" class="cell-input" placeholder-class='cell-placeholder' placeholder="请填写手机号" bindinput="onInputChanged" value="{{editeAddressPage._mobile}}"/>
            </view>
            <view class="cell-container cell-bottom-border" >
                <text class="cell-title">所在区域</text>
                <view class="cell-content">
                    <button wx:if="{{editeAddressPage._address}}" class="cell-input cell-placeholder select-area black" catchtap="choosearea">{{editeAddressPage._address}}</button>
                    <button wx:else class="cell-input cell-placeholder select-area" catchtap="choosearea">请选择</button>
                    <image src='../../../../assets/images/right-arrow@3x.png' class='right-arrow'></image>
                </view>
            </view>
            <view class="cell-container cell-bottom-border">
                <text class="cell-title">详细地址</text>
                <input data-id="txtAddress" class="cell-input" placeholder-class='cell-placeholder' placeholder="请输入详细地址" bindinput="onInputChanged" value="{{editeAddressPage._detailAddress}}"/>
            </view>
        </view>

        <view class='operation'>
            <view class="left" catchtap="defaultButtonTapped" data-id="{{editeAddressPage._id}}">
                <image src='{{editeAddressPage._is_default=="Y"?"../../../../assets/images/xuanze@2x.png":"../../../../assets/images/default-normal@3x.png"}}' class='select-image'></image>
                <text class='opt-text'>设为默认地址</text>
            </view>
            <view hidden="{{editeAddressPage.currentEditMode == 'modeAdd'}}" class='delete-btn' catchtap="onDeleteButtonTapped" data-id="{{editeAddressPage.address_id}}">删除地址</view>
        </view>

        <button class="'submit-btn' {{submitBtnEnable? 'enabled': ''}}" size="default" type="default" catchtap="onSubmitButtonTapped">确定</button>
    </view>
<!-- <import src="../../../vendors/toast/wetoast.wxml"/>
<template is="wetoast" data="{{...__wetoast__}}"/> -->