<template>
    <view>
        <!-- <view>https://epmet-preview.elinkservice.cn/epmet-work-h5/#/Hotline?worktoken={{worktoken}}</view> -->
        <web-view :src="'https://epmet-preview.elinkservice.cn/epmet-work-h5/#/Hotline?worktoken=' + worktoken"></web-view>
    </view>
</template>

<script>
const app = getApp();
export default {
    data() {
        return {
            worktoken: ''
        };
    },
    onLoad: function (options) {
        console.log(options);
        console.log(decodeURIComponent(options.worktoken));
        if (options.token) {
            this.setData({
                worktoken: `${options.worktoken}`
            });
            console.log('url', this.worktoken);
        } else {
            this.setData({
                worktoken: decodeURIComponent(options.worktoken)
                // url:`${options.url}?deptName=${options.deptName}&gridId=${options.gridId}`
            });
        }
    },
    methods: {}
};
</script>
<style>
/* pages/webView/webView.wxss */
</style>
