|
@@ -35,8 +35,7 @@
|
|
|
:src="itemss.id"
|
|
|
fit="scale-down"
|
|
|
class="img_url"
|
|
|
- @click="playmicrophone(items.mp3_list[0].id, 'mp3')"
|
|
|
- :preview-src-list="[itemss.id]"
|
|
|
+ @click="imgShow(itemss.id)"
|
|
|
>
|
|
|
<div slot="placeholder" class="image-slot">
|
|
|
<img src="../../../assets/common/icon-imgloading.png" />
|
|
@@ -397,6 +396,7 @@
|
|
|
></span>
|
|
|
</template>
|
|
|
<Soundrecord
|
|
|
+ v-if="fn_list_obj.indexOf('image_record') > -1 || items.RecordControl"
|
|
|
@handleWav="handleWav"
|
|
|
:answerRecordList="
|
|
|
judgeAnswer != 'standardAnswer'
|
|
@@ -406,23 +406,25 @@
|
|
|
:TaskModel="TaskModel"
|
|
|
:type="'mini'"
|
|
|
class="luyin-box"
|
|
|
- :class="[items.RecordControl]"
|
|
|
- v-if="fn_list_obj.indexOf('image_record') > -1 || items.RecordControl"
|
|
|
+ :class="items.RecordControl"
|
|
|
:baseSizePhone="baseSizePhone"
|
|
|
/>
|
|
|
- <!-- <span :class="['luyin',microphoneStatus?'active':'']" @click="microphone"></span>
|
|
|
- <span :class="['play',hasMicro]" @click="playmicrophone(wavblob)"></span> -->
|
|
|
</div>
|
|
|
</li>
|
|
|
- <!-- </ul> -->
|
|
|
+ <img-preview
|
|
|
+ v-if="imgPreviewDialog"
|
|
|
+ :imgPreviewSrc="imgPreviewSrc"
|
|
|
+ @closeImgPreview="closeImgPreview"
|
|
|
+ ></img-preview>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import Soundrecord from "../phonePreview/Soundrecord.vue"; // 录音模板
|
|
|
import Recorder from "js-audio-recorder"; //录音插件
|
|
|
+import ImgPreview from "./components/ImgPreview.vue";
|
|
|
export default {
|
|
|
- components: { Soundrecord },
|
|
|
+ components: { Soundrecord, ImgPreview },
|
|
|
props: ["curQue", "ChildType", "TaskModel", "judgeAnswer", "baseSizePhone"],
|
|
|
data() {
|
|
|
return {
|
|
@@ -446,7 +448,9 @@ export default {
|
|
|
audio: new window.Audio(),
|
|
|
oldUrl: null, // 存储上个播放音频地址
|
|
|
mp3Play: "", // 音频播放
|
|
|
- userErrorNumberTotal: 0
|
|
|
+ userErrorNumberTotal: 0,
|
|
|
+ imgPreviewDialog: false,
|
|
|
+ imgPreviewSrc: ""
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -851,6 +855,14 @@ export default {
|
|
|
handleWav(list, tmIndex) {
|
|
|
tmIndex = tmIndex ? tmIndex : 0;
|
|
|
this.$set(this.curQue.Bookanswer[tmIndex], "recordList", list);
|
|
|
+ },
|
|
|
+
|
|
|
+ imgShow(id) {
|
|
|
+ this.imgPreviewDialog = true;
|
|
|
+ this.imgPreviewSrc = id;
|
|
|
+ },
|
|
|
+ closeImgPreview() {
|
|
|
+ this.imgPreviewDialog = false;
|
|
|
}
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|