addr_2.wxml 1.9 KB

<view class='container'>
  <view class='top'>
    <view class='top_item'>
      <view class='top_item_name'>姓名</view>
      <input placeholder='请输入姓名' placeholder-style='color:#cccccc' value='{{addressEdit.name}}' bindinput="enterName"></input>
    </view>
    <view class='top_item'>
      <view class='top_item_name'>手机号</view>
      <input placeholder='请输入手机号' placeholder-style='color:#cccccc' value='{{addressEdit.mobile}}' bindinput="enterPhone"></input>
    </view>
    <view class='top_item top_between'>
      <view class='top_item_name'>省市/区</view>
      <picker mode="region" bindchange="bindRegionChange" value="{{region}}" custom-item="{{customItem}}">
    <view class="top_item_right">
      <view>{{region[0]}},{{region[1]}},{{region[2]}}  </view>
      <!-- 箭头图片 -->
      <view class='top_item_right_pic'>
        <image src='../../../img/right_1.png'></image>
      </view>

    </view>
      </picker>
      
    </view>
    <!-- 详细地址 -->
    <view class='top_item'>
      <view class='top_item_name'>详细地址</view>
      <view class='top_item_text'>街道、小区、门牌号码</view>
    </view>
    <!-- 地址信息 -->
    <view class='top_item top_height'>
       <textarea placeholder='请输入详细地址,不少于15字' placeholder-style='color:#cccccc' value='{{addressEdit.address}}' bindinput="enterAddress"></textarea>
    </view>
  </view>

  <view class='mid'>
    <view class='mid_addr'>
      <view class='mid_addr_set'>设为默认地址</view>
      <view class='mid_addr_pic' data-status='{{status}}' bindtap='btn_set'>
        <image src="{{status==true?'../../../img/dakai@2x.png':'../../../img/guanbi@2x.png'}}"></image>
      </view>
      

    </view>
  </view>

  <!-- 按钮 -->
  <view class='bottom'>
    <view class='bottom_btn' bindtap='add_1'>
      保存
    </view>
  </view>
</view>