<template>
    <view>
        <uni-nav-bar fixed="true" statusBar="true" left-icon="back" title="工单列表" background-color="#157A2C" color="#fff"
			@clickLeft="back"></uni-nav-bar>
	    <view>
		<web-view :webview-styles="webviewStyles" :src="path"></web-view>
	</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>