address.wxml 1.3 KB

1
  1. <view class="address"><view class="main"><block wx:for="{{addressList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="content"><view class="list"><view class="left _div"><van-checkbox vue-id="{{'91826bd4-1-'+index}}" checked-color="#f00" data-param2="{{item}}" value="{{item.commonAddr}}" data-event-opts="{{[['^change',[['onChange']]]]}}" data-com-type="wx" bind:change="__e" bind:__l="__l"></van-checkbox></view><view class="mid _div"><view class="info _div">{{''+(item.receiver+" "+item.mobile)+''}}<block wx:if="{{item.commonAddr==1}}"><van-tag class="tags" vue-id="{{'91826bd4-2-'+index}}" type="danger" round="{{true}}" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">默认</van-tag></block></view><view class="site van-ellipsis _div">{{item.province+""+item.city+""+item.area+""+item.addr+''}}</view></view><view class="right _div"><van-icon vue-id="{{'91826bd4-3-'+index}}" name="edit" data-event-opts="{{[['^click',[['editAddress',['$0'],[[['addressList','',index]]]]]]]}}" data-com-type="wx" bind:click="__e" bind:__l="__l"></van-icon></view></view></view></block></view><van-button class="btn" vue-id="91826bd4-4" type="danger" round="{{true}}" size="large" data-event-opts="{{[['^click',[['addAddress']]]]}}" data-com-type="wx" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">新增地址</van-button></view>