Commit 42962f8e authored by 罗超's avatar 罗超

1

parent 26a4478a
......@@ -121,7 +121,7 @@
</view>
</view>
</swiper-item>
<swiper-item v-if="sortIndex != sortTotal">最后一页</swiper-item>
<swiper-item v-if="sortIndex != sortTotal"></swiper-item>
</swiper>
</view>
<van-toast id="van-toast" />
......@@ -165,14 +165,13 @@ export default {
arr.map((e) => {
if (e.indexOf("src") != -1) {
item.Src = decodeURIComponent(e.split("url=")[1].slice(0, -1));
console.log(164, item.Src);
}
});
item.QuestionContentObj.map((_item) => {
if (_item.QuestionKey === "multiple") {
_item.myAnswer = [];
} else {
_item.myAnswer = "嘻嘻";
_item.myAnswer = "";
}
});
});
......@@ -189,8 +188,10 @@ export default {
audioManage(url) {
innerAudioContext.src = url;
console.log(188, innerAudioContext);
innerAudioContext.autoplay = true
innerAudioContext.onCanplay(()=> {
// 必须。可以当做是初始化时长
console.log( innerAudioContext.duration)
// 必须。可以当做是初始化时长
innerAudioContext.duration;
// 必须。不然也获取不到时长
setTimeout(() => {
......
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