Source: qianxiang_h5/ext.js

'use strict';

/* ui有关 */
/** @module qianxiang_h5.ext */

/**
 * 底部导航栏高亮显示
 * @function actBottom
 * @param {Number} idx - 对应的tab顺序,分别是0,1,2,3
 */
function actBottom(idx) {
    document.querySelectorAll('.bottom-nav .nav-link').forEach(function (dom, now) {
        if (idx == now) {
            dom.classList.add('act');
        } else {
            dom.classList.remove('act');
        }
    });
}

export {
    actBottom
};