|
项目里写了这么一段代码:
<view class="bottom-content">
<text class="text_7">共计:</text>
<text class="text_6">{{selectedList.length }}</text>
<text>颗物料</text>
<button class="button_2" @click="toDeliveryDetail" style={{"background-color:"+(selectedList.length==0 ? 'gray' : '#26A9B1')}}>模拟</button>
</view>
当我点击事件将 this.selectedList = [];
页面显示的物料数量并没有清零,但是下面的按钮背景颜色发生响应变化了,这种现象只发生在ios手机上,求解
|
|