|
@@ -4,7 +4,7 @@
|
|
|
<div class="dialogs container" ref="messageContainer">
|
|
|
<div class="d_pdf">
|
|
|
<div class="dp_box">
|
|
|
- <div class="dq_text">{{ '初始调查 - 甜梦巧克力市场部-首次团队测评' }}</div>
|
|
|
+ <div class="dq_text">{{ fileName||'' }}</div>
|
|
|
<div class="dp_type adfac">
|
|
|
<image src="@/static/pdf.png"></image>
|
|
|
<span>PDF</span>
|
|
@@ -71,6 +71,7 @@
|
|
|
data(){
|
|
|
return {
|
|
|
pdfUrl:'',
|
|
|
+ fileName:'',
|
|
|
retryCount: 3, // 最大重试次数
|
|
|
currentRetry: 0, // 当前重试次数
|
|
|
isRequesting: false, // 请求状态锁
|
|
@@ -87,6 +88,7 @@
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
this.pdfUrl = option.pdfUrl;
|
|
|
+ this.fileName = option.fileName;
|
|
|
},
|
|
|
onReady() {
|
|
|
uni.onKeyboardHeightChange(res => {
|
|
@@ -150,7 +152,7 @@
|
|
|
const decoder = new TextEncoding.TextDecoder("utf-8");
|
|
|
const decodedString = decoder.decode(uint8Array);
|
|
|
try {
|
|
|
- let newtext = decodedString.replaceAll('data:','')
|
|
|
+ let newtext = decodedString.replaceAll('data:','').replaceAll(':keepAlive','');
|
|
|
let ntArr = newtext.split('\n\n');
|
|
|
if(ntArr.length){
|
|
|
ntArr.forEach(n=>{
|