12345678910111213141516171819202122232425262728 |
- <template>
- <view>
- <web-view v-if="fileUrl" :src="fileUrl"></web-view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- fileUrl: ''
- }
- },
- onLoad(body) {
- uni.setNavigationBarTitle({
- title: body.titleName
- });
- this.fileUrl = 'http://127.0.0.1:8848/webview/pdf/web/viewer.html?file=' + body.fileUrl;
- },
- methods: {
- }
- }
- </script>
- <style>
- </style>
|