cao
This commit is contained in:
parent
38881b3947
commit
60c1ba901f
|
@ -1,8 +1,8 @@
|
|||
let BASE_URL
|
||||
import store from "@/store/index.js"
|
||||
// 环境
|
||||
// let env = "dev"
|
||||
let env = "prod"
|
||||
let env = "dev"
|
||||
// let env = "prod"
|
||||
|
||||
|
||||
let HTTP_REQUEST_URL
|
||||
|
|
|
@ -14,10 +14,11 @@
|
|||
"ignoreVersion": true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
|
||||
},
|
||||
"screenOrientation": [
|
||||
"portrait-primary",
|
||||
"portrait-secondary",
|
||||
"landscape-primary",
|
||||
"landscape-secondary"
|
||||
//可选,字符串数组类型,应用支持的横竖屏
|
||||
"portrait-primary", //可选,字符串类型,支持竖屏
|
||||
"portrait-secondary", //可选,字符串类型,支持反向竖屏
|
||||
"landscape-primary", //可选,字符串类型,支持横屏
|
||||
"landscape-secondary" //可选,字符串类型,支持反向横屏
|
||||
],
|
||||
"splashscreen": {
|
||||
"alwaysShowBeforeRender": true,
|
||||
|
|
28
pages.json
28
pages.json
|
@ -104,22 +104,22 @@
|
|||
"navigationBarTitleText": "苗情监测",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#35D190",
|
||||
"navigationBarTextStyle": "white",
|
||||
"app-plus": {
|
||||
"subNVues": [{
|
||||
"path": "pages/live/loading", //路径地址
|
||||
"id": "subNvue", //唯一id,一个页面下最多三个最好,否则影响性能
|
||||
// "type": "popup" 如果是弹窗可开启
|
||||
//这个是初始样式,当然初始想隐藏的话,这个不重要
|
||||
"style": {
|
||||
"width": "100%",
|
||||
"height": "100%",
|
||||
"position": "absolute"
|
||||
"navigationBarTextStyle": "white"
|
||||
// "app-plus": {
|
||||
// "subNVues": [{
|
||||
// "path": "pages/live/loading", //路径地址
|
||||
// "id": "subNvue", //唯一id,一个页面下最多三个最好,否则影响性能
|
||||
// // "type": "popup" 如果是弹窗可开启
|
||||
// //这个是初始样式,当然初始想隐藏的话,这个不重要
|
||||
// "style": {
|
||||
// "width": "100%",
|
||||
// "height": "100%",
|
||||
// "position": "absolute"
|
||||
|
||||
|
||||
}
|
||||
}]
|
||||
}
|
||||
// }
|
||||
// }]
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -443,7 +443,8 @@
|
|||
|
||||
|
||||
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 =
|
||||
"http://rtsp.lihaink.cn/live/lihai_lot_walnutpi_dev_6.live.mp4"
|
||||
userInfo.value.master_phone = "lihai_lot_land_1"
|
||||
|
|
|
@ -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>
|
|
@ -2,8 +2,7 @@
|
|||
<view>
|
||||
<view :vsrc="vsrc" :change:vsrc="renderScript.getVideoImg">
|
||||
<video v-if="shwovideo" @play="playVedio" @fullscreenchange="fullscreenchange" :controls="true"
|
||||
:autoplay="true" :style="'width: '+ windowWidth +'px; height: '+ boxStyle.height +'px;'" :src="videoUrl"
|
||||
id="video"></video>
|
||||
:autoplay="true" style="width: 100vw;height: 100vh;" :src="videoUrl" id="video"></video>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
@ -51,10 +50,13 @@
|
|||
this.openScoket(data)
|
||||
// this.canplay(option.device)
|
||||
this.platform = uni.getSystemInfoSync().platform
|
||||
this.windowWidth = uni.getSystemInfoSync().screenWidth //获取屏幕宽度
|
||||
this.boxStyle.width = this.windowWidth + 'px' //给宽度加px
|
||||
this.wHeight = uni.getSystemInfoSync().screenHeight; //获取屏幕高度
|
||||
this.boxStyle.height = this.wHeight; //改变视频高度
|
||||
// this.windowWidth = uni.getSystemInfoSync().screenWidth //获取屏幕宽度
|
||||
// this.boxStyle.width = this.windowWidth + 'px' //给宽度加px
|
||||
// this.wHeight = uni.getSystemInfoSync().screenHeight; //获取屏幕高度
|
||||
// this.boxStyle.height = this.wHeight; //改变视频高度
|
||||
|
||||
// console.log(this.boxStyle, 'boxstyle')
|
||||
|
||||
this.initFailTimer = setTimeout(() => {
|
||||
if (this.flag) {
|
||||
uni.$u.toast("初始化失败,请重新进入")
|
||||
|
@ -146,15 +148,18 @@
|
|||
playVedio() {
|
||||
this.subNvue.hide()
|
||||
this.flag = false
|
||||
uni.createVideoContext('video', this).requestFullScreen();
|
||||
setTimeout(() => {
|
||||
this.setUrl(this.videoUrl)
|
||||
}, 2000)
|
||||
// if (uni.getSystemInfoSync().platform == "ios") return
|
||||
// uni.createVideoContext('video', this).requestFullScreen();
|
||||
// screen.orientation.lock('landscape');
|
||||
|
||||
|
||||
},
|
||||
fullscreenchange(e) {
|
||||
console.log(e, "e")
|
||||
|
||||
if (!e.detail.fullScreen) { // 退出全屏,锁定竖屏
|
||||
plus.screen.lockOrientation('portrait-primary');
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
Promise.resolve("./pages/addLand/select_address_n.js").then((res) => {
|
||||
Promise.resolve("./pages/live/live.js").then((res) => {
|
||||
res.length;
|
||||
});
|
||||
Promise.resolve("./pages/live/loading.js").then((res) => {
|
||||
Promise.resolve("./pages/addLand/select_address_n.js").then((res) => {
|
||||
res.length;
|
||||
});
|
||||
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 |
|
@ -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
|
@ -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
|
@ -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
|
@ -1,7 +1,7 @@
|
|||
Promise.resolve("./pages/addLand/select_address_n.js").then((res) => {
|
||||
Promise.resolve("./pages/live/live.js").then((res) => {
|
||||
res.length;
|
||||
});
|
||||
Promise.resolve("./pages/live/loading.js").then((res) => {
|
||||
Promise.resolve("./pages/addLand/select_address_n.js").then((res) => {
|
||||
res.length;
|
||||
});
|
||||
Promise.resolve("./app.css.js").then(() => {
|
||||
|
|
Loading…
Reference in New Issue