question:
Hidden is turned on but does not take effect, and the word manager is always displayed.
<view style="ont-size: 28rpx;color: #959595;display: inline-block;" hidden>
经理 </view>
solve:
style is an inline style with greater weight. Put the style into wxss.
//wxss
.dep_name {
font-size: 28rpx;color: #959595;display: inline-block;
}
//wxml
<view class="dep_name" hidden>
</view>