Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
向伟
educationStu
Commits
e1592cba
Commit
e1592cba
authored
Sep 24, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0afba3ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
ListenTopic.vue
src/components/subject/ListenTopic.vue
+9
-8
No files found.
src/components/subject/ListenTopic.vue
View file @
e1592cba
...
@@ -33,12 +33,13 @@
...
@@ -33,12 +33,13 @@
name=
"日语听力"
name=
"日语听力"
:action=
"audioAction"
:action=
"audioAction"
controls
controls
v-if=
"!isIOS"
></audio>
></audio>
<view
<view
class=
"item1"
class=
"item1"
:style=
"
{ height: `calc(100vh - 580rpx - ${statusBarHeight}px)` }"
:style=
"
{ height: `calc(100vh - 580rpx - ${statusBarHeight}px)` }"
>
>
<view
class=
"flex flex_start_center"
>
<view
class=
"flex flex_start_center"
v-if=
"isIOS"
>
<view
<view
class=
"audioBox flex flex_center_center"
class=
"audioBox flex flex_center_center"
@
click=
"audioManage(item1.Src)"
@
click=
"audioManage(item1.Src)"
...
@@ -317,6 +318,13 @@ export default {
...
@@ -317,6 +318,13 @@ export default {
},
},
isIOS
:
false
,
isIOS
:
false
,
});
});
let
sys
=
uni
.
getSystemInfoSync
().
system
;
if
(
sys
.
indexOf
(
"iOS"
)
!=
-
1
)
{
data
.
isIOS
=
true
;
}
else
{
data
.
isIOS
=
false
;
}
console
.
log
(
327
,
sys
,
data
.
isIOS
);
data
.
data
.
DetailsList
.
map
((
item
)
=>
{
data
.
data
.
DetailsList
.
map
((
item
)
=>
{
let
arr
=
item
.
Title
.
split
(
" "
);
//按空格分段
let
arr
=
item
.
Title
.
split
(
" "
);
//按空格分段
arr
.
map
((
e
)
=>
{
arr
.
map
((
e
)
=>
{
...
@@ -466,12 +474,6 @@ export default {
...
@@ -466,12 +474,6 @@ export default {
getNextExam
()
{
getNextExam
()
{
data
.
current
=
data
.
current
+
1
;
data
.
current
=
data
.
current
+
1
;
},
},
getSystem
()
{
let
sys
=
uni
.
getSystemInfoSync
().
system
;
if
((
sys
,
indexOf
(
"ios"
)
!=
-
1
))
{
data
.
isIOS
=
true
;
}
},
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -482,7 +484,6 @@ export default {
...
@@ -482,7 +484,6 @@ export default {
}
}
}
}
data
.
statusBarHeight
=
uni
.
getSystemInfoSync
().
statusBarHeight
;
data
.
statusBarHeight
=
uni
.
getSystemInfoSync
().
statusBarHeight
;
that
.
getSystem
();
});
});
onUnmounted
(()
=>
{
onUnmounted
(()
=>
{
innerAudioContext
.
stop
();
innerAudioContext
.
stop
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment