This commit is contained in:
lxz 2024-01-10 18:21:13 +08:00
parent 38881b3947
commit 60c1ba901f
25 changed files with 56 additions and 419 deletions

View File

@ -1,8 +1,8 @@
let BASE_URL let BASE_URL
import store from "@/store/index.js" import store from "@/store/index.js"
// 环境 // 环境
// let env = "dev" let env = "dev"
let env = "prod" // let env = "prod"
let HTTP_REQUEST_URL let HTTP_REQUEST_URL

View File

@ -14,10 +14,11 @@
"ignoreVersion": true //trueHBuilderX1.9.0 "ignoreVersion": true //trueHBuilderX1.9.0
}, },
"screenOrientation": [ "screenOrientation": [
"portrait-primary", //
"portrait-secondary", "portrait-primary", //
"landscape-primary", "portrait-secondary", //
"landscape-secondary" "landscape-primary", //
"landscape-secondary" //
], ],
"splashscreen": { "splashscreen": {
"alwaysShowBeforeRender": true, "alwaysShowBeforeRender": true,

View File

@ -104,22 +104,22 @@
"navigationBarTitleText": "苗情监测", "navigationBarTitleText": "苗情监测",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#35D190", "navigationBarBackgroundColor": "#35D190",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white"
"app-plus": { // "app-plus": {
"subNVues": [{ // "subNVues": [{
"path": "pages/live/loading", // // "path": "pages/live/loading", //
"id": "subNvue", //id // "id": "subNvue", //id
// "type": "popup" // // "type": "popup"
// // //
"style": { // "style": {
"width": "100%", // "width": "100%",
"height": "100%", // "height": "100%",
"position": "absolute" // "position": "absolute"
} // }
}] // }]
} // }
} }

View File

@ -443,7 +443,8 @@
const testUser = () => { const testUser = () => {
if (uni.getStorageSync("SY_USER").mobile == '19130550023') { if (uni.getStorageSync("SY_USER").mobile == '19130550023' || uni.getStorageSync("SY_USER").mobile ==
'19330904744') {
video_url.value = video_url.value =
"http://rtsp.lihaink.cn/live/lihai_lot_walnutpi_dev_6.live.mp4" "http://rtsp.lihaink.cn/live/lihai_lot_walnutpi_dev_6.live.mp4"
userInfo.value.master_phone = "lihai_lot_land_1" userInfo.value.master_phone = "lihai_lot_land_1"

17
pages/live/live.nvue Normal file
View File

@ -0,0 +1,17 @@
<template>
<video src="https://v6.huanqiucdn.cn/4394989evodtranscq1500012236/1694cc5d3270835014909133365/v.f100830.mp4"
style="width: 100vw;height: 100vh;" :autoplay="true" @fullscreenchange="fullscreenchange"></video>
</template>
<script setup>
plus.screen.lockOrientation()
// const fullscreenchange = (e) => {
// console.log(e)
// }
</script>
<style>
</style>

View File

@ -2,8 +2,7 @@
<view> <view>
<view :vsrc="vsrc" :change:vsrc="renderScript.getVideoImg"> <view :vsrc="vsrc" :change:vsrc="renderScript.getVideoImg">
<video v-if="shwovideo" @play="playVedio" @fullscreenchange="fullscreenchange" :controls="true" <video v-if="shwovideo" @play="playVedio" @fullscreenchange="fullscreenchange" :controls="true"
:autoplay="true" :style="'width: '+ windowWidth +'px; height: '+ boxStyle.height +'px;'" :src="videoUrl" :autoplay="true" style="width: 100vw;height: 100vh;" :src="videoUrl" id="video"></video>
id="video"></video>
</view> </view>
</view> </view>
</template> </template>
@ -51,10 +50,13 @@
this.openScoket(data) this.openScoket(data)
// this.canplay(option.device) // this.canplay(option.device)
this.platform = uni.getSystemInfoSync().platform this.platform = uni.getSystemInfoSync().platform
this.windowWidth = uni.getSystemInfoSync().screenWidth // // this.windowWidth = uni.getSystemInfoSync().screenWidth //
this.boxStyle.width = this.windowWidth + 'px' //px // this.boxStyle.width = this.windowWidth + 'px' //px
this.wHeight = uni.getSystemInfoSync().screenHeight; // // this.wHeight = uni.getSystemInfoSync().screenHeight; //
this.boxStyle.height = this.wHeight; // // this.boxStyle.height = this.wHeight; //
// console.log(this.boxStyle, 'boxstyle')
this.initFailTimer = setTimeout(() => { this.initFailTimer = setTimeout(() => {
if (this.flag) { if (this.flag) {
uni.$u.toast("初始化失败,请重新进入") uni.$u.toast("初始化失败,请重新进入")
@ -146,15 +148,18 @@
playVedio() { playVedio() {
this.subNvue.hide() this.subNvue.hide()
this.flag = false this.flag = false
uni.createVideoContext('video', this).requestFullScreen();
setTimeout(() => { setTimeout(() => {
this.setUrl(this.videoUrl) this.setUrl(this.videoUrl)
}, 2000) }, 2000)
// if (uni.getSystemInfoSync().platform == "ios") return
// uni.createVideoContext('video', this).requestFullScreen();
// screen.orientation.lock('landscape'); // screen.orientation.lock('landscape');
}, },
fullscreenchange(e) { fullscreenchange(e) {
console.log(e, "e")
if (!e.detail.fullScreen) { // 退 if (!e.detail.fullScreen) { // 退
plus.screen.lockOrientation('portrait-primary'); plus.screen.lockOrientation('portrait-primary');
} }

View File

@ -1,7 +1,7 @@
Promise.resolve("./pages/addLand/select_address_n.js").then((res) => { Promise.resolve("./pages/live/live.js").then((res) => {
res.length; res.length;
}); });
Promise.resolve("./pages/live/loading.js").then((res) => { Promise.resolve("./pages/addLand/select_address_n.js").then((res) => {
res.length; res.length;
}); });
Promise.resolve("./app.css.js").then(() => { Promise.resolve("./app.css.js").then(() => {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -1,23 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>View</title>
<link rel="stylesheet" href="app.css" />
<script>var __uniConfig = {"globalStyle":{},"darkmode":false}</script>
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
</head>
<body>
<div id="app"></div>
<script src="uni-app-view.umd.js"></script>
<script src="app-renderjs.js"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(function(){})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,188 +0,0 @@
{
"@platforms": [
"android",
"iPhone",
"iPad"
],
"id": "__UNI__D087881",
"name": "种植溯源",
"version": {
"name": "1.0.7",
"code": 107
},
"description": "",
"developer": {
"name": "",
"email": "",
"url": ""
},
"permissions": {
"Geolocation": {},
"Maps": {
"coordType": "gcj02"
},
"LivePusher": {},
"VideoPlayer": {},
"Barcode": {},
"Camera": {},
"UniMP": {
"description": "uni小程序"
},
"UniNView": {
"description": "UniNView原生渲染"
}
},
"plus": {
"useragent": {
"value": "uni-app",
"concatenate": true
},
"splashscreen": {
"target": "id:1",
"autoclose": true,
"waiting": true,
"delay": 0
},
"popGesture": "close",
"launchwebview": {
"id": "1",
"kernel": "WKWebview"
},
"usingComponents": true,
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"compatible": {
"ignoreVersion": true
},
"distribute": {
"google": {
"permissions": [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.USE_FINGERPRINT\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"minSdkVersion": 21
},
"apple": {
"dSYMs": false
},
"plugins": {
"ad": {},
"geolocation": {
"amap": {
"name": "amapC2GgorTaY",
"__platform__": [
"ios",
"android"
],
"appkey_ios": "a8c8821159c1781d4ea4651df856b872",
"appkey_android": "a8c8821159c1781d4ea4651df856b872"
},
"system": {
"__platform__": [
"ios",
"android"
]
}
},
"maps": {
"amap": {
"name": "amapC2GgorTaY",
"appkey_ios": "a8c8821159c1781d4ea4651df856b872",
"appkey_android": "a8c8821159c1781d4ea4651df856b872"
}
},
"audio": {
"mp3": {
"description": "Android平台录音支持MP3格式文件"
}
}
}
},
"statusbar": {
"immersed": "supportedDevice",
"style": "dark",
"background": "#F8F8F8"
},
"uniStatistics": {
"enable": false
},
"allowsInlineMediaPlayback": true,
"safearea": {
"background": "#ffffff",
"bottom": {
"offset": "auto"
}
},
"uni-app": {
"control": "uni-v3",
"vueVersion": "3",
"compilerVersion": "3.96",
"nvueCompiler": "uni-app",
"renderer": "auto",
"nvue": {
"flex-direction": "column"
},
"nvueLaunchMode": "normal",
"webView": {
"minUserAgentVersion": "49.0"
}
},
"tabBar": {
"position": "bottom",
"color": "#282828",
"selectedColor": "#0122C7",
"borderStyle": "rgba(255,255,255,0.4)",
"blurEffect": "none",
"fontSize": "10px",
"iconWidth": "24px",
"spacing": "3px",
"height": "50px",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/index/massif",
"iconPath": "/static/tabs-icon/sy.png",
"selectedIconPath": "/static/tabs-icon/sydj.png"
},
{
"pagePath": "pages/index/index",
"iconPath": "/static/tabs-icon/dk.png",
"selectedIconPath": "/static/tabs-icon/dkdj.png"
},
{
"pagePath": "pages/index/personal",
"iconPath": "/static/tabs-icon/approval.png",
"selectedIconPath": "/static/tabs-icon/approval-a.png"
}
],
"selectedIndex": 0,
"shown": true,
"child": [
"lauchwebview"
],
"selected": 0
}
},
"screenOrientation": [
"portrait-primary",
"portrait-secondary",
"landscape-primary",
"landscape-secondary"
],
"launch_path": "__uniappview.html"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
Promise.resolve("./pages/addLand/select_address_n.js").then((res) => { Promise.resolve("./pages/live/live.js").then((res) => {
res.length; res.length;
}); });
Promise.resolve("./pages/live/loading.js").then((res) => { Promise.resolve("./pages/addLand/select_address_n.js").then((res) => {
res.length; res.length;
}); });
Promise.resolve("./app.css.js").then(() => { Promise.resolve("./app.css.js").then(() => {