From f913f5c28d67ff2d276efbaea2dd2f2b3b3a3fe7 Mon Sep 17 00:00:00 2001
From: xingyy <373639591@qq.com>
Date: Tue, 9 Jul 2024 18:55:32 +0800
Subject: [PATCH] 1123
---
App.vue | 10 +
manifest.json | 4 +-
pages.json | 25 +-
pages/index/index.vue | 5 +-
.../uv-no-network/uv-no-network.vue | 4 +-
unpackage/cache/appleConfig.ini | 2 +-
unpackage/cache/certdataios | 4 +-
.../cache/uts_custom_ios/app-ios-debug.json | 2 +-
.../.manifest/storyboard-ios.zip | Bin 1450706 -> 0 bytes
.../wgt/__UNI__4796942/app-config-service.js | 2 +-
.../cache/wgt/__UNI__4796942/app-service.js | 2 +-
.../cache/wgt/__UNI__4796942/manifest.json | 2 +-
.../wgt/__UNI__4796942/pages/index/index.css | 1 -
.../__UNI__4796942/pages/networko/index.css | 2 +-
unpackage/debug/iOS_debug.ipa | Bin 17267867 -> 15820705 bytes
.../dist/build/app-plus/app-config-service.js | 2 +-
unpackage/dist/build/app-plus/app-service.js | 2 +-
unpackage/dist/build/app-plus/manifest.json | 4 +-
.../dist/build/app-plus/pages/index/index.css | 2 +-
.../build/app-plus/pages/networko/index.css | 2 +-
unpackage/dist/dev/app-plus/app-service.js | 165 +++---
unpackage/dist/dev/app-plus/manifest.json | 4 +-
.../dist/dev/app-plus/pages/index/index.css | 549 ++++++++++++++++++
23 files changed, 683 insertions(+), 112 deletions(-)
delete mode 100644 unpackage/cache/wgt/__UNI__4796942/.manifest/storyboard-ios.zip
diff --git a/App.vue b/App.vue
index 0c69871..bea28b2 100644
--- a/App.vue
+++ b/App.vue
@@ -17,6 +17,16 @@
onLaunch: function() {
},
onShow: function() {
+ uni.getNetworkType({
+ success:(res)=> {
+ if(res.networkType==='none') {
+ uni.redirectTo({
+ url: '/pages/networko/index'
+ })
+
+ }
+ }
+ })
uni.onNetworkStatusChange(this.networkStatusChange);
},
onHide: function() {
diff --git a/manifest.json b/manifest.json
index 6d0de8d..1c4335a 100644
--- a/manifest.json
+++ b/manifest.json
@@ -122,13 +122,13 @@
},
"splashscreen" : {
"useOriginalMsgbox" : true,
- "androidStyle" : "default",
+ "androidStyle" : "common",
"android" : {
"hdpi" : "static/image/sy.png",
"xhdpi" : "static/image/sy.png",
"xxhdpi" : "static/image/sy.png"
},
- "iosStyle" : "storyboard",
+ "iosStyle" : "common",
"ios" : {
"storyboard" : "files/CustomStoryboard.zip"
}
diff --git a/pages.json b/pages.json
index 0f688a0..5bd6e4f 100644
--- a/pages.json
+++ b/pages.json
@@ -1,21 +1,20 @@
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
-
- {
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "uni-app",
- "navigationStyle": "custom"
- }
- },
{
- "path" : "pages/networko/index",
- "style" :
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "uni-app",
+ "navigationStyle": "custom"
+ }
+ },
{
- "navigationBarTitleText": "uni-app",
- "navigationStyle": "custom"
+ "path" : "pages/networko/index",
+ "style" :
+ {
+ "navigationBarTitleText": "uni-app",
+ "navigationStyle": "custom"
+ }
}
- }
],
"globalStyle": {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index fecedb1..5466a1b 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,9 +1,10 @@
-
+