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

<script>
	export default {
		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				},
				url:''
			}
		},
		onLoad() {
			var language = uni.getStorageSync('language');
			if(language=='yuenan'){
				this.url='https://backend.awayqtw.com/ynszc_vi.html'
			}
			else if(language=='zh-Hant'){
				this.url='https://backend.awayqtw.com/ynszc_tw.html'
			}
			else{
				this.url='https://backend.awayqtw.com/ynszc.html'
			}
			
			setTimeout(() => {
				uni.setNavigationBarTitle({
				  title: this.$t('user.yinsizhc'),
				});
			}, 2000);
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
