Commit e1592cba authored by 罗超's avatar 罗超

1

parent 0afba3ac
......@@ -33,12 +33,13 @@
name="日语听力"
:action="audioAction"
controls
v-if="!isIOS"
></audio>
<view
class="item1"
:style="{ height: `calc(100vh - 580rpx - ${statusBarHeight}px)` }"
>
<view class="flex flex_start_center">
<view class="flex flex_start_center" v-if="isIOS">
<view
class="audioBox flex flex_center_center"
@click="audioManage(item1.Src)"
......@@ -317,6 +318,13 @@ export default {
},
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) => {
let arr = item.Title.split(" "); //按空格分段
arr.map((e) => {
......@@ -466,12 +474,6 @@ export default {
getNextExam() {
data.current = data.current + 1;
},
getSystem() {
let sys = uni.getSystemInfoSync().system;
if ((sys, indexOf("ios") != -1)) {
data.isIOS = true;
}
},
};
onMounted(() => {
if (props.isLast) {
......@@ -482,7 +484,6 @@ export default {
}
}
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
that.getSystem();
});
onUnmounted(() => {
innerAudioContext.stop();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment