123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <template>
- <view class="content"><web-view :src="url"></web-view></view>
- </template>
- <script>
- export default {
- data() {
- return {
-
-
- viewerUrl: '/static/hybrid/html/web/viewer.html',
-
- fileUrl: 'https://yuleifanhua.oss-cn-shanghai.aliyuncs.com/MES%E5%8F%8AWMS%E4%BA%91%E5%B9%B3%E5%8F%B0%E5%90%88%E5%90%8C.pdf',
-
- url: ''
- };
- },
- onLoad(options) {
-
-
-
- this.url = `${this.viewerUrl}?file=${encodeURIComponent(options.url)}`;
-
-
-
-
-
- if(plus.os.name === 'Android') {
- this.url = `${this.viewerUrl}?file=${encodeURIComponent(options.url)}`;
- }
-
- else {
- this.url = encodeURIComponent(options.url);
- }
-
- },
- methods: {}
- };
- </script>
- <style>
- </style>
|