This commit is contained in:
2025-02-25 14:42:48 +08:00
parent f957c6aaf7
commit 0d0a7825b4
39 changed files with 4430 additions and 21 deletions
@@ -223,11 +223,6 @@ layout("/mobile/platform.html"){
<van-col span="16" v-if="wor.wsm">
{{ wor.wsm }}
</van-col>
<van span="24" v-if="wor.files&&wor.files.length>0">
<div v-for="file in wor.files">
<div @click="fileClick(file)"> {{file.filename}}</div>
</div>
</van>
</van-row>
</div>
</div>
@@ -309,10 +304,6 @@ layout("/mobile/platform.html"){
}
},
methods: {
fileClick(file){
let pdfStreamUrl = encodeURIComponent(FILE_STREAM_PREVIEW_ADDRESS + '?id=' + file.id) //将路径转码
window.open('/assets/platform/plugins/pdfJs/web/viewer.html?file=' + pdfStreamUrl,file. filename)
},
async getQuestionData() {
const resp = await $.get('/mobile/question/h5/questionInfo/' + this.id)
this.questionData = resp.data