diff --git a/pages/docList/index.vue b/pages/docList/index.vue index 945c656..ef47335 100644 --- a/pages/docList/index.vue +++ b/pages/docList/index.vue @@ -28,13 +28,10 @@ } }, onLoad(option) { - console.log(option); - console.log(JSON.parse(option.files)); - const obj=JSON.parse(option.files) this.docList=[ - {name:'近山社区城市青年会客厅使用说明及申请表',url:BASE_URL+obj.covenantPdf}, - {name:`${JSON.parse(option.isSelfStudy)?'近山社区自习室个人使用承诺书':'近山社区城市青年会客厅安全使用承诺书'}`,url:BASE_URL+obj.applyPdf}, + {name:obj.applyPdfName,url:BASE_URL+obj.covenantPdf}, + {name:obj.covenantPdfName,url:BASE_URL+obj.applyPdf}, ] }, methods:{