微信小程序-默认选中状态

时间:2018-01-03 15:52:52   收藏:0   阅读:1713
<view class="bank_MianBox" id="{{item.id}}" wx:for="{{list}}" bindtap=‘activeBtn‘>
<view class="recharg_wechatEmpty">
<image id="{{item.id}}" catchtap=‘emptyBtn‘ hidden=‘{{emptyShow}}‘ src="../../images/icon_delete_per@2x.png"></image>
<view class="recharg_wechatText">{{item.bankname}}({{item.cardno}})</view>
</view>
<view class="recharg_wechatIcon">
<image src="../../images/icon_payment_per@2x.png" wx:if="{{item.id==isId}}"></image>
<image src="../../images/icon_payment@2x.png" wx:else></image>
</view>
</view>
 
//判断 wx:if="{{item.id==isId}}"
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!