Newer
Older
xinJiangMiniProgranm / packageToolList / rumorWebView / rumorWebView.vue
liyaguang on 6 Sep 2023 781 bytes 修改样式
<!-- h5嵌入页面 -->
<template>
	<web-view :src="getUrl" ></web-view>
</template>

<script>
	import { getLocationParams } from '../../common/utils.js'
	export default {
		data() {
			return {
				getUrl: ''
			}
		},
		mounted() {
			this.getUrl = decodeURIComponent(getLocationParams('url'));
			console.log(this.getUrl, 'url')
			// 通知公告的h5显示 -> 通知公告
			// console.log(getLocationParams('label'))
			// if (getLocationParams('label') === '通知公告') {
			// 	wx.setNavigationBarTitle({
			// 		title: "通知公告",
			// 	});
			// }
			// if (getLocationParams('type') === 'tzgg') {
			// 	setTimeout(() => {
			// 		wx.setNavigationBarTitle({
			// 		  title: "111",
			// 		});
			// 	},2000)
			// }
			
			
		},
	}
</script>

<style>
</style>