<view class="addCart {{shop.OpenFlag=='1'?'chose':'other'}}" bindtap="tapAddCart" data-id="{{items.GoodsId}}">
.other {
background: #ff8810;
pointer-events: none;
}
.chose {
background: #ff5c0d;
}
<view class="addCart {{shop.OpenFlag=='1'?'chose':'other'}}" bindtap="tapAddCart" data-id="{{items.GoodsId}}">
.other {
background: #ff8810;
pointer-events: none;
}
.chose {
background: #ff5c0d;
}