晋级 二选一
转载<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})
本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:弹出框穿透滑动的问题
下一篇:函数节流 函数节流
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章