@@ -10,6 +10,13 @@
<view>{{formatDate.join('-') }}</view>
<!-- 富文本 -->
<mp-html :content="data.info.content" />
+
+ <!-- PDF -->
+ <web-view
+ v-if="pdfUrl"
+ :src="pdfUrl"
+ class="web-view"
+ ></web-view>
</view>
</template>
@@ -38,6 +45,7 @@
return []
})
+ const pdfUrl = "https://kf3.mtavip.com/api/upload/resource/uploadFile60eebb8881e94278bc46bedba12aece6.pdf"
onLoad(({
id
@@ -56,6 +64,9 @@
}
</script>
-<style>
-
+<style lang="scss">
+.web-view {
+ height: 200px;
+ margin-top: 20px
+}
</style>
@@ -27,7 +27,7 @@
<view>
校务: {{data.xiaowu}}
<view>校务公开</view>
- <view v-for="item in data.xiaowu" :key="item.id" @click="handleClickXiaowu(item)(item)">
+ <view v-for="item in data.xiaowu" :key="item.id" @click="handleClickXiaowu(item)">
{{item}}
<view v-if="data.xiaowuTotal>5" @click="getXiaowuGengduo">更多</view>