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

1

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