Commit 72f0d618 authored by zhengke's avatar zhengke

修改

parent ae099598
......@@ -186,6 +186,32 @@
' style="background-color:transparent;border-radius: 3px;overflow: hidden;z-index: 0;" scrolling="no" ' +
' src="http://192.168.1.36:8140/index.html?fileName='+data.fileName+'&url='+ fileUrl +
'" class="ans-insertaudio-module" module="_insertaudio">' + ' </iframe></p>';
},
//其他方法
getTypeList(data){
//视频1 音频 2 ppt/word 3
if(this.uploadType==3){
var fileUrl = encodeURIComponent(data.fileUrl);
return '<p><iframe height="62px" width="auto" frameborder="0" allowtransparency="true" ' +
' style="background-color:transparent;border-radius: 3px;overflow: hidden;z-index: 0;" scrolling="no" ' +
' src="http://192.168.1.36:8140/read.html?fileName='+data.fileName+'&url='+ fileUrl +'&fileType='+2+ '" class="ans-insertaudio-module" module="_insertaudio">' + ' </iframe></p>';
}
if(this.uploadType==2){
'<p class="attachNew" ><em style="font-style:normal; display:block;min-height:2px;"></em>' +
'<span data="' + objId + '" type="' + dataType + '" name="' + fileName + '" contenteditable="false" style="margin-top:10px;background:#F7F8FA;padding:14px 16px;max-width:572px;zoom:1;overflow:hidden;cursor:pointer;display:block;position: relative;" >' +
'<img src="http://mooc2-ans.chaoxing.com/images/questionbank/icon/' + iconName + '" style=" width:42px; height:42px; overflow:hidden; margin-right:14px; display:block; border-radius:4px;float:left;">' +
'<span style=" display:block;min-height:42px; display:table-cell; vertical-align:middle;display:-webkit-box; -webkit-box-pack:center; -webkit-box-orient:vertical; display:-moz-box; -moz-box-pack:center; -moz-box-orient:vertical;">\n' +
'\t\t<span style=" -webkit-box-flex:1; width:510px\\0; display:block; display:-webkit-box; -webkit-box-pack:center; -webkit-box-orient:vertical; display:-moz-box; -moz-box-pack:center; -moz-box-orient:vertical;">\n' +
'\t\t\t<span style=" padding-right:72px; padding-right:0\\9; font-size:14px; color:#181E33; line-height:20px; display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">' + fileName + '</span>\n' +
'\t\t\t<span style=" display:block; padding-right:72px; padding-right:0\\9; line-height:18px; margin-top:4px; font-size:12px; color:#A8A8B3; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">' + size + '</span>\n' +
'\t\t</span>\n' +
'\t</span>\n' +
'</span></p>';
}
},
loadUe() {
const _this = this;
......
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