addressManager.wxml 1.29 KB
<scroll-view scroll-y='true' class="my-address-page">
  <view class="address-container">
    <radio-group class="radio-group" bindchange="">
        <label class="radio" wx:for="{{items}}" wx:key="{{address_id}}" wx:for-index="index">
            <view class="address-item" bindtap="selectAddress" data-index='{{index}}'>
                <view class='name-container'>
                  <view class="name">{{item.consignee}}</view>
                  <view class="tel">{{item.mobile}}</view>
                  <view class="default" wx:if="{{item.is_default=='Y'}}">默认</view>
                  <view catchtap="editButtonTapped" class="edit" data-id="{{item.address_id}}" data-consignee="{{item.consignee}}" data-mobile="{{item.mobile}}" data-area_code="{{item.area_code}}" data-address="{{item.area}}" data-detail_address="{{item.address}}" data-is_default="{{item.is_default}}">编辑</view>
                </view>
                <view class="address-info">{{item.area + ' ' + item.address}}</view>
                <view class='separator'></view>
            </view>
        </label>
    </radio-group>
  </view>
</scroll-view>

<view catchtap="addButtonTapped" class='add-addressButton'>添加地址</view>
<!-- <import src="../../vendors/toast/wetoast.wxml"/>
<template is="wetoast" data="{{...__wetoast__}}"/> -->