2023-2-22
完善功能
This commit is contained in:
@@ -785,25 +785,25 @@
|
||||
url: '/pages/search/search'
|
||||
});
|
||||
},
|
||||
//点击导航栏 buttons 时触发
|
||||
onNavigationBarButtonTap(e) {
|
||||
const index = e.index;
|
||||
if (index === 0) {
|
||||
this.$api.msg('点击了扫描');
|
||||
} else if (index === 1) {
|
||||
// #ifdef APP-PLUS
|
||||
const pages = getCurrentPages();
|
||||
const page = pages[pages.length - 1];
|
||||
const currentWebview = page.$getAppWebview();
|
||||
currentWebview.hideTitleNViewButtonRedDot({
|
||||
index
|
||||
});
|
||||
// #endif
|
||||
uni.navigateTo({
|
||||
url: '../../pagesU/notice/notice'
|
||||
});
|
||||
}
|
||||
}
|
||||
// //点击导航栏 buttons 时触发
|
||||
// onNavigationBarButtonTap(e) {
|
||||
// const index = e.index;
|
||||
// if (index === 0) {
|
||||
// this.$api.msg('点击了扫描');
|
||||
// } else if (index === 1) {
|
||||
// // #ifdef APP-PLUS
|
||||
// const pages = getCurrentPages();
|
||||
// const page = pages[pages.length - 1];
|
||||
// const currentWebview = page.$getAppWebview();
|
||||
// currentWebview.hideTitleNViewButtonRedDot({
|
||||
// index
|
||||
// });
|
||||
// // #endif
|
||||
// uni.navigateTo({
|
||||
// url: '../../pagesU/notice/notice'
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user