card.wxml
1.07 KB
<view class="address-card">
<view wx:if="{{address}}" class="address {{frame ? 'frame' : ''}}" bindtap="chooseAddress">
<text class="iconfont icon-location"></text>
<view class="consignee">
<text class="name">{{address.consignee}}</text>
<text class="phone">{{address.mobile}}</text>
<text class="direction">{{address.areaText}}</text>
</view>
<text wx:if="{{!address.hideRightIcon}}" class="iconfont icon-right"></text>
</view>
<view wx:else class="address address-empty">
<view class="add-address" bindtap="addAddressByLocal">
<text class="left-icon">+</text>
<text class="text">手动新增收获地址</text>
<text class="iconfont icon-right"></text>
</view>
<view class="add-address add-wechat-address" bindtap="addAddressByWechat">
<text class="iconfont icon-wechat left-icon"></text>
<text class="text">一键获取微信地址</text>
<text class="iconfont icon-right"></text>
</view>
</view>
</view>