<!-- 一进来数据is_default =1 同时 flag默认false选择状态 -->
<icon wx:if="{{(addressItem.is_default == 1&& flag == false) || (addressItem.id == address_id && flag == true)}}" type="success" color="red" size='20' />
data: {
// 地址选中状态
flag: false, }
onLoad: function (options) {
this.setData({
flag: false
})
//默认地址选择
addressSelect: function (e) {
console.log(e,'e')
this.setData({
flag: true
})
}