From 6783707c10bd72978b378fa5c0b4db66a40a5ef3 Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Thu, 19 Oct 2023 14:45:20 +0800 Subject: [PATCH] 1 --- App.vue | 3 +++ pages/ConfirmOrder/ConfirmOrder.vue | 8 ++++++++ pages/qianggou/productList.vue | 9 ++++++++- unpackage/dist/build/h5/index.html | 2 +- unpackage/dist/build/h5/static/js/index.e29c4434.js | 1 + unpackage/dist/build/h5/static/js/index.ebd8b42b.js | 1 - .../js/pages-ConfirmOrder-ConfirmOrder.80186b7d.js | 1 - .../js/pages-ConfirmOrder-ConfirmOrder.c0141f5f.js | 1 + .../h5/static/js/pages-qianggou-productList.109be154.js | 1 + .../h5/static/js/pages-qianggou-productList.bb1a370b.js | 1 - 10 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 unpackage/dist/build/h5/static/js/index.e29c4434.js delete mode 100644 unpackage/dist/build/h5/static/js/index.ebd8b42b.js delete mode 100644 unpackage/dist/build/h5/static/js/pages-ConfirmOrder-ConfirmOrder.80186b7d.js create mode 100644 unpackage/dist/build/h5/static/js/pages-ConfirmOrder-ConfirmOrder.c0141f5f.js create mode 100644 unpackage/dist/build/h5/static/js/pages-qianggou-productList.109be154.js delete mode 100644 unpackage/dist/build/h5/static/js/pages-qianggou-productList.bb1a370b.js diff --git a/App.vue b/App.vue index 6fc6008..f9fc909 100644 --- a/App.vue +++ b/App.vue @@ -2,6 +2,9 @@ export default { onLaunch: function() { console.log('App Launch'); + uni.setNavigationBar({ // 隐藏返回键 + backButtonHidden: true + }); }, onShow: function() { console.log('App Show'); diff --git a/pages/ConfirmOrder/ConfirmOrder.vue b/pages/ConfirmOrder/ConfirmOrder.vue index b61bd99..b097a1f 100644 --- a/pages/ConfirmOrder/ConfirmOrder.vue +++ b/pages/ConfirmOrder/ConfirmOrder.vue @@ -238,6 +238,14 @@ }) } }, + onBackPress(options) { + // 这里可以自定义返回逻辑,比如下面跳转其他页面 + uni.redirectTo({ + url: '/pages/qianggou/productList', + }) + // return true 表示禁止默认返回 + return true; + }, onLoad(option){ if(option.item){ this.addressObj = Object.assign({},this.addressObj,JSON.parse(option.item)); diff --git a/pages/qianggou/productList.vue b/pages/qianggou/productList.vue index bfad1bd..3be5112 100644 --- a/pages/qianggou/productList.vue +++ b/pages/qianggou/productList.vue @@ -64,7 +64,14 @@ export default { } }, components:{navbar}, - + onBackPress(options) { + // 这里可以自定义返回逻辑,比如下面跳转其他页面 + uni.switchTab({ + url:"/pages/qianggou/qianggou" + }) + // return true 表示禁止默认返回 + return true; + }, methods:{ refrenshHandle(){ uni.redirectTo({ diff --git a/unpackage/dist/build/h5/index.html b/unpackage/dist/build/h5/index.html index 042aad2..388092f 100644 --- a/unpackage/dist/build/h5/index.html +++ b/unpackage/dist/build/h5/index.html @@ -1,2 +1,2 @@