微信小程序mp-Slideview要怎么添加条件,让statusId=2时,才能出现预约按钮
<div wx:for="{{data}}">
<mp-slideview bindtap="pushProposal" data-index="{{index}}" bindbuttontap="slideButtonTap" class="slideview">
<view>{{item.statusId}}</view></mp-slideview>
</div>
slideButtons(){
type: 'recyle',
text: '再生成',
src: '/page/weui/cell/icon_love.svg',
},
{
type: 'warn',
text: '删除',
src: '/page/weui/cell/icon_star.svg',
},
{
show: false,
extClass: 'success',
text: '预约',
src: '/page/weui/cell/icon_del.svg',
},
]
data:[
{id:1,statusId:1},{id:2,statusId:2},{id:3,statusId:1}
]