<template>
	<view class="page">
		<u-navbar title=" " :border-bottom="false" :background="bgc" back-icon-color="#262B37" title-color='#262B37'
			title-size='36' height='36' id="navbar" :custom-back="btnfh">
		</u-navbar>
        <web-view :src="http"></web-view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				bgc: {
                	backgroundColor: "#fff",
                },
				http:'',
				fanhui:''
			}
		},
		onLoad(option) {
            this.getcha()
			if(option && option.fanhui){
				this.fanhui = option.fanhui
			}
		},
		// 分享到好友（会话）
		onShareAppMessage: function() {
			return {
				title: '玩转福鼎',
				path: '/page_user/daolan?fanhui=1'
			}
		},
		// 分享到朋友圈  
		onShareTimeline: function() {
			return {
				title: '玩转福鼎',
				query: '',
				path: '/page_user/daolan?fanhui=1'
			}
		},
		methods: {
			btnfh(){
				if(this.fanhui == 1){
					uni.reLaunch({
						url:'/pages/index/index'
					})
				}else{
					uni.navigateBack()
				}
			},
			getcha(){
				this.$u.get(`/system/config/configKey/guide.h5.url`).then(res =>{
					if(res.code == 200){
						this.http = res.data
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: #fff;
	}

</style>