<template>
<view class="view-page" :style="{backgroundImage: `url('${ThemeData ? ThemeData.app_bg : baseBgUrl }')`}">
		<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}" :navTitle="'在线客服'" :emitBack="false">
		</navBar>
		<view class="">
			<img :src="$config.kefu_url" alt="" />
		</view>
	</view>
</template>

<script>
	import navBar from '@/component/nav.vue';
	export default {
		components: {
			navBar
		},
		data() {
			return {
				statusBarHeight:0
			}
		},
		onLoad(options) {
			const {
				h
			} = options
			this.statusBarHeight = h
			uni.setStorageSync('BarHeight', h)
			if(uni.getStorageSync('Theme_Data')) {
				this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
			}
		}
	}
</script>

<style lang="scss" scoped>
	.view-page {
		width: 100vw;
		min-height: 100vh;
		background-repeat: no-repeat;
		background-size: 100% 100%;
	}
</style>