You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
420 B
22 lines
420 B
let other = {}
|
|
|
|
/**
|
|
* 自定义tabBar设置索引
|
|
* {param} int index 索引
|
|
* {param} object _this 页面实例对象
|
|
* 2022-09-06
|
|
*/
|
|
other.setTabBarIndex = function(index, _this) {
|
|
/* 微信小程序 */
|
|
// #ifdef MP-WEIXIN
|
|
if (typeof _this.$mp.page.getTabBar === 'function' &&
|
|
_this.$mp.page.getTabBar()) {
|
|
_this.$mp.page.getTabBar().setData({
|
|
selected: index
|
|
})
|
|
}
|
|
// #endif
|
|
}
|
|
|
|
export default other
|