Commit 174820b3 by 李宁

1

1 parent 3343f60a
...@@ -784,6 +784,19 @@ body { ...@@ -784,6 +784,19 @@ body {
opacity: 0.4; opacity: 0.4;
} }
.mpCon .butt {
border-radius: .08rem;
background: #568FFE;
height: .88rem;
display: flex;
align-items: center;
justify-content: center;
color: #FFF;
font-size: .34rem;
font-weight: 500;
margin-bottom: .32rem;
}
.snCon .stil { .snCon .stil {
color: #333; color: #333;
font-size: .36rem; font-size: .36rem;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>江苏移动</title> <title>江苏移动</title>
<link rel="stylesheet" href="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/css/vant.css" /> <link rel="stylesheet" href="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/css/vant.css" />
<link rel="stylesheet" href="css/demo.css?1111"> <link rel="stylesheet" href="css/demo.css?113311">
</head> </head>
<body> <body>
...@@ -374,7 +374,7 @@ ...@@ -374,7 +374,7 @@
<script src="js/vue.min.js"></script> <script src="js/vue.min.js"></script>
<script src="js/vant.min.js"></script> <script src="js/vant.min.js"></script>
<script src="js/demo.js?sdd333"></script> <script src="js/demo.js?sd1d35533"></script>
</body> </body>
</html> </html>
\ No newline at end of file \ No newline at end of file
...@@ -320,7 +320,6 @@ function getProcess() { ...@@ -320,7 +320,6 @@ function getProcess() {
noShootTimeIndex = noShootTimeIndex >= 3 ? 3 : noShootTimeIndex noShootTimeIndex = noShootTimeIndex >= 3 ? 3 : noShootTimeIndex
noShootTimeNum = noShootTimeArr[noShootTimeIndex] noShootTimeNum = noShootTimeArr[noShootTimeIndex]
noShootTimeIndex += 1
$('#noShootShowAlert').show() $('#noShootShowAlert').show()
noShootShowMethod() noShootShowMethod()
...@@ -849,6 +848,7 @@ $('.clickButt').click(async (e) => { ...@@ -849,6 +848,7 @@ $('.clickButt').click(async (e) => {
} }
if (key == 'bunengpai') { if (key == 'bunengpai') {
noShootTimeIndex += 1
$('#noShootReasonAlert').show() $('#noShootReasonAlert').show()
return return
...@@ -1270,12 +1270,27 @@ $('#cheatClose').click(() => { ...@@ -1270,12 +1270,27 @@ $('#cheatClose').click(() => {
$('#warningTsAlert').hide() $('#warningTsAlert').hide()
}) })
// 提前请求媒体权限,减少弹窗等待时间
async function preRequestMediaPermission() {
try {
const stream = await navigator.mediaDevices.getUserMedia({ video: true, audio: true });
// 获取权限后立即停止,释放设备给后续 SDK 使用
stream.getTracks().forEach(track => track.stop());
console.log('预请求媒体权限成功');
} catch (err) {
console.warn('预请求媒体权限失败或用户拒绝:', err);
// 这里不阻断流程,后续 SDK 初始化时会再次尝试请求
}
}
$('#videoBegin').click(async () => { $('#videoBegin').click(async () => {
if (!AgoraRTC.checkSystemRequirements()) { if (!AgoraRTC.checkSystemRequirements()) {
util.toast('暂不支持') util.toast('暂不支持')
return return
} }
//preRequestMediaPermission()
$('#beginAlert').hide() $('#beginAlert').hide()
$('#loadingText').text('开启中,请稍候...') $('#loadingText').text('开启中,请稍候...')
$('#loading').show() $('#loading').show()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!