<view
:style="{color:status==1? '#aa55ff':(status==2?
'#2ac355':(status==3?'#00ffff':'#ff0000'))}">
{{status==1?"已签约":status==2?"待审核":status==3?"已驳回":"待生效"}}
</view>
uniapp中实现多重三目运算
于 2023-05-06 17:11:38 首次发布
<view
:style="{color:status==1? '#aa55ff':(status==2?
'#2ac355':(status==3?'#00ffff':'#ff0000'))}">
{{status==1?"已签约":status==2?"待审核":status==3?"已驳回":"待生效"}}
</view>