address.wxml 1.6 KB

1
  1. <view class="data-v-2afdc672"><navbar vue-id="205c0e80-1" iSimmersive="{{false}}" title-color="#ffffff" background="#c30d24" placeholder="{{true}}" title="我的地址" class="data-v-2afdc672" bind:__l="__l"></navbar><block wx:if="{{!isLoading&&isError==false}}"><view class="data-v-2afdc672"><view class="address-list data-v-2afdc672"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="address-box data-v-2afdc672"><view class="t data-v-2afdc672"><view class="t-1 data-v-2afdc672"><text class="data-v-2afdc672">{{item.name}}</text><text class="data-v-2afdc672">{{item.tel}}</text></view><view class="desc data-v-2afdc672">{{item.address}}</view></view><view class="b data-v-2afdc672"><block wx:if="{{item.is_default}}"><view class="b-1 data-v-2afdc672">默认地址</view></block><view class="b-2 data-v-2afdc672"><text data-event-opts="{{[['tap',[['onEdit',['$0'],[[['list','',index,'id']]]]]]]}}" bindtap="__e" class="data-v-2afdc672">修改</text><text data-event-opts="{{[['tap',[['onDelete',['$0'],[[['list','',index,'id']]]]]]]}}" bindtap="__e" class="data-v-2afdc672">删除</text></view></view></view></block></view><view class="btn data-v-2afdc672"><view data-event-opts="{{[['tap',[['onAdd',['$event']]]]]}}" class="add data-v-2afdc672" bindtap="__e">新增地址</view></view></view></block><block wx:if="{{isLoading}}"><loading vue-id="205c0e80-2" class="data-v-2afdc672" bind:__l="__l"></loading></block><block wx:if="{{isError&&isLoading==false}}"><empty-box vue-id="205c0e80-3" type="address" data-event-opts="{{[['^onEvents',[['onAdd']]]]}}" bind:onEvents="__e" class="data-v-2afdc672" bind:__l="__l"></empty-box></block></view>