晋级 二选一

<view class="title-item flexca w150 {{actsure?'cor2z':''}}" data-index='1' bindtap='actsureFn'>
商品
<view>
<text class="{{actsure?'active':''}}"></text>
</view>
</view>
<view class="title-item flexca w150 ml30 {{actsure?'':'cor2z'}}" data-index='' bindtap='actsureFn'>
店铺
<view>
<text class="{{actsure?'':'active'}}"></text>
</view>
</view>
 
let index = e.currentTarget.dataset.index;
console.log(index)
let actsure=true;
actsure =index|| false;
this.setData({actsure})
posted @ 2018-05-08 11:32  ThisCall  阅读(101)  评论(0编辑  收藏  举报