menu-bar.wxml 500 B

1234567891011
  1. <view
  2. id="plvMenuBar"
  3. class="plv-mp-menubar-wrap {{ isLessTab ? 'plv-mp-menubar-wrap__less' : '' }} plv-mp-skin__{{ skin }}"
  4. bindtap="changeMenu">
  5. <view
  6. wx:for="{{ menuList }}" wx:for-index="index" wx:for-item="item" wx:key="index"
  7. class="plv-mp-menubar-item {{ index === activeIndex ? 'plv-mp-menubar-item__on' : '' }} {{ item.menuType === 'qa' && hasNewQuiz && index !== activeIndex ? 'plv-mp-quiz__tips' : '' }}"
  8. data-index="{{ index }}">
  9. {{ item.name }}
  10. </view>
  11. </view>