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