| 123456789101112131415161718192021222324252627282930313233343536 |
- <template>
- <view>
- <web-view :webview-styles="webviewStyles" :src="path"></web-view>
- </view>
- </template>
- <script>
- import Vue from 'vue'
- export default {
- data() {
- return {
- webviewStyles: {
- progress: {
- color: '#FF3333'
- }
- },
- path: '/traceability',
- }
- },
- onLoad({id}) {
- console.log(id)
- this.path = `${Vue.prototype.webviewUrl}/traceability?id=${id}`
- },
- computed: {
- webviewUrl() {
- console.log('webviewUrl', Vue.prototype.webviewUrl)
- // http://aiot.zoomwin.com.cn:51007/traceability?id=1970310344451657730
- return Vue.prototype.webviewUrl + '/traceability'
- }
- },
- }
- </script>
- <style>
- </style>
|