2023-2-22

完善功能
This commit is contained in:
2023-02-22 22:33:30 +08:00
parent c64e72109e
commit f9a709e149
4 changed files with 73 additions and 42 deletions

View File

@@ -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>