From c3f94d1085424422c784bc0674a1771f6039cb65 Mon Sep 17 00:00:00 2001 From: "[liang]" <[595996918@qq.com]> Date: Thu, 25 Aug 2022 16:19:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=88=92=E5=8A=A8=E7=A9=BF?= =?UTF-8?q?=E9=80=8F=E9=97=AE=E9=A2=98,=E4=BF=AE=E6=94=B9markets=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/tabBar/tabBar.vue | 23 +++-- pages/charity/details.vue | 2 +- pages/home/index.vue | 6 +- pages/markets/index.vue | 1 - pages/markets/trade.vue | 146 +++++++++++++++++++++++++++++++- pages/me/transfer.vue | 4 +- pages/recharge/recharge.vue | 2 +- pages/withdrawal/addAddress.vue | 2 +- pages/withdrawal/withdrawal.vue | 2 +- static/maskets/menu.png | Bin 0 -> 209 bytes 10 files changed, 169 insertions(+), 19 deletions(-) create mode 100644 static/maskets/menu.png 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="">