diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue index 15253f2..9e6426e 100644 --- a/components/tabBar/tabBar.vue +++ b/components/tabBar/tabBar.vue @@ -37,7 +37,8 @@ - @@ -64,9 +65,6 @@ const COMPONENT_NAME = 'tabBar' export default { name: COMPONENT_NAME, - - - props: { selectActive: { type: Number, @@ -74,6 +72,12 @@ export default { return 1 } }, + isTarde: { + type: Boolean, + default() { + return false + } + }, }, data() { return { @@ -87,7 +91,6 @@ export default { mounted() { }, methods: { - goToPage(num) { let url = '/pages/home/index'; switch (+num) { @@ -110,6 +113,16 @@ export default { default: break; } + if (this.isTarde) { // 如果是在交易页面,则返回上一级即可 + // #ifdef H5 + history.back() + // #endif + + // #ifdef APP-PLUS + uni.navigateBack() + // #endif + return; + } uni.reLaunch({ url, }) diff --git a/pages/charity/details.vue b/pages/charity/details.vue index 04587e5..c762cbb 100644 --- a/pages/charity/details.vue +++ b/pages/charity/details.vue @@ -95,7 +95,7 @@ + @touchmove.stop.prevent="">