|
@@ -27,16 +27,6 @@
|
|
|
console.log('App onLaunch')
|
|
|
},
|
|
|
onShow: function() {
|
|
|
- const pages = getCurrentPages(); // 获取加载的页面
|
|
|
- const currentPage = pages[pages.length - 1]; // 获取当前页面的对象
|
|
|
- let url = currentPage ? currentPage.route :''; // 当前页面url
|
|
|
- // console.log(url,'App Show')
|
|
|
- // 用户扫描二维码后进入下单页面 未支付时,切换小程序至后台,再次显示时 进入首页
|
|
|
- if(this.$store.state.vuex_orderStatus != 'PAID'&&url=='pages/getOrder/getOrder') {
|
|
|
- uni.reLaunch({
|
|
|
- url: '/pages/index/index'
|
|
|
- })
|
|
|
- }
|
|
|
console.log('App Show')
|
|
|
},
|
|
|
onHide: function() {
|