浏览代码

bug 修复

lilei 4 年之前
父节点
当前提交
a2e7140c12
共有 2 个文件被更改,包括 3 次插入10 次删除
  1. 0 10
      App.vue
  2. 3 0
      pages/work/index/index.vue

+ 0 - 10
App.vue

@@ -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() {

+ 3 - 0
pages/work/index/index.vue

@@ -146,6 +146,8 @@ export default {
 		if(this.$store.state.vuex_workStatus == 'starting'){
 			this.status = 'start'
 			this.$store.state.vuex_workStatus = 'start'
+			// 更新当前倒计时
+			this.updateDjs()
 		}
 	},
 	onLoad(options) {
@@ -205,6 +207,7 @@ export default {
 		// 更新当前倒计时
 		updateDjs(){
 			let od = this.$store.state.vuex_orderDjs
+			console.log(od,'od')
 			if(od!=0){
 				let d = new Date().getTime() - od
 				this.timestamp = 300 - d/1000