<van-radio-group value="{{checkBusiness}}" bind:change="handleChecked">
<view class="business-item-wrap" wx:for="{{businessData}}" wx:for-item="item" wx:key="index" data-bean="{{item}}">
<view class="list-item-check">
<van-radio icon-size="30px" name="{{item.licenseNo}}" data-bean="{{item}}" ></van-radio>
</view>
<view class="business-item-contact" data-bean="{{item}}" catchtap="checkItem">
<view class="item-con">
<view class="business-item-name">{{item.name}}</view>
<view class="business-item-tanwei">商户许可证:{{item.licenseNo}}</view>
<view class="business-item-tanwei">{{item.address}}</view>
</view>
</view>
</view>
</van-radio-group>
handleChecked(event){
var objData=this.data.businessData.find(function (x) {
return x.licenseNo === event.detail
})
this.setData({
checkBusiness: event.detail,
});
this.checkedSameResultFun(objData)
},
checkItem(event){
let itemData= event.currentTarget.dataset.bean;
this.setData({
checkBusiness: itemData.licenseNo,
});
this.checkedSameResultFun(itemData)
},
网友评论