晋级 二选一
<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})