diff --git a/App.vue b/App.vue index 0a64e24..d22e43f 100644 --- a/App.vue +++ b/App.vue @@ -4,10 +4,13 @@ export default { onLaunch: function() { // 生成设备唯一码 - // upapp() + uni.getPushClientId({ + success: (res) => {} + }) let _Android =uni.getStorageSync('cid') || new Date().getTime() // #ifdef APP + // 获取设备码 function getAndroidId() { plus.android.importClass("android.provider.Settings"); @@ -22,17 +25,39 @@ if (uni.getStorageSync('token')) { soket() uni.reLaunch({ - url: "/pages/index" + url: "/pages/index", + success() { + // #ifdef APP-PLUS + // 检查是否要更新APP + setTimeout(()=>{ + upapp() + },1000) + + // #endif + } + }) } else { uni.reLaunch({ - url: "/pages/signIn" + url: "/pages/signIn", + success() { + // #ifdef APP-PLUS + // 检查是否要更新APP + setTimeout(()=>{ + upapp() + },1000) + // #endif + } }) } // #ifdef APP-PLUS setTimeout(() => { plus.navigator.setFullscreen(true) + }, 500) + + + // #endif }, onShow: function() { diff --git a/manifest.json b/manifest.json index 09bd751..82080dd 100644 --- a/manifest.json +++ b/manifest.json @@ -27,7 +27,8 @@ "Geolocation" : {}, "LivePusher" : {}, "VideoPlayer" : {}, - "Camera" : {} + "Camera" : {}, + "Push" : {} }, /* 应用发布信息 */ "distribute" : { @@ -41,9 +42,14 @@ "", "", "", + "", + "", + "", + "", "", "", - "", + "", + "", "", "", "", @@ -70,7 +76,12 @@ "appkey_android" : "nWnzss8CKEBKcBLoYUdVybkrKl4o2izT" } }, - "statics" : {} + "statics" : {}, + "push" : { + "unipush" : { + "offline" : false + } + } }, "icons" : { "android" : { @@ -106,18 +117,25 @@ } }, "nativePlugins" : { - "hk-preview" : { + "AS-HikVideoModule" : { + "android_appid" : "blyc.qjcs.com", "__plugin_info__" : { - "name" : "海康视频实时预览插件", - "description" : "海康摄像头录像机直连插件,实现设备视频预览和云台控制", + "name" : "海康摄像头插件 - [试用版,仅用于自定义调试基座]", + "description" : "基于海康SDK开发,支持视频实时预览、视频抓拍、录像、摄像头旋转、缩放及回预置点等操作,支付后联系QQ提供源码,可根据需求有偿修改", "platforms" : "Android", - "url" : "https://ext.dcloud.net.cn/plugin?id=1981", - "android_package_name" : "blyc.qjcs.com", + "url" : "https://ext.dcloud.net.cn/plugin?id=7190", + "android_package_name" : "", "ios_bundle_id" : "", "isCloud" : true, - "bought" : 1, - "pid" : "1981", - "parameters" : {} + "bought" : 0, + "pid" : "7190", + "parameters" : { + "android_appid" : { + "des" : "参数描述", + "key" : "TM123456", + "value" : "" + } + } } } } diff --git a/pages.json b/pages.json index 70d1c3c..4e7a487 100644 --- a/pages.json +++ b/pages.json @@ -7,41 +7,77 @@ } }, { - "path": "pages/index", + "path": "pages/subNVue/camera", "style": { "navigationStyle": "custom" } }, + { + "path": "pages/index", + "style": { + "navigationStyle": "custom", + "app-plus":{ + "subNVues": [{ + "id": "hkcamera", // 唯一标识 + "path": "pages/subNVue/camera" // 页面路径 + + }] + } + + + } + }, { "path": "pages/signIn", "style": { - "navigationStyle": "custom" + "navigationStyle": "custom", + "app-plus": { + "bounce": "none", + "scrollIndicator": "none" + } } }, { - "path": "pages/upapp", - "style": { - "app-plus": { - "animationDuration": 200, - "animationType": "fade-in", - "background": "transparent", - "backgroundColorTop": "transparent", - "popGesture": "none", - "scrollIndicator": false, - "titleNView": false - }, - "disableScroll": true - } + "path": "pages/upapp", + "style": { + "app-plus": { + "animationDuration": 200, + "animationType": "fade-in", + "background": "transparent", + "backgroundColorTop": "transparent", + "popGesture": "none", + "scrollIndicator": "none", + "titleNView": false, + "bounce": "none" + }, + "navigationStyle": "custom", + "background": "transparent", + "backgroundColorTop": "transparent", + "disableScroll": true + } + }, + { + "path": "uni_modules/rt-uni-update/components/rt-uni-update/rt-uni-update", + "style": { + "app-plus": { + "animationDuration": 200, + "animationType": "fade-in", + "background": "transparent", + "backgroundColorTop": "transparent", + "popGesture": "none", + "scrollIndicator": false, + "titleNView": false + }, + "disableScroll": true + } } - - ], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "区间测速", "navigationBarBackgroundColor": "#F8F8F8", - "pageOrientation": "portrait", - "backgroundColor": "#F8F8F8" + "pageOrientation": "portrait" + }, "uniIdRouter": {} } \ No newline at end of file diff --git a/pages/index.vue b/pages/index.vue index b4ee1c2..ab4fa03 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,5 +1,5 @@ @@ -99,13 +130,14 @@ justify-content: space-between; padding: 0rpx 118rpx 0 32rpx; background: #f1f5fd; + .left { width: 410rpx; height: 310rpx; } .box { - + .title { height: 40rpx;