diff --git a/App.vue b/App.vue index 78acf62..a9c5393 100644 --- a/App.vue +++ b/App.vue @@ -2,7 +2,7 @@ export default { onLaunch: function() { console.log('App Launch'); - document.querySelector('.uni-page-head-hd').style.display = 'none' + }, onShow: function() { console.log('App Show'); @@ -43,7 +43,5 @@ body{ img{ width: 100%; } -.uni-page-head-hd { - display: none !important; - } + diff --git a/pages/qianggou/productList.vue b/pages/qianggou/productList.vue index 3be5112..6da65f3 100644 --- a/pages/qianggou/productList.vue +++ b/pages/qianggou/productList.vue @@ -72,6 +72,12 @@ export default { // return true 表示禁止默认返回 return true; }, + onUnload() { + uni.switchTab({ + url:"/pages/qianggou/qianggou" + }) + }, + methods:{ refrenshHandle(){ uni.redirectTo({ diff --git a/unpackage/dist/build/h5/index.html b/unpackage/dist/build/h5/index.html index 0a1937e..faf232a 100644 --- a/unpackage/dist/build/h5/index.html +++ b/unpackage/dist/build/h5/index.html @@ -1,2 +1,2 @@