微信小程序-默認選中狀態
阿新 • • 發佈:2018-01-03
class lis 微信小程序 payment pos chat att ati bind
<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/[email protected]"></image>
<view class="recharg_wechatText">{{item.bankname}}({{item.cardno}})</view>
</view>
<view class="recharg_wechatIcon">
<image src="../../images/[email protected]" wx:if="{{item.id==isId}}"></image>
<image src="../../images/[email protected]" wx:else></image>
</view>
</view>
//判斷 wx:if="{{item.id==isId}}"
微信小程序-默認選中狀態