<template>
    <web-view :src="url"></web-view>
      
      
</template>

<script>
import { linkRoadshowUrl } from '@/utils/config.js';
export default {
    data() {
        return {
            url:''
        }
    },
    onLoad(){
        const queryObj={
            IsBusinessTrip:this.$store.state.userInfo.IsBusinessTrip||false,
            token:uni.getStorageSync("token")||'',
            timestamp:new Date().getTime(),//防止缓存
        }
        let queryObjStr=''
        for (const key in queryObj) {
            if(!queryObjStr){
                    queryObjStr=`${key}=${queryObj[key]}`
            }else{
                queryObjStr=`${queryObjStr}&${key}=${queryObj[key]}`
            }
        }
        console.log('拼接字符串：',queryObjStr);
        this.url=`${linkRoadshowUrl}/businesstrip/calendar?${queryObjStr}#wechat_redirect`
    }
}
</script>
