别的都生效了 就是{{index==current+1?after:''}}
这句话没有生效
就是想把当前元素的临近的下一个元素设置成border-top-right-radius: 60rpx
有人知道这是为什么不管用吗?
<view class="item {{index==current+1?'after':''}}" style="{{index==current?active:''}};" wx:for="{{list.dataList}}" bindtap="changeItem" data-index="{{index}}">
<view>{{item.name}}</view>
</view>
.after{
border-top-right-radius: 160rpx
}
style是直接写样式属性
你这个要改成:class="{}"
今天给你写的那个

.top{}
.bottom{}
.now{}