Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李宁
/
Activity
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 174820b3
authored
Feb 11, 2026
by
李宁
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
3343f60a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
3 deletions
huaian/css/demo.css
huaian/demo.html
huaian/js/demo.js
huaian/css/demo.css
View file @
174820b
...
@@ -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
;
...
...
huaian/demo.html
View file @
174820b
...
@@ -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?11
33
11"
>
</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?sd
d3
33"
></script>
<script
src=
"js/demo.js?sd
1d355
33"
></script>
</body>
</body>
</html>
</html>
\ No newline at end of file
\ No newline at end of file
huaian/js/demo.js
View file @
174820b
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment