微信小程序判断 wx:if wx:else
<view class="uinfo">
<text class="sex" wx:if="{{req.sex==1}}">男</text>
<text wx:else>女</text>
<image class="sex" wx:if="{{req.sex==1}}" src="/images/person/boy.png"></image>
<image class="sex" wx:else src="/images/person/girl.png"></image>
</view>