You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.0 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<view class="p10">
<block>
<view class="tc" wx:if="{{!hasAddress}}">
<i class="t-icon t-icon-zanwu" style=" width: 92px;height: 92px;margin-top: 90px;"></i>
<view class="mt20 cccc">暂无收货地址</view>
</view>
</block>
<block wx:if="{{hasAddress}}">
<radio-group bindchange="radioChange">
<view class="p10 bgf br8 mb10" wx:for="{{recordList}}" wx:key="{{item.id}}">
<view class="display-flex bb1 pb16">
<view class="flex-1 c3">
<view>
{{item.contacts}}{{item.contactsTel}}
</view>
<view class="dib mt8">{{item.provinceName}} {{item.cityName}} {{item.districtName}} {{item.address}}</view>
</view>
<view wx:if="{{item.classify == 0}}" class="f12" style="color:#4db54b;">
<i class="iconfont icon-jia f12"></i>
</view>
<view wx:if="{{item.classify == 1}}" class="f12" style="color:#027AFF;">
<i class="iconfont icon-gongsi f12"></i>
公司
</view>
<view wx:if="{{item.classify == 2}}" class="f12" style="color:#FD3D33;">
<i class="iconfont icon-xuexiao f12"></i>
其他
</view>
</view>
<view class="mt12">
<radio value="{{item.id}}" checked="{{item.defaultFlag == 1}}" color="#027AFF"
style="transform: scale(0.7);" />
<text class="f14 {{item.defaultFlag == 1 ? 'cf00' : 'c9'}}">{{item.defaultFlag == 1 ? '已设为默认' :
'设为默认'}}</text>
<view class="fr f14 c9">
<navigator url="/pages/addAddress/index?id={{item.id}}" class="dib" hover-class="text-hover">修改</navigator>
<view class="ml20 dib" hover-class="text-hover" bindtap="delAddress" data-record="{{item}}">删除</view>
</view>
</view>
</view>
</radio-group>
</block>
<button type='primary' class="loginOut" style="margin-top:80px;margin-bottom:40px;" catchtap="addAddress">
添加地址
</button>
</view>