Explorar o código

订单列表 倒计时 安卓手机息屏不走问题(ios好着)

chenrui %!s(int64=4) %!d(string=hai) anos
pai
achega
6765a443f2
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      pages/order/order.vue

+ 3 - 0
pages/order/order.vue

@@ -195,6 +195,9 @@
 		onUnload() {
 			uni.$off('refresh', this.handleRefresh)
 		},
+		onShow() {
+			this.getRow(1)  //  解决安卓息屏后倒计时不走问题
+		},
 		// 下拉刷新
 		onPullDownRefresh() {
 			console.log('refresh')