From 17299d00e10205b1b22cebb991f4c276c29e3b07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com>
Date: Fri, 24 Jun 2022 16:59:04 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=9C=A8app=E4=B8=AD?=
=?UTF-8?q?=E6=96=AD=E7=BD=91=E6=B2=A1=E6=9C=89=E5=8F=8A=E6=97=B6=E6=9B=B4?=
=?UTF-8?q?=E6=96=B0=E9=A6=96=E9=A1=B5=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/tabbar/home/views.vue | 8 ++++++--
uview-ui/components/u-no-network/u-no-network.vue | 5 +++++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/pages/tabbar/home/views.vue b/pages/tabbar/home/views.vue
index 56f7683..4001ee8 100644
--- a/pages/tabbar/home/views.vue
+++ b/pages/tabbar/home/views.vue
@@ -50,7 +50,7 @@
-
+
@@ -127,7 +127,11 @@ export default {
this.pageData = JSON.parse(res.data.result.pageData);
}
});
- },
+ },
+ // 是否有网络链接
+ isConnected(val){
+ val ? this.init() : ''
+ },
/**
* TODO 扫码功能后续还会后续增加
diff --git a/uview-ui/components/u-no-network/u-no-network.vue b/uview-ui/components/u-no-network/u-no-network.vue
index c784562..867ed5e 100644
--- a/uview-ui/components/u-no-network/u-no-network.vue
+++ b/uview-ui/components/u-no-network/u-no-network.vue
@@ -58,6 +58,11 @@
uZIndex() {
return this.zIndex ? this.zIndex : this.$u.zIndex.noNetwork;
}
+ },
+ watch:{
+ isConnected(val){
+ this.$emit('isConnected',val)
+ }
},
mounted() {
this.isIOS = (uni.getSystemInfoSync().platform === 'ios');