<template>
	<view>
		<cu-custom :isBack="true" bgColor="#FFFFFF">
			<block slot="content">
				{{tittle}}
			</block>
			<block slot="right"  v-if="phoneFlag">
				<view class="flex  align-center" style="margin-right: 34rpx;" @click="hotPhone">
					<image src="../../static/phone_index.png" style="width: 30rpx;height: 34rpx;margin-right: 10rpx;">
					</image>
					<text style="color:#F59A23;">拨打电话</text>
				</view>
			</block>
		</cu-custom>

		<web-view style="margin-top: 80rpx;" :src="url"></web-view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				tittle: '',
				url: '',
				phoneFlag:false
			}
		},
		onLoad(val) {
			// this.url = val.url
			// console.log(val)
			this.url = val.url
			this.tittle = val.tittle
			this.phoneFlag=val.phoneFlag
			console.log(this.phoneFlag)
		},
		methods: {
		hotPhone(){
			uni.makePhoneCall({
				// phoneNumber: this.complaintHotline,
				phoneNumber: uni.getStorageSync('complaintHotline')
			});
		}
		}
	}
</script>

<style>

</style>
